Author: mordante
Date: Sun Apr 12 17:48:02 2009
New Revision: 34790
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34790&view=rev
Log:
Make the dummy locales an option.
Modified:
branches/1.6/CMakeLists.txt
Modified: branches/1.6/CMakeLists.txt
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/CMakeLists.txt?rev=34790&r1=34789&r2=34790&view=diff
==============================================================================
--- branches/1.6/CMakeLists.txt (original)
+++ branches/1.6/CMakeLists.txt Sun Apr 12 17:48:02 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)
@@ -177,10 +178,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)
@@ -208,7 +210,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