Commit graph

513 commits

Author SHA1 Message Date
Sergey Popov
e57fbec3f5 Added a scons option to enable openmp support using gcc's GOMP
openmp=true to enable.
2011-02-28 22:47:44 +00:00
Mark de Wever
ff422edc9c Remove the editor option.
This changes causes the editor to be always build. It also sorts the
file entries in the build systems.

loonycyborg please review the scons changes.
2011-02-19 12:25:05 +00:00
Sergey Popov
452de587cc Comment cleanup/fix 2011-02-12 16:52:50 +00:00
Sergey Popov
95f0164168 Removed gui=tiny option from SConstruct. 2011-02-12 16:44:11 +00:00
Guillaume Melquiond
2279bc0e77 Ported C++0x performance improvements from Autotools to Scons.
Since Scons was forcefully setting the compiler in C++98 mode, this
behavior has been preserved: C++0x features are not automatically
detected (as they were with Autotools) but rather require an
explicitly setting by the user.

Removed strict-aliasing disabling, since it has been fixed for several months already.
2011-02-06 13:23:05 +00:00
Sergey Popov
96e204957c Split CXXFLAGS and LDFLAGS when reading them from system environment. 2011-01-03 23:27:17 +00:00
Sergey Popov
306cccfef5 Made scons not pass -DPREFERENCES_DIR= by default.
Pass it only if prefsdir or version_suffix is set. That is consistent
with other buildsystems and enables XDG compliant locations for user
configuration, user data and cache if prefsdir/version_suffix are not
set.
2010-10-15 01:24:24 +00:00
Sergey Popov
74f1cb1928 When compiling for windows set appropriate define to target windows 2000.
This fixes a compile warning from asio.
2010-08-24 14:44:04 +00:00
Sergey Popov
725c567339 Switch scons to use internal lua. 2010-07-30 12:04:28 +00:00
Sergey Popov
0f55fad9ee Removed some cruft. 2010-07-22 20:24:44 +00:00
Sergey Popov
20e6cf420e asio requires linking against libws2_32 on mingw 2010-07-22 19:43:07 +00:00
Guillermo Biset
b74b332561 Switched ana's default flag in SCons back to true. 2010-07-22 18:37:29 +00:00
Alexander van Gessel
ed56bdce55 revert 2010-07-09T23:11:14Z!ai0867@gmail.com, ANA isn't ready yet 2010-07-10 00:40:42 +01:00
Alexander van Gessel
5ae6f07445 Flip the 'use ana' switch's default to true for scons and autotools 2010-07-10 00:11:14 +01:00
Sergey Popov
5514c4e952 Add use_network_ana option to scons. 2010-06-22 00:05:01 +00:00
Guillaume Melquiond
e6ab1f0c1a Removed explicit disabling of compiler warning,
...as the current codebase compiles fine with it.
2010-05-26 20:19:07 +00:00
Mark de Wever
4cc313daf2 Fix compilation for g++ 4.5 2010-04-25 09:43:12 +00:00
Sergey Popov
339b67f937 Do not build regression tests by default. 2010-03-27 01:34:49 +00:00
Sergey Popov
275a8c9f73 Removed some cruft. 2010-02-24 00:29:06 +00:00
Jérémy Rosen
53105be56f remove EXPERIMENTAL blocks in source 2010-02-22 20:08:38 +00:00
Alexander van Gessel
d75b0f8cff Remove lua switch from scons,
...wesnoth doesn't compile without it and autotools and cmake have
already dropped the switch
2010-02-06 18:13:11 +01:00
Eric S. Raymond
20792eed8d Nail the default of 'experimental' to False. 2010-01-26 11:11:35 +00:00
Eric S. Raymond
2dbc96bef0 Now that the new pathfind code is working,
...enable it by default in 1.7 (but not 1.8 betas).
2010-01-26 10:31:54 +00:00
Eric S. Raymond
75925deb82 Merge of fendrin's new teleport and tunnel code.
The changes are guarded by the C++ and WML conditional symbol
"EXPERIMENTAL".

The experimental flag is temporarily defaulted off, so those patches
should have no effect on people doing ordinary builds. This may change
once fendrin has the tunnel code fixed and polished.
2010-01-26 06:34:20 +00:00
Eric S. Raymond
0f129764ae Doc typo fix. 2010-01-26 03:16:11 +00:00
Eric S. Raymond
30d0e3935b Add experimental option.
This defaults to 'yes' for odd-numbered (unstable) versions, 'no' for
even-numbered (unstable) versions.  It controls an EXPERIMENTAL
preprocessor symbol, defined only when experimental is 'yes', and an
EXPERIMENTAL automake conditional.

This is meant as a guard option for experimental, developer-only code
that should be disabled in stable versions.  The immediate application
is fendrin's new pathfinding/tunnel code, which we want to carry in
the main codebase for the remainder of 1.7 but be automatically
disabled in 1.8 betas and 1.8 itself.

Implemented for scons and autotools but not yet cmake.
2010-01-26 03:12:25 +00:00
Sergey Popov
a6bee72ded Removed dummy locales from scons. 2009-10-31 22:02:43 +00:00
Sergey Popov
068103c765 Added 'lockfile' option to scons
It uses a lockfile to prevent multiple instances of scons from being run
in the same working copy at the same time.
2009-10-10 11:00:12 +00:00
Chusslove Illich
18dd3c5871 Localized image states are now checked at runtime,
...so that fuzzy localized images are not used if present.
This requires installing the l10n-track file as well.
2009-10-03 16:18:21 +00:00
Sergey Popov
24ec2de877 Fix conditional enabling the 2009-09-24T16:46:12Z!kailoran@gmail.com workaround.
s/env["PLATFORM"]/sys.platform. env["PLATFORM"] is used by cross-compile.
2009-09-25 13:23:37 +00:00
Sergey Popov
d24931ac3a Improve the workaround in 2009-09-24T16:46:12Z!kailoran@gmail.com.
Provide a simple subprocess module based spawner in case if pywin32
extensions aren't available.
2009-09-25 13:13:24 +00:00
Tomasz Śniatowski
659c4562e0 work around a SCons "The command line is too long"...
...problem on windows during linking using code from
http://www.scons.org/wiki/LongCmdLinesOnWin32
2009-09-24 17:46:12 +01:00
Sergey Popov
fe0f94e913 Updated SConstruct to reflect KDE and libnotify notification...
...backends unification.
2009-08-10 09:47:58 +00:00
Sergey Popov
d96f28309d Prevent building of translations if 'wesnoth' target is requested...
...but its dependencies aren't found.
2009-08-08 23:49:44 +00:00
Sergey Popov
5b4ece9bc6 Check for fribidi, X11, etc only if checks for client dependencies succeed.
Check for poll, select and round before all other checks.
2009-08-08 23:49:38 +00:00
Tomasz Śniatowski
1a934ac94b rename editor2 -> editor. Old editor is long dead, long live the new editor! 2009-08-08 12:14:58 +01:00
Sergey Popov
65e0cf6b9e Require boost >= 1.34.1 for wesnothd and require >= 1.35 for the client. 2009-08-03 19:28:12 +00:00
Sergey Popov
d15f17fd01 Bump boost version requirement in SConstruct. 2009-08-01 14:33:16 +00:00
Sergey Popov
5b502fab98 Lowered frbidi version requirement since 0.10.9 seems to work too. 2009-07-12 17:45:29 +00:00
Sergey Popov
36e8937f4d Made scons use pkg-config to check for fribidi. 2009-07-11 12:30:34 +00:00
Sergey Popov
4f4a80dd77 Wesnoth was depending on translations only with dummy_locales enabled. Fixed. 2009-07-08 10:38:54 +00:00
Sergey Popov
0308567800 Added support for kde's desktop notification DBus service.
For now disabled by default. Enabled with 'scons notifications=true
notifications_backend=kde". Compilation requires only QtDBus but they'll
only work if wesnoth is run in a kde4.2 session.
2009-07-05 18:26:21 +00:00
Sergey Popov
e6e2f98710 Added a scons option to relocate build/ dir. 2009-06-27 19:13:15 +00:00
Sergey Popov
39621ecc0d Added support for libnotify desktop notifications to scons. 2009-06-21 10:44:53 +00:00
Sergey Popov
37c98b7a1d Ensure that scons exits with an error...
...if building of a disabled target is requested

either directly or indirectly.
2009-05-03 10:32:00 +00:00
Sergey Popov
4700504d71 SCons was installing irrelevant files to docdir. Fixed. 2009-04-27 11:52:53 +00:00
Sergey Popov
ef5afba9ab Avoid linking programs against external dependencies they don't need.
Don't link wesnothd against pango etc, don't link the game against mysql..
2009-04-27 11:00:14 +00:00
Sergey Popov
1ea53563f6 Disable -Wno-unused -Wno-sign-compare.
Pass -Wno-unused-parameter on strict compiles.
2009-04-25 19:06:08 +00:00
Sergey Popov
3b600d3a6e Check for sendfile() only if header sys/sendfile.h is detected.
Hopefully there aren't any non-Linux platforms that have
have sys/sendfile.h and incompatible sendfile()
2009-04-23 23:00:59 +00:00
Sergey Popov
7e6f6bc001 Added dummy_locales option to scons. 2009-04-12 10:56:43 +00:00