Author: loonycyborg
Date: Sun Apr 12 12:56:43 2009
New Revision: 34767

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

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=34767&r1=34766&r2=34767&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sun Apr 12 12:56:43 2009
@@ -62,6 +62,7 @@
     BoolVariable('lowmem', 'Set to reduce memory usage by removing extra 
functionality', False),
     BoolVariable('lua', 'Enable Lua support', True),
     BoolVariable('nls','enable compile/install of gettext message 
catalogs',True),
+    BoolVariable('dummy_locales','enable support for dummy locales',False),
     PathVariable('prefix', 'autotools-style installation prefix', 
"/usr/local", PathVariable.PathAccept),
     PathVariable('prefsdir', 'user preferences directory', 
".wesnoth$version_suffix", PathVariable.PathAccept),
     PathVariable('destdir', 'prefix to add to all installation paths.', "/", 
PathVariable.PathAccept),
@@ -290,6 +291,9 @@
 if not env['nls']:
      print "NLS catalogue installation is disabled."
 
+env["LOCALEDEF"] = WhereIs("localedef")
+env["dummy_locales"] = env["dummy_locales"] and env["nls"] and env["LOCALEDEF"]
+
 #
 # Implement configuration switches
 #
@@ -328,6 +332,9 @@
 
     if not env['lua']:
         env.Append(CPPDEFINES = "DISABLE_LUA")
+
+    if env["dummy_locales"]:
+        env.Append(CPPDEFINES = "USE_DUMMYLOCALES")
 
     if env["PLATFORM"] == "win32":
         env["pool_alloc"] = False
@@ -414,8 +421,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