don't overengineer DESTDIR calculation
just like in qt_plugin.prf, the DESTDIR setting is actually fixed per module type. Change-Id: I5837b5884699f0d50e4067733af8aacbab93bc42 Reviewed-by: Stephen Kelly <ske@ableton.com>
This commit is contained in:
parent
c4d82dbfc0
commit
12ffa58539
@ -24,6 +24,8 @@ load(cmake_functions)
|
|||||||
CMAKE_INSTALL_LIBS_DIR = $$cmakeTargetPath($$[QT_INSTALL_LIBS])
|
CMAKE_INSTALL_LIBS_DIR = $$cmakeTargetPath($$[QT_INSTALL_LIBS])
|
||||||
contains(CMAKE_INSTALL_LIBS_DIR, ^(/usr)?/lib(64)?.*): CMAKE_USR_MOVE_WORKAROUND = $$CMAKE_INSTALL_LIBS_DIR
|
contains(CMAKE_INSTALL_LIBS_DIR, ^(/usr)?/lib(64)?.*): CMAKE_USR_MOVE_WORKAROUND = $$CMAKE_INSTALL_LIBS_DIR
|
||||||
|
|
||||||
|
CMAKE_OUT_DIR = $$MODULE_BASE_OUTDIR/lib/cmake
|
||||||
|
|
||||||
CMAKE_MODULE_NAME = $$cmakeModuleName($${MODULE})
|
CMAKE_MODULE_NAME = $$cmakeModuleName($${MODULE})
|
||||||
|
|
||||||
split_incpath {
|
split_incpath {
|
||||||
@ -36,7 +38,7 @@ split_incpath {
|
|||||||
$$QT_MODULE_INCLUDE_BASE/Qt$${CMAKE_MODULE_NAME}/$$eval(QT.$${MODULE}.VERSION)/Qt$${CMAKE_MODULE_NAME})
|
$$QT_MODULE_INCLUDE_BASE/Qt$${CMAKE_MODULE_NAME}/$$eval(QT.$${MODULE}.VERSION)/Qt$${CMAKE_MODULE_NAME})
|
||||||
|
|
||||||
cmake_extra_source_includes.input = $$PWD/data/cmake/ExtraSourceIncludes.cmake.in
|
cmake_extra_source_includes.input = $$PWD/data/cmake/ExtraSourceIncludes.cmake.in
|
||||||
cmake_extra_source_includes.output = $$DESTDIR/cmake/Qt5$${CMAKE_MODULE_NAME}/ExtraSourceIncludes.cmake
|
cmake_extra_source_includes.output = $$CMAKE_OUT_DIR/Qt5$${CMAKE_MODULE_NAME}/ExtraSourceIncludes.cmake
|
||||||
|
|
||||||
!build_pass:QMAKE_SUBSTITUTES += \
|
!build_pass:QMAKE_SUBSTITUTES += \
|
||||||
cmake_extra_source_includes
|
cmake_extra_source_includes
|
||||||
@ -159,7 +161,7 @@ contains(CONFIG, plugin) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmake_target_file.input = $$PWD/data/cmake/Qt5PluginTarget.cmake.in
|
cmake_target_file.input = $$PWD/data/cmake/Qt5PluginTarget.cmake.in
|
||||||
cmake_target_file.output = $$DESTDIR/../../$${CMAKE_LIB_DIR}cmake/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}_$${PLUGIN_CLASS_NAME}.cmake
|
cmake_target_file.output = $$CMAKE_OUT_DIR/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}_$${PLUGIN_CLASS_NAME}.cmake
|
||||||
|
|
||||||
!build_pass:QMAKE_SUBSTITUTES += \
|
!build_pass:QMAKE_SUBSTITUTES += \
|
||||||
cmake_target_file
|
cmake_target_file
|
||||||
@ -273,12 +275,12 @@ mac {
|
|||||||
INSTALLS += cmake_qt5_module_files
|
INSTALLS += cmake_qt5_module_files
|
||||||
|
|
||||||
cmake_config_file.input = $$PWD/data/cmake/Qt5BasicConfig.cmake.in
|
cmake_config_file.input = $$PWD/data/cmake/Qt5BasicConfig.cmake.in
|
||||||
cmake_config_file.output = $$DESTDIR/cmake/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}Config.cmake
|
cmake_config_file.output = $$CMAKE_OUT_DIR/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}Config.cmake
|
||||||
|
|
||||||
CMAKE_PACKAGE_VERSION = $$eval(QT.$${MODULE}.VERSION)
|
CMAKE_PACKAGE_VERSION = $$eval(QT.$${MODULE}.VERSION)
|
||||||
|
|
||||||
cmake_config_version_file.input = $$PWD/data/cmake/Qt5ConfigVersion.cmake.in
|
cmake_config_version_file.input = $$PWD/data/cmake/Qt5ConfigVersion.cmake.in
|
||||||
cmake_config_version_file.output = $$DESTDIR/cmake/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}ConfigVersion.cmake
|
cmake_config_version_file.output = $$CMAKE_OUT_DIR/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}ConfigVersion.cmake
|
||||||
|
|
||||||
!build_pass:QMAKE_SUBSTITUTES += \
|
!build_pass:QMAKE_SUBSTITUTES += \
|
||||||
cmake_config_file \
|
cmake_config_file \
|
||||||
@ -292,7 +294,7 @@ cmake_extras_file.input = $$_PRO_FILE_PWD_/Qt5$${CMAKE_MODULE_NAME}ConfigExtras.
|
|||||||
exists($$cmake_extras_file.input) {
|
exists($$cmake_extras_file.input) {
|
||||||
|
|
||||||
CMAKE_MODULE_EXTRAS = "true"
|
CMAKE_MODULE_EXTRAS = "true"
|
||||||
cmake_extras_file.output = $$DESTDIR/cmake/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}ConfigExtras.cmake
|
cmake_extras_file.output = $$CMAKE_OUT_DIR/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}ConfigExtras.cmake
|
||||||
|
|
||||||
!build_pass:QMAKE_SUBSTITUTES += cmake_extras_file
|
!build_pass:QMAKE_SUBSTITUTES += cmake_extras_file
|
||||||
|
|
||||||
@ -304,7 +306,7 @@ cmake_macros_file.input = $$_PRO_FILE_PWD_/Qt5$${CMAKE_MODULE_NAME}Macros.cmake
|
|||||||
exists($$cmake_macros_file.input) {
|
exists($$cmake_macros_file.input) {
|
||||||
CMAKE_MODULE_MACROS = "true"
|
CMAKE_MODULE_MACROS = "true"
|
||||||
|
|
||||||
cmake_macros_file.output = $$DESTDIR/cmake/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}Macros.cmake
|
cmake_macros_file.output = $$CMAKE_OUT_DIR/Qt5$${CMAKE_MODULE_NAME}/Qt5$${CMAKE_MODULE_NAME}Macros.cmake
|
||||||
cmake_macros_file.CONFIG = verbatim
|
cmake_macros_file.CONFIG = verbatim
|
||||||
|
|
||||||
!build_pass:QMAKE_SUBSTITUTES += cmake_macros_file
|
!build_pass:QMAKE_SUBSTITUTES += cmake_macros_file
|
||||||
|
@ -62,8 +62,8 @@ load(qt_module_pris)
|
|||||||
|
|
||||||
#other
|
#other
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
DESTDIR = $$eval(QT.$${MODULE_ID}.libs)
|
DESTDIR = $$MODULE_BASE_OUTDIR/lib
|
||||||
win32:!wince*:!prefix_build: DLLDESTDIR = $$eval(QT.$${MODULE_ID}.bins)
|
win32:!wince*:!prefix_build: DLLDESTDIR = $$MODULE_BASE_OUTDIR/bin
|
||||||
|
|
||||||
CONFIG += qmake_cache target_qt
|
CONFIG += qmake_cache target_qt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user