2020-04-10 08:08:01 +08:00
|
|
|
diff --git a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
|
|
index 5baf0fdb1..185abfffd 100644
|
|
|
|
--- a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
|
|
+++ b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
2020-07-09 06:34:35 +08:00
|
|
|
@@ -15,13 +15,14 @@ foreach(_module_dep ${_Qt5$${CMAKE_PLUGIN_NAME}_MODULE_DEPENDENCIES})
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2020-04-10 08:08:01 +08:00
|
|
|
|
2020-07-09 06:34:35 +08:00
|
|
|
-!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
|
|
|
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
|
|
-_qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_RELEASE}\" RELEASE
|
|
|
|
- _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_RELEASE_LIB_DEPENDENCIES
|
|
|
|
- _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_RELEASE_LINK_FLAGS
|
|
|
|
-)
|
|
|
|
+if(EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_RELEASE}\")
|
|
|
|
+ _qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
+ \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_RELEASE}\" RELEASE
|
|
|
|
+ _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_RELEASE_LIB_DEPENDENCIES
|
|
|
|
+ _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_RELEASE_LINK_FLAGS
|
|
|
|
+ )
|
|
|
|
+endif()
|
|
|
|
!!ELSE
|
|
|
|
_qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
\"$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_RELEASE}\" RELEASE
|
|
|
|
@@ -29,15 +30,15 @@ _qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
_Qt5$${CMAKE_PLUGIN_NAME}_STATIC_RELEASE_LINK_FLAGS
|
|
|
|
)
|
|
|
|
!!ENDIF
|
|
|
|
-!!ENDIF
|
|
|
|
|
|
|
|
-!!IF !isEmpty(CMAKE_DEBUG_TYPE)
|
|
|
|
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
|
|
-_qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_DEBUG}\" DEBUG
|
|
|
|
- _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_DEBUG_LIB_DEPENDENCIES
|
|
|
|
- _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_DEBUG_LINK_FLAGS
|
|
|
|
-)
|
|
|
|
+if(EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/debug/$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_DEBUG}\")
|
|
|
|
+ _qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
+ \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/debug/$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_DEBUG}\" DEBUG
|
|
|
|
+ _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_DEBUG_LIB_DEPENDENCIES
|
|
|
|
+ _Qt5$${CMAKE_PLUGIN_NAME}_STATIC_DEBUG_LINK_FLAGS
|
|
|
|
+ )
|
|
|
|
+endif()
|
|
|
|
!!ELSE
|
|
|
|
_qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
\"$${CMAKE_PLUGIN_DIR}$${CMAKE_PRL_FILE_LOCATION_DEBUG}\" DEBUG
|
|
|
|
@@ -45,19 +46,18 @@ _qt5_$${CMAKE_MODULE_NAME}_process_prl_file(
|
|
|
|
_Qt5$${CMAKE_PLUGIN_NAME}_STATIC_DEBUG_LINK_FLAGS
|
|
|
|
)
|
|
|
|
!!ENDIF
|
|
|
|
-!!ENDIF
|
|
|
|
|
|
|
|
set_property(TARGET Qt5::$$CMAKE_PLUGIN_NAME PROPERTY INTERFACE_SOURCES
|
|
|
|
\"${CMAKE_CURRENT_LIST_DIR}/Qt5$${CMAKE_MODULE_NAME}_$${CMAKE_PLUGIN_NAME}_Import.cpp\"
|
|
|
|
)
|
|
|
|
!!ENDIF
|
2020-04-10 08:08:01 +08:00
|
|
|
|
|
|
|
-!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
2020-07-09 06:34:35 +08:00
|
|
|
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_LOCATION_RELEASE}\" $${CMAKE_DEBUG_AND_RELEASE})
|
2020-04-10 08:08:01 +08:00
|
|
|
-!!ENDIF
|
|
|
|
-!!IF !isEmpty(CMAKE_DEBUG_TYPE)
|
2020-07-09 06:34:35 +08:00
|
|
|
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_LOCATION_DEBUG}\" $${CMAKE_DEBUG_AND_RELEASE})
|
2020-04-10 08:08:01 +08:00
|
|
|
-!!ENDIF
|
|
|
|
+if(EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
|
2020-07-09 06:34:35 +08:00
|
|
|
+ _populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_LOCATION_RELEASE}\" $${CMAKE_DEBUG_AND_RELEASE})
|
2020-04-10 08:08:01 +08:00
|
|
|
+endif()
|
|
|
|
+if(EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/debug/$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
|
2020-07-09 06:34:35 +08:00
|
|
|
+ _populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_LOCATION_DEBUG}\" $${CMAKE_DEBUG_AND_RELEASE})
|
2020-04-10 08:08:01 +08:00
|
|
|
+endif()
|
|
|
|
|
|
|
|
list(APPEND Qt5$${CMAKE_MODULE_NAME}_PLUGINS Qt5::$$CMAKE_PLUGIN_NAME)
|
2020-07-09 06:34:35 +08:00
|
|
|
set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} APPEND PROPERTY QT_ALL_PLUGINS_$${CMAKE_PLUGIN_TYPE_ESCAPED} Qt5::$${CMAKE_PLUGIN_NAME})
|