Commit 6c60539a authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

build, add a BundleTranslations target

This creates a 7zip of the qm files. These will be hosted on gcompris.net
to ease windows build.
parent 73916045
......@@ -236,6 +236,17 @@ add_custom_target(BuildTranslations
COMMENT "If you don't have the .po, you need to run make getSvnTranslations first then re-run cmake"
)
add_custom_command(
OUTPUT doBundleTranslations
COMMAND 7z a -w${CMAKE_BINARY_DIR}/share/gcompris-qt ${CMAKE_BINARY_DIR}/translations-${GCOMPRIS_VERSION}.7z ${CMAKE_BINARY_DIR}/share/gcompris-qt/translations
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
# Bundle translations
add_custom_target(BundleTranslations
DEPENDS doBundleTranslations
COMMENT "If you want to provide a zip of the translations on a server (run make BuildTranslations first)"
)
if(CMAKE_HOST_APPLE)
install(DIRECTORY ${GCOMPRIS_TRANSLATIONS_DIR} DESTINATION ${_bundle_bin})
else()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment