Remove some old cmake translation targets.
This commit is contained in:
parent
349edf1e14
commit
4a65d01607
2 changed files with 2 additions and 105 deletions
|
@ -1,67 +1,3 @@
|
|||
MACRO (ADD_POT_TARGET DOMAIN)
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/remove-potcdate.sed
|
||||
COMMAND sed
|
||||
ARGS -e "'/^#/d'" remove-potcdate.sin > remove-potcdate.sed
|
||||
MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/remove-potcdate.sin
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
set(POTFILE ${DOMAIN}.pot)
|
||||
|
||||
add_custom_target(update-pot-${DOMAIN}
|
||||
COMMAND ${CMAKE_BINARY_DIR}/po/pot-update.sh ${DOMAIN}
|
||||
DEPENDS remove-potcdate.sed
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
set_source_files_properties(${POTFILE} PROPERTIES GENERATED TRUE)
|
||||
add_dependencies(update-pot update-pot-${DOMAIN})
|
||||
|
||||
ENDMACRO (ADD_POT_TARGET DOMAIN)
|
||||
|
||||
|
||||
MACRO (ADD_PO_TARGETS DOMAIN)
|
||||
if(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGINIT_EXECUTABLE)
|
||||
set(LINGUAS ${ARGN})
|
||||
|
||||
add_custom_target(update-po-${DOMAIN})
|
||||
|
||||
foreach(LANG ${LINGUAS})
|
||||
set(POFILE ${LANG}.po)
|
||||
set(UPDFILE ${LANG}.upd)
|
||||
|
||||
add_custom_target(update-po-${DOMAIN}-${LANG}
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/po/po-update.sh
|
||||
${DOMAIN} ${LANG} ${GETTEXT_MSGMERGE_EXECUTABLE} ${GETTEXT_MSGINIT_EXECUTABLE}
|
||||
DEPENDS ${DOMAIN}.pot
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_dependencies(update-po-${DOMAIN} update-po-${DOMAIN}-${LANG})
|
||||
#add_dependencies(update-po-${DOMAIN}-${LANG} )
|
||||
|
||||
set_source_files_properties(${POFILE} PROPERTIES GENERATED TRUE)
|
||||
endforeach(LANG ${LINGUAS})
|
||||
|
||||
add_dependencies(update-po update-po-${DOMAIN})
|
||||
|
||||
endif(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGINIT_EXECUTABLE)
|
||||
ENDMACRO (ADD_PO_TARGETS DOMAIN)
|
||||
|
||||
|
||||
MACRO (ADD_MO_TARGETS DOMAIN)
|
||||
if(GETTEXT_MSGFMT_EXECUTABLE)
|
||||
|
||||
set(LINGUAS ${ARGN})
|
||||
set(MOFILES)
|
||||
|
||||
foreach(LANG ${LINGUAS})
|
||||
set(POFILE ${LANG}.po)
|
||||
set_source_files_properties(${POFILE} PROPERTIES GENERATED TRUE)
|
||||
|
||||
endforeach(LANG ${LINGUAS})
|
||||
|
||||
endif(GETTEXT_MSGFMT_EXECUTABLE)
|
||||
ENDMACRO (ADD_MO_TARGETS DOMAIN)
|
||||
|
||||
|
||||
macro(ADD_PO4A_POT_TARGET FILES DOMAIN TYPE OPTIONS)
|
||||
|
||||
set(_FILES ${FILES})
|
||||
|
|
|
@ -1,46 +1,7 @@
|
|||
############ Old stuff. ###########
|
||||
|
||||
INCLUDE(TranslationTargets)
|
||||
set(XGETTEXT_OPTIONS "--from-code=UTF-8 --sort-by-file --keyword=sgettext --keyword=vgettext --keyword=_n:1,2 --keyword=sngettext:1,2 --keyword=vngettext:1,2")
|
||||
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/pot-update.sh.in ${CMAKE_CURRENT_BINARY_DIR}/pot-update.sh)
|
||||
|
||||
add_custom_target(update-po4a)
|
||||
add_custom_target(update-pot)
|
||||
add_custom_target(update-po)
|
||||
|
||||
set(TRANSLATION_DIRS
|
||||
wesnoth
|
||||
wesnoth-anl
|
||||
wesnoth-aoi
|
||||
wesnoth-did
|
||||
wesnoth-dm
|
||||
wesnoth-editor
|
||||
wesnoth-ei
|
||||
wesnoth-httt
|
||||
wesnoth-l
|
||||
wesnoth-lib
|
||||
wesnoth-low
|
||||
#wesnoth-manpages
|
||||
#wesnoth-manual
|
||||
wesnoth-multiplayer
|
||||
wesnoth-nr
|
||||
wesnoth-sof
|
||||
wesnoth-sotbe
|
||||
wesnoth-tb
|
||||
wesnoth-test
|
||||
wesnoth-thot
|
||||
wesnoth-trow
|
||||
wesnoth-tsg
|
||||
wesnoth-tutorial
|
||||
wesnoth-units
|
||||
wesnoth-utbs
|
||||
)
|
||||
|
||||
foreach(DIR ${TRANSLATION_DIRS})
|
||||
add_subdirectory(${DIR})
|
||||
endforeach(DIR ${TRANSLATION_DIRS})
|
||||
|
||||
|
||||
|
||||
|
||||
############ Settings. ###########
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue