Commit 91fb9fb1 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

build, add a target DlAndInstallBundledTranslations

It Download a 7z translation set from gcompris.net and install it in the
build directory. This is to be used on platforms where building translations
brings too many dependancies.
parent 89f42b77
...@@ -247,6 +247,18 @@ add_custom_target(BundleTranslations ...@@ -247,6 +247,18 @@ add_custom_target(BundleTranslations
COMMENT "If you want to provide a zip of the translations on a server (run make BuildTranslations first)" COMMENT "If you want to provide a zip of the translations on a server (run make BuildTranslations first)"
) )
add_custom_command(
OUTPUT doDlAndInstallBundledTranslations
COMMAND wget -O ${CMAKE_BINARY_DIR}/translations-${GCOMPRIS_VERSION}.7z http://gcompris.net/download/translations-${GCOMPRIS_VERSION}.7z
COMMAND 7z x -y -o${CMAKE_BINARY_DIR}/share/${GCOMPRIS_EXECUTABLE_NAME} ${CMAKE_BINARY_DIR}/translations-${GCOMPRIS_VERSION}.7z
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
# Bundle translations
add_custom_target(DlAndInstallBundledTranslations
DEPENDS doDlAndInstallBundledTranslations
COMMENT "Download the bundled translation and install them in the build dir"
)
if(CMAKE_HOST_APPLE) if(CMAKE_HOST_APPLE)
install(DIRECTORY ${GCOMPRIS_TRANSLATIONS_DIR} DESTINATION ${_bundle_bin}) install(DIRECTORY ${GCOMPRIS_TRANSLATIONS_DIR} DESTINATION ${_bundle_bin})
else() 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