572 Commits

Author SHA1 Message Date
Pentarctagon
458b9ce62d Update SConstruct
Update SConscript

Update SConscript

m
2016-11-18 01:27:40 -06:00
Gregory A Lundberg
34dcd0657f Test for Travis and only require SDL 2.0.2 2016-10-16 03:36:57 -05:00
Gregory A Lundberg
907eb5bf7e Require SDL2 2.0.4 on all target platforms. 2016-10-16 00:55:24 -05:00
Ignacio R. Morelle
ea9d077b89 fs: Add utility functions for the new file dialog
These include an alternate mode of normalize_path() that enforces the
platform's preferred path delimiter (i.e. backslash on Windows) on the
output, and a function to detect whether a path refers to a root
directory.

Unfortunately, the last bit requires introducing a new link-time
dependency on Windows, against a system library. It's guaranteed to be
always there but it seems kind of a waste. The alternative would be to
hand-parse the string but that seems even more of a waste. And no,
Boost.Filesystem can't do this in a straightforward fashion right now.
2016-10-05 03:06:43 -03:00
loonycyborg
fd1c94b2f8 scons: clean up unused sdl_net helper 2016-10-03 13:41:45 +03:00
loonycyborg
5a75a242c5 scons: remove obsolete raw_sockets option 2016-10-03 13:34:30 +03:00
loonycyborg
c16adcd8c9 Merge branch 'campaignd_asio' 2016-09-15 16:34:09 +03:00
Ignacio R. Morelle
3a925c85e3 scons: Fix compiler switch typo
Accidentally introduced in 2483fc80e4a57f7cdc0ff9fbeaed08d85699d0d6,
oops. Didn't become evident unless hitting other compiler errors,
though.
2016-09-13 19:42:08 -03:00
loonycyborg
1c90221527 Merge branch 'master' into campaignd_asio 2016-09-13 16:37:36 +03:00
Ignacio R. Morelle
2483fc80e4 scons: Don't pass a C++ compiler flag to C compilers
Needed since 0180a72573a482683485821c8d43a82a546a86c6 introduces the
requirement of a C compiler in the building process. Otherwise we get
this from GCC 6.1.1:

  cc1: error: command line option ‘-Wold-style-cast’ is valid for C++/ObjC++ but not for C [-Werror]
2016-09-11 02:11:22 -03:00
loonycyborg
31bbedd94e Merge branch 'master' into campaignd_asio 2016-06-17 21:59:37 +03:00
loonycyborg
44fa6651c8 scons: help text clarification for extra_flags_* variables 2016-06-17 13:22:54 +03:00
loonycyborg
fccf4f067f scons: add an option to enable clang/GCC sanitizer functionality 2016-06-17 12:51:46 +03:00
loonycyborg
358bf3f9f8 Switch campaignd to use asio by reusing wesnothd code via server_base class 2016-06-15 22:14:29 +03:00
loonycyborg
550fa9086b Revert "scons: remove SDL_net dependency from unit tests"
This reverts commit 101e5d36ef3c799bf43668cdd901f2e4080914c3.
2016-06-09 12:29:08 +03:00
loonycyborg
101e5d36ef scons: remove SDL_net dependency from unit tests 2016-06-09 12:04:27 +03:00
loonycyborg
3ee7fe2e59 scons: no longer link client against SDL_net 2016-06-08 17:20:59 +03:00
loonycyborg
0f9e04501f Remove obsolete and unused HAVE_CXX0X macro from buildsystems 2016-06-01 22:14:09 +03:00
loonycyborg
67479e4074 scons: properly move asio check to serverside checks 2016-06-01 17:30:43 +03:00
Andreas Löf
d350d91c40 Make strict compilation under scons behave like cmake
This adds -Wold-style-cast to the CCFLAGS when compiling everything
but lua. Lua requires an exception from the flags and there's thus a
workaround added.
2016-06-01 20:57:43 +12:00
loonycyborg
37688d57d6 Remove redundant SDL check 2016-05-07 11:27:36 +03:00
loonycyborg
94c8533e1f Merge branch 'master' into asio_wesnothd 2016-04-07 17:17:21 +03:00
gfgtdf
479f1b3d52 also allow c++1y in SConstruct 2016-04-03 02:38:54 +02:00
loonycyborg
bb02ce7c72 scons: add option to enable using c++14 features 2016-04-01 19:46:02 +03:00
loonycyborg
af7286c421 scons: add check for boost.thread since it's a dependency now 2016-03-31 00:46:06 +03:00
loonycyborg
0795ad879b scons: due to switch to std c++11 always pass -std=c++11 2016-03-31 00:10:32 +03:00
Andreas Löf
5c6e7c7d20 Remove SDL1 from SCons and CMake
This makes SDL2 the only build alternative for Wesnoth. Any
conditionals are removed, leaving only the settings that rely on SDL2.
2016-03-13 11:34:29 +13:00
anatoly techtonik
015cb9b3d9 SConstruct: Mention how to build Windows installer 2016-03-01 17:16:36 +03:00
loonycyborg
7666030367 Merge branch 'master' into asio_wesnothd 2016-01-19 15:21:06 +03:00
Andreas Löf
9b5870e14b Correct SDL2 versions for linux/win32/osx in build scripts
Codify the requirements set forth in the INSTALL file in scons and
cmake as they are used on other platforms that Linux and * BSD.
2016-01-17 10:41:36 +13:00
Andreas Löf
9ed01599ee Drop requiered SDL2 version to 2.0.2 on Linux and *BSD
This drops the required version to 2.0.2 on Linux and *BSD, as there are no known bugs that require us to have a later version on these platforms. Windows and Os X remains as 2.0.4.
2016-01-17 09:28:18 +13:00
Andreas Löf
4650202390 Update build requirements to SDL 2.0.4 2016-01-17 08:26:14 +13:00
loonycyborg
a48be105f7 scons: pass -isystem instead of -I for third party library includes 2016-01-04 20:25:49 +03:00
loonycyborg
f709b8ee8f scons: Added an option to support using multilib gcc in 32-bit mode
multilib_arch=32 will pass -m32 to both compiler and linker causing multilib gcc to produce 32bit binaries.
2015-12-02 16:58:43 +03:00
loonycyborg
4456dcbfaf scons: added ctool option to specify c compiler command
if cxxtool option is unspecified it will be derived from ctool
2015-12-02 16:58:40 +03:00
loonycyborg
879ab58e39 Remove dependency on SDL from wesnothd 2015-11-15 17:14:11 +03:00
loonycyborg
5c42f3d13b Merge branch 'master' into asio_wesnothd 2015-10-29 14:54:16 +03:00
loonycyborg
e961b087e7 Remove dependency of wesnothd on SDL_net updating scons accordingly 2015-10-28 12:08:26 +03:00
Andreas Löf
e8c3e99dad Make SDL2 the default in cmake and scons
This changes the default settings in the cmake and scons to make all
targets be compiled with SDL2 as opposed to SDL1.
2015-09-15 20:45:27 +12:00
anatoly techtonik
63c355b635 SConstruct: Check all SDL libs together
This speeds up troubleshooting of OGG dependencies
2015-09-03 22:19:45 +03:00
aquileia
4a272b301d Windows installer: Use FILE /oname to avoid copying files 2015-08-08 03:53:04 +02:00
Ignacio R. Morelle
b756c19dd3 scons: Require SDK defs for Windows XP and later instead of 2000 and later
1.13.1 does away with Windows 2000 compatibility by requiring the
AttachConsole function from kernel32.dll, introduced in Windows XP.
2015-07-23 21:07:40 -03:00
Ignacio R. Morelle
88811d9bf1 scons: Clean up warning message 2015-07-22 02:04:47 -03:00
loonycyborg
980434ce96 Windows installer: added a start menu shortcut to run wesnoth with console 2015-07-14 19:03:40 +03:00
Ignacio R. Morelle
3a4c11a2e7 scons: Propagate HAVE_FRIBIDI to all files
How does doing otherwise even help reduce compile times unless you are
changing your build environment every time? It's just a liability that
makes it harder to do feature detection from other files. It's also
asymmetrical with regards to the CMake recipe.
2015-07-13 05:12:26 -03:00
loonycyborg
dc7fb0b951 Update SConstruct to reflect rename of README 2015-06-20 16:18:01 +03:00
Ignacio R. Morelle
4c7b7b5a15 scons: 'test' is also built by the 'all' target 2015-04-05 21:56:32 -03:00
Chris Beck
66f69529b0 Merge pull request #351 from cbeck88/remove_bfs_option_ii
scons: remove boostfilesystem build option, replace with "libintl"
2015-01-02 14:34:40 -05:00
Chris Beck
bcc5be9f50 Merge pull request #348 from techtonik/sdl1215
Require SDL 1.2.15, which has important bug fix for Wesnoth
2014-12-30 20:18:53 -05:00
anatoly techtonik
951b0b7f1f Bump hard SDL requirement to SDL 1.2.10 and soft to 1.2.15
SDL 1.2.15 contains important bug fix for Wesnoth:
  https://bugzilla.libsdl.org/show_bug.cgi?id=894
  http://forums.wesnoth.org/viewtopic.php?f=5&t=41237

Further discussion:
 https://github.com/wesnoth/wesnoth/pull/348
2014-12-30 11:57:27 +03:00