diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/VendorConfig.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cmake/VendorConfig.cmake b/cmake/VendorConfig.cmake index b424378..0e6891c 100644 --- a/cmake/VendorConfig.cmake +++ b/cmake/VendorConfig.cmake @@ -7,11 +7,6 @@ if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config") endif() # there is a .config in ${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config -add_custom_command(OUTPUT "${PROJECT_BINARY_DIR}/include/config.h" - COMMAND ${CMAKE_COMMAND} -E env "srctree=${PROJECT_SOURCE_DIR}" - ${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR}/tools/Kconfiglib/genconfig.py" "--header-path=${PROJECT_BINARY_DIR}/include/config.h" "${PROJECT_SOURCE_DIR}/src/Kconfig" - WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}") - function(config KEY KCONFIG) execute_process( COMMAND ${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR}/tools/config.py" "--kconfig=${PROJECT_SOURCE_DIR}/${KCONFIG}" "--dotconfig=${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config" ${KEY} @@ -28,6 +23,13 @@ config("INSTALL_PLUGINDIR" "Kconfig") config("INSTALL_APPDIR" "Kconfig") config("INSTALL_ICONDIR" "Kconfig") +add_custom_command(OUTPUT "${PROJECT_BINARY_DIR}/include/config.h" + COMMAND ${CMAKE_COMMAND} -E env "srctree=${PROJECT_SOURCE_DIR}" + ${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR}/tools/Kconfiglib/genconfig.py" "--header-path=${PROJECT_BINARY_DIR}/include/config.h" "${PROJECT_SOURCE_DIR}/src/Kconfig" + WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}") + +add_custom_target(config_header DEPENDS "${PROJECT_BINARY_DIR}/include/config.h") + # QTBUG defines execute_process( COMMAND ${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR}/tools/config.py" "--kconfig=${PROJECT_SOURCE_DIR}/src/Kconfig" "--dotconfig=${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config" "QTBUG" |