When adding some files to INSTALLS, they are stripped if they are excecutables.
To avoid using strip, you can update "QMAKE_STRIP" variable and force stripping executables one by one using ".extra":
target.extra = strip $${DESTDIR}/$(TARGET)
QMAKE_STRIP = echo # Avoid striping unwanted files (which will not work)
applibs.files = $${DESTDIR}/*.so*
applibs.path = $$EXPORT_LIBPATH
INSTALLS += applibs
-
-
http://www.gossamer-threads.com/lists/mythtv/dev/141885Très pratique le fichier .qmake.conf.
-
-
https://wiki.qt.io/QMake-top-level-srcdir-and-builddirça commence à dater, mais c'est vital pour faire une configuration avancée via qmake.
Another one: http://paulf.free.fr/undocumented_qmake.html
-
-
https://wiki.qt.io/Undocumented_QMakeVoilà qui est encore mieux !!!
OCTAVE_FILES = $$files($${PWD}/scripts/*.m)
copy_files.name = Copy scripts
copy_files.input = OCTAVE_FILES
copy_files.output = $${OUT_PWD}/data/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
copy_files.commands = ${COPY_FILE} ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copy_files.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += copy_files
-
-
http://stackoverflow.com/questions/18488154/how-to-get-qmake-to-copy-large-data-files-only-if-they-are-updated?answertab=votes#tab-topcopydata.commands = $(COPY_DIR) $$PWD/data $$OUT_PWD
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
Edit : encore mieux -> http://links.la-bnbox.fr/?kqGppw
-
-
http://dragly.org/2013/11/05/copying-data-files-to-the-build-directory-when-working-with-qmake/Utilisation avancée de qmake, notamment la gestion des variables. Voilà ce que je cherchais depuis quelques temps...
-
-
http://doc.qt.io/qt-5/qmake-advanced-usage.html