mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
use custom target ALL to force building the appdata
This commit is contained in:
parent
f3623ee026
commit
04cf21ea0c
@ -47,10 +47,6 @@ add_custom_command(
|
||||
COMMAND cmark_exe ${ACKNOWLEDGMENTS_MD} > ${ACKNOWLEDGMENTS_HTML}
|
||||
COMMAND cmark_exe ${PRIVACY_MD} > ${PRIVACY_HTML}
|
||||
COMMAND cmark_exe ${PLUGIN_MD} > ${PLUGIN_HTML}
|
||||
COMMAND ${CMAKE_COMMAND} -DCHANGELOG_HTML:STRING=${CHANGELOG_HTML}
|
||||
-DAPPDATA_CONF:STRING=${APPDATA_CONF}
|
||||
-DAPPDATA:STRING=${APPDATA}
|
||||
-P "${CMAKE_SOURCE_DIR}/cmake/generate_appdata.cmake"
|
||||
DEPENDS ${CHANGELOG_MD} ${ACKNOWLEDGMENTS_MD} ${PRIVACY_MD} ${PLUGIN_MD})
|
||||
|
||||
# Add application library.
|
||||
@ -93,6 +89,17 @@ add_executable(
|
||||
${PRIVACY_HTML}
|
||||
${PLUGIN_HTML})
|
||||
|
||||
if(GENERATE_APPDATA)
|
||||
add_custom_target(
|
||||
appdata ALL
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -DCHANGELOG_HTML:STRING=${CHANGELOG_HTML}
|
||||
-DAPPDATA_CONF:STRING=${APPDATA_CONF} -DAPPDATA:STRING=${APPDATA} -P
|
||||
"${CMAKE_SOURCE_DIR}/cmake/generate_appdata.cmake"
|
||||
DEPENDS ${CHANGELOG_HTML}
|
||||
COMMENT "Create appdata file")
|
||||
endif()
|
||||
|
||||
target_link_libraries(gittyup app)
|
||||
|
||||
set_target_properties(
|
||||
@ -168,34 +175,34 @@ if(APPLE)
|
||||
set(RELAUNCHER ${GITTYUP_NAME}.app/Contents/MacOS/relauncher)
|
||||
install(
|
||||
CODE "execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -delete_rpath \"${RPATH}\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${RELAUNCHER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"/usr/local/qt\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${RELAUNCHER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"@loader_path/../Frameworks\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${RELAUNCHER}\"
|
||||
)"
|
||||
${CMAKE_INSTALL_NAME_TOOL} -delete_rpath \"${RPATH}\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${RELAUNCHER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"/usr/local/qt\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${RELAUNCHER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"@loader_path/../Frameworks\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${RELAUNCHER}\"
|
||||
)"
|
||||
COMPONENT ${GITTYUP_NAME})
|
||||
|
||||
# Fixup indexer RPATH.
|
||||
set(INDEXER ${GITTYUP_NAME}.app/Contents/MacOS/indexer)
|
||||
install(
|
||||
CODE "execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -delete_rpath \"${RPATH}\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${INDEXER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"/usr/local/qt\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${INDEXER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"@loader_path/../Frameworks\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${INDEXER}\"
|
||||
)"
|
||||
${CMAKE_INSTALL_NAME_TOOL} -delete_rpath \"${RPATH}\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${INDEXER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"/usr/local/qt\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${INDEXER}\"
|
||||
)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath \"@loader_path/../Frameworks\"
|
||||
\"\${CMAKE_INSTALL_PREFIX}/${INDEXER}\"
|
||||
)"
|
||||
COMPONENT ${GITTYUP_NAME})
|
||||
else()
|
||||
# Install config files.
|
||||
|
Loading…
Reference in New Issue
Block a user