Add a special target for pot-updates.
This commit is contained in:
parent
fbcc2efdc2
commit
1e808b7edd
2 changed files with 8 additions and 1 deletions
|
@ -69,6 +69,11 @@ option(ENABLE_NLS "Enable building of tranlations" ON)
|
|||
option(ENABLE_POOL_ALLOC "Enable custom pool malloc" OFF)
|
||||
option(ENABLE_LOW_MEM "Reduce memory usage by removing extra functionality" OFF)
|
||||
|
||||
#misc options
|
||||
if(NOT MSVC)
|
||||
# Pot updates don't work at Windows so no reason to even try
|
||||
option(ENABLE_POT_UPDATE_TARGET "Enables the tools to update the pot files and manuals. This target has extra dependencies." OFF)
|
||||
endif(NOT MSVC)
|
||||
|
||||
set(BINARY_SUFFIX "" CACHE STRING "Suffix behind all binaries")
|
||||
set(BINARY_PREFIX "" CACHE STRING "Prefix in front of all binaries")
|
||||
|
|
|
@ -3,9 +3,11 @@ set(XGETTEXT_OPTIONS "--from-code=UTF-8 --sort-by-file --keyword=sgettext --keyw
|
|||
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/pot-update.sh.in ${CMAKE_CURRENT_BINARY_DIR}/pot-update.sh)
|
||||
|
||||
if(ENABLE_POT_UPDATE_TARGET)
|
||||
add_custom_target(update-po4a)
|
||||
endif(ENABLE_POT_UPDATE_TARGET)
|
||||
add_custom_target(update-pot)
|
||||
add_custom_target(update-po)
|
||||
add_custom_target(update-po4a)
|
||||
add_custom_target(update-gmo)
|
||||
|
||||
set(TRANSLATION_DIRS
|
||||
|
|
Loading…
Add table
Reference in a new issue