Author: esr
Date: Wed Mar 26 03:38:09 2008
New Revision: 25135

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25135&view=rev
Log:
Fix an installation bug in the scons recipe.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=25135&r1=25134&r2=25135&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Wed Mar 26 03:38:09 2008
@@ -124,42 +124,6 @@
 env = conf.Finish()
 
 #
-# How to build the Wesnoth configuration file
-#
-
-wesconfig_h = '''
-#ifndef WESCONFIG_H_INCLUDED
-#define WESCONFIG_H_INCLUDED
-
-//! @file wesconfig.h
-//! Some defines: VERSION, PACKAGE, MIN_SAVEGAME_VERSION
-//!
-//! DO NOT MODIFY THIS FILE !!!
-//! modify SConstruct otherwise the settings will be overwritten.
-
-#define WESNOTH_PATH   "%(datadir)s"
-
-// We are building with scons, so Python cannot be absent. 
-#define HAVE_PYTHON
-
-# define VERSION "%(version)s"
-# define PACKAGE "wesnoth"
-# ifndef LOCALEDIR
-#  define LOCALEDIR "translations"
-# endif
-
-/**
- * Some older savegames of Wesnoth cannot be loaded anymore,
- * this variable defines the minimum required version.
- * It is only to be updated upon changes that break *all* saves/replays
- * (break as in crash Wesnoth, not compatibility issues like stat changes)
- */
-#define MIN_SAVEGAME_VERSION "%(min_savegame_version)s"
-
-#endif
-'''
-
-#
 # Implement configuration switches
 #
 extralibs=[]
@@ -203,6 +167,8 @@
 # Simulate autools-like behavior of prefix and datadir
 if not env["datadir"].startswith("/"):
     env["datadir"] = os.path.join(env["prefix"], env["datadir"])
+
+env["CXXFLAGS"].append("-DWESNOTH_PATH='\"%s\"'" % env['datadir'])
 
 cc_version = env["CCVERSION"]
 if env["CC"] == "gcc":
@@ -643,7 +609,7 @@
 datadir = env['datadir']
 pythonbins = [wesnoth, wesnoth_editor, cutter, exploder]
 pythontools = Split("wmlscope wmllint wmlindent")
-pythonmodules = Split("wmltools.py wmlparser.py wmldata.py wmliterator.py 
campaignserver_client.py")
+pythonmodules = Split("wmltools.py wmlparser.py wmldata.py wmliterator.py 
campaignserver_client.py libsvn.py __init__.py")
 
 for binary in pythonbins:
     env.Install(bindir, binary)
@@ -671,7 +637,7 @@
 # 1. We don't yet check for SDL version too old
 # 2. We don't check for Ogg Vorbis support in SDL_mixer
 # 3. Translations are not yet installed.
-# 4 Installation craps out with a mysterious "Is a directory" error.
+# 4. Installation craps out with a mysterious "Is a directory" error.
 # FIXME tags other problems
 
 # Local variables:


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

Reply via email to