Author: mordante
Date: Sun Apr 12 17:45:24 2009
New Revision: 34789
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34789&view=rev
Log:
Make the dummy locales a target.
Modified:
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/CMakeLists.txt?rev=34789&r1=34788&r2=34789&view=diff
==============================================================================
--- trunk/CMakeLists.txt (original)
+++ trunk/CMakeLists.txt Sun Apr 12 17:45:24 2009
@@ -67,6 +67,7 @@
option(ENABLE_TOOLS "Enable building and installation of tools for artists and
WML maintainers")
option(ENABLE_TESTS "Build unit tests")
option(ENABLE_NLS "Enable building of tranlations" ON)
+option(ENABLE_DUMMY_LOCALES "Enable installation of Wesnoth own private
locales" OFF)
option(ENABLE_POOL_ALLOC "Enable custom pool malloc" OFF)
option(ENABLE_LOW_MEM "Reduce memory usage by removing extra functionality"
OFF)
if (UNIX AND NOT APPLE AND NOT CYGWIN)
@@ -187,10 +188,11 @@
if (GETTEXT_FOUND AND ENABLE_NLS)
add_subdirectory(po)
find_program (LOCALEDEF localedef)
- if (LOCALEDEF)
+ if (LOCALEDEF AND ENABLE_DUMMY_LOCALES)
#
#create dummy-locales
#
+ add_definitions(-DUSE_DUMMYLOCALES)
set(DUMMY_LOCALE_C_DIR ${CMAKE_SOURCE_DIR}/locales/C)
@@ -218,7 +220,7 @@
# this is a workaround for a bug in 2.4-7
file(MAKE_DIRECTORY locales)
install(DIRECTORY locales DESTINATION ${DATADIR} USE_SOURCE_PERMISSIONS )
- endif (LOCALEDEF)
+ endif (LOCALEDEF AND ENABLE_DUMMY_LOCALES)
endif (GETTEXT_FOUND AND ENABLE_NLS)
add_subdirectory(src)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits