Author: ilor
Date: Sat Jun  7 15:57:48 2008
New Revision: 27028

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27028&view=rev
Log:
Add editor2 build option to scons

Modified:
    trunk/SConstruct
    trunk/src/SConscript

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=27028&r1=27027&r2=27028&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sat Jun  7 15:57:48 2008
@@ -43,6 +43,7 @@
     PathOption('datarootdir', 'sets the root of data directories to a 
non-default location', "share", PathOption.PathAccept),
     PathOption('datadirname', 'sets the name of data directory', "wesnoth", 
PathOption.PathAccept),
     PathOption('desktopdir', 'sets the desktop entry directory to a 
non-default location', "$datarootdir/applications", PathOption.PathAccept),
+    BoolOption('editor2', 'set to build the new map editor in the "wesnoth" 
target', False),
     PathOption('icondir', 'sets the icons directory to a non-default 
location', "$datarootdir/icons", PathOption.PathAccept),
     BoolOption('internal_data', 'Set to put data in Mac OS X application 
fork', False),
     PathOption('localedirname', 'sets the locale data directory to a 
non-default location', "translations", PathOption.PathAccept),
@@ -263,6 +264,9 @@
 
 if env['dummy_locales']:
     env.Append(CPPDEFINES = "USE_DUMMYLOCALES")
+    
+if env['editor2']:
+    env.Append(CPPDEFINES = "USE_EDITOR2")
 
 # Simulate autools-like behavior of prefix on various paths
 installdirs = Split("bindir datadir fifodir icondir desktopdir mandir docdir 
python_site_packages_dir")

Modified: trunk/src/SConscript
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/SConscript?rev=27028&r1=27027&r2=27028&view=diff
==============================================================================
--- trunk/src/SConscript (original)
+++ trunk/src/SConscript Sat Jun  7 15:57:48 2008
@@ -197,6 +197,21 @@
     widgets/scrollpane.cpp
     """)
 
+# used with editor2 option in the wesnoth target
+wesnoth_editor2_sources = Split("""
+    editor2/editor_main.cpp
+    editor/editor.cpp
+    editor/editor_layout.cpp
+    editor/map_manip.cpp
+    editor/editor_display.cpp
+    editor/editor_palettes.cpp
+    editor/editor_dialogs.cpp
+    editor/editor_undo.cpp
+    """)
+    
+if env['editor2']:
+    wesnoth_sources += wesnoth_editor2_sources
+
 #
 # Target declarations
 #


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

Reply via email to