Author: loonycyborg
Date: Sun Apr 12 13:56:06 2009
New Revision: 34776

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34776&view=rev
Log:
Added dummy_locales option to scons.

Modified:
    branches/1.6/SConstruct

Modified: branches/1.6/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/SConstruct?rev=34776&r1=34775&r2=34776&view=diff
==============================================================================
--- branches/1.6/SConstruct (original)
+++ branches/1.6/SConstruct Sun Apr 12 13:56:06 2009
@@ -67,6 +67,7 @@
     BoolOption('editor', 'Enable editor', True),
     BoolOption('lowmem', 'Set to reduce memory usage by removing extra 
functionality', False),
     BoolOption('nls','enable compile/install of gettext message 
catalogs',True),
+    BoolOption('dummy_locales','enable support for dummy locales',False),
     PathOption('prefix', 'autotools-style installation prefix', "/usr/local", 
PathOption.PathAccept),
     PathOption('prefsdir', 'user preferences directory', 
".wesnoth$version_suffix", PathOption.PathAccept),
     PathOption('destdir', 'prefix to add to all installation paths.', "/", 
PathOption.PathAccept),
@@ -285,6 +286,8 @@
 if not env['nls']:
      print "NLS catalogue installation is disabled."
 
+env["dummy_locales"] = env["dummy_locales"] and env["nls"]
+
 #
 # Implement configuration switches
 #
@@ -320,6 +323,9 @@
 
     if not env["editor"]:
         env.Append(CPPDEFINES = "DISABLE_EDITOR2")
+
+    if env["dummy_locales"]:
+        env.Append(CPPDEFINES = "USE_DUMMYLOCALES")
 
     if env["PLATFORM"] == "win32":
         env["pool_alloc"] = False
@@ -406,8 +412,6 @@
 # Dummy locales
 #
 
-env["LOCALEDEF"] = WhereIs("localedef")
-env["dummy_locales"] = env["nls"] and env["LOCALEDEF"]
 if env["dummy_locales"]:
     env.Command(Dir("locales/C"), [], "-mkdir -p locales;echo | $LOCALEDEF -c 
\"$TARGET\" 2> /dev/null")
     language_cfg_re = re.compile(r"data/languages/(.*)\.cfg")


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to