Re-introduce wesconfig.h include to some files...
...where it will be handy for the scons build.
This commit is contained in:
parent
0d68aacd5e
commit
d648270ebb
6 changed files with 14 additions and 8 deletions
|
@ -71,8 +71,8 @@ Available build targets include:
|
|||
|
||||
wesnoth wesnoth_editor wesnothd campaignd exploder cutter
|
||||
all = all installables
|
||||
test = unit test binary
|
||||
tags = build tags for Emacs.
|
||||
test = unit test binary (not an imstallable)
|
||||
TAGS = build tags for Emacs.
|
||||
|
||||
""" + opts.GenerateHelpText(env))
|
||||
conf = Configure(env)
|
||||
|
@ -87,6 +87,10 @@ if not "/" in envdict["datadir"]:
|
|||
# Check some preconditions
|
||||
#
|
||||
|
||||
if float(sys.version[:3]) < 2.5:
|
||||
print "Python version is too old, 2.4 or greater is required,"
|
||||
Exit(1)
|
||||
|
||||
targets = map(str, BUILD_TARGETS)
|
||||
|
||||
if ("wesnoth" in targets or "wesnoth_editor" in targets):
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
//! @file ai.cpp
|
||||
//! Artificial intelligence - The computer commands the enemy.
|
||||
|
||||
#include "wesconfig.h"
|
||||
#include "ai.hpp"
|
||||
#include "ai2.hpp"
|
||||
#include "ai_dfool.hpp"
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
supposed to be catched by user scripts.
|
||||
*/
|
||||
|
||||
#include "wesconfig.h"
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
|
||||
#include "global.hpp"
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
#include "titlescreen.hpp"
|
||||
#include "util.hpp"
|
||||
#include "upload_log.hpp"
|
||||
#include "wesconfig.h"
|
||||
#include "wml_exception.hpp"
|
||||
#include "wml_separators.hpp"
|
||||
#include "serialization/binary_or_text.hpp"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "statistics.hpp"
|
||||
#include "show_dialog.hpp"
|
||||
#include "serialization/string_utils.hpp"
|
||||
#include "wesconfig.h"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -8,23 +8,20 @@
|
|||
//! DO NOT MODIFY THIS FILE !!!
|
||||
//! modify SConstruct otherwise the settings will be overwritten.
|
||||
|
||||
// We are building with scons, so Python cannot be absent.
|
||||
#define HAVE_PYTHON
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#else
|
||||
# define VERSION "1.5.0-svn"
|
||||
# define PACKAGE "wesnoth"
|
||||
# ifndef LOCALEDIR
|
||||
# define LOCALEDIR "translations"
|
||||
# endif
|
||||
#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)
|
||||
* (break as in crash Wesnoth, not compatibility issues like stat changes)
|
||||
*/
|
||||
#define MIN_SAVEGAME_VERSION "1.3.10"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue