rcc: Use the right binary when invoking manually (#35)

* rcc: Use the right binary when invoking manually

Otherwise we could run into the following error:

rcc: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/rcc': No such file or directory
Makefile:626: recipe for target 'rcc/qrc_images.cpp' failed
make: *** [rcc/qrc_images.cpp] Error 1

* README: add automotive screenshot (fixes #32)
This commit is contained in:
Peter Hartmann 2017-07-26 04:18:01 -07:00 committed by uwerat
parent 5a17a9fbed
commit a01749e2ba
4 changed files with 8 additions and 4 deletions

View File

@ -20,3 +20,7 @@ projects and therefore may feel a bit random. Conceptually, though, any type of
control fits into QSkinny, as long as it is usable from C++ (as opposed to only control fits into QSkinny, as long as it is usable from C++ (as opposed to only
QML). QML).
This is a screenshot of a sample automotive UI (see examples/automotive):
![Automotive screenshot](https://github.com/uwerat/qskinny/blob/master/doc/automotive-screenshot.jpg?raw=true)

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View File

@ -82,11 +82,11 @@ rccgen.commands += $${QMAKE_MKDIR} $${RCC_DIR}
QRC_SHADOW_CLONE = $${OUT_PWD}/${QMAKE_FILE_BASE}_shadow.qrc QRC_SHADOW_CLONE = $${OUT_PWD}/${QMAKE_FILE_BASE}_shadow.qrc
rccgen.commands += && $${QMAKE_COPY} ${QMAKE_FILE_IN} $${QRC_SHADOW_CLONE} rccgen.commands += && $${QMAKE_COPY} ${QMAKE_FILE_IN} $${QRC_SHADOW_CLONE}
rccgen.commands += && rcc $${QRC_SHADOW_CLONE} -o ${QMAKE_FILE_OUT} rccgen.commands += && $$dirname(QMAKE_QMAKE)/rcc $${QRC_SHADOW_CLONE} -o ${QMAKE_FILE_OUT}
rccgen.commands += && $${QMAKE_DEL_FILE} $${QRC_SHADOW_CLONE} rccgen.commands += && $${QMAKE_DEL_FILE} $${QRC_SHADOW_CLONE}
} }
else { else {
rccgen.commands += && rcc ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} rccgen.commands += && $$dirname(QMAKE_QMAKE)/rcc ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
} }
# We would like to define a dependency for "svg2qvg.variable_out" - # We would like to define a dependency for "svg2qvg.variable_out" -

View File

@ -43,11 +43,11 @@ rccgen.commands += $${QMAKE_MKDIR} $${RCC_DIR}
QRC_SHADOW_CLONE = $${OUT_PWD}/${QMAKE_FILE_BASE}_shadow.qrc QRC_SHADOW_CLONE = $${OUT_PWD}/${QMAKE_FILE_BASE}_shadow.qrc
rccgen.commands += && $${QMAKE_COPY} ${QMAKE_FILE_IN} $${QRC_SHADOW_CLONE} rccgen.commands += && $${QMAKE_COPY} ${QMAKE_FILE_IN} $${QRC_SHADOW_CLONE}
rccgen.commands += && rcc $${QRC_SHADOW_CLONE} -o ${QMAKE_FILE_OUT} rccgen.commands += && $$dirname(QMAKE_QMAKE)/rcc $${QRC_SHADOW_CLONE} -o ${QMAKE_FILE_OUT}
rccgen.commands += && $${QMAKE_DEL_FILE} $${QRC_SHADOW_CLONE} rccgen.commands += && $${QMAKE_DEL_FILE} $${QRC_SHADOW_CLONE}
} }
else { else {
rccgen.commands += && rcc ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} rccgen.commands += && $$dirname(QMAKE_QMAKE)/rcc ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
} }
# We would like to define a dependency for "svg2qvg.variable_out" - # We would like to define a dependency for "svg2qvg.variable_out" -