Gunter Labes
553b1a4511
Fix scons SDL version check
...
0aa8dc3
converted to a runtime test and broke the scons SDL version check since
it only links which trivially makes it work for cross compilation though.
2024-04-20 18:05:11 +02:00
Pentarctagon
11fdf19e58
Fix SDL2 conftests with new msys2 image.
2023-03-09 20:40:42 -06:00
Pentarctagon
7a4037bb2f
Fixup msys2 on windows.
2022-05-12 08:46:15 -05:00
Pentarctagon
0aa8dc3c6c
Have cmake also execute the conftests.
2022-05-03 18:10:46 -05:00
Pentarctagon
89424888c6
Add images solely for use in the scons conftests.
2022-04-29 20:08:06 -05:00
Pentarctagon
4698b9393f
Use non-attic jpg file.
2022-03-21 13:26:17 -05:00
Pentarctagon
f44acd68c2
Add build support for webp images.
2022-03-12 13:47:46 -06:00
loonycyborg
ffb078c119
scons: don't let pkg-config to add prefix on msys2
...
This is workaround for windows style path confusing scons if they appear
in CPPATH etc. Paths without prefix still happen to be valid and they
start with "/", not "c:".
(cherry-picked from commit b347bc70b1
)
2018-10-07 03:22:09 +00:00
loonycyborg
13c5f02e04
scons: use pkg-config on msys platform for sdl
...
(cherry-picked from commit aa925e1fc6
)
2018-10-07 03:22:09 +00:00
Charles Dang
950a156712
Addressed most of the remaining whitespace issues from #2613
...
[ci skip]
2018-03-11 14:59:37 +11:00
sigurdfdragon
65cf6eb6af
Fixup c4d78f8
2017-11-03 22:45:00 -04:00
loonycyborg
6163285ae0
Made ogg vorbis support check use dummy SDL audio driver
2017-11-01 19:54:17 +11:00
Gregory A Lundberg
c4d78f8fc6
Fix Scons for SDL2_mixer 2.0.2
...
With the change from SDL_mixer 2.0.1 to 2.0.2, we cannot simply check if SDL_mixer can open an OGG/Vorbis file, we must first open an audio device. [This is probably a mistake, since the documentation implies simply initializing the codec should be enough.] To avoid future problems, upgrade the feature-test program to perform a full initialization and shut-down; everything except actually playing the sound.
Closes #2137
2017-11-01 19:54:17 +11:00
loonycyborg
296c217e5d
scons: change sdl check so it sets up pkg-config and PATH if passed non-empty sdldir
...
Needed for specifying local installs of sdl on non-windows platforms.
2015-11-17 15:32:08 +03:00
loonycyborg
627acb9b0b
scons: Add SDL calls to SDL test program
2015-11-15 17:54:28 +03:00
anatoly techtonik
c001f661f0
scons/sdl.py: Escape backslashes on path substitution
...
This clears warnings on Windows
https://github.com/wesnoth/wesnoth/pull/481#issue-104760195
2015-10-10 20:11:47 +03:00
Chris Beck
ef27b9b42c
scons: for sdl checks, fall back to old mechanism if new fails
...
This should accomodate everyone, unless they are trying to do out-
of-tree builds and also have unicode in their file paths.
Works for me anyways.
2015-04-07 13:57:22 -04:00
loonycyborg
2fca959437
scons: fix out-of-tree builds without using python's operator %
2015-04-07 16:33:51 +03:00
loonycyborg
ff80a64ebb
Revert "scons: fix config checks that require running test programs for out-of-tree builds"
...
This reverts commit 3c7a3e6484
.
2015-04-07 15:46:12 +03:00
loonycyborg
3c7a3e6484
scons: fix config checks that require running test programs for out-of-tree builds
2015-04-04 16:49:03 +03:00
Chris Beck
ea3da43e66
add documentation, scons check for jpg support in sdl_image
...
It was reported on Dec 22 2014 in irc that the game is broken if
this is missing, and a search shows that bigmaps and many campaign
story screens use jpg images.
It makes more sense imo to document this as an official dependency
now, and if we decide to change everything to png's then we can go
back and disable the jpg check then.
2014-12-22 22:07:14 -05:00
loonycyborg
8a8bc9041b
scons: fix mingw32 cross-compile
...
Made check for PNG support in SDL always succeed for cross-compile scenarios
because it requires running a test program.
2014-12-21 22:49:44 +03:00
Boldizsár Lipka
7b6c125ffd
Add an sdl2 option to SCons.
...
It allows building Wesnoth with SDL2. False by default. The SDL2 versions of
SDL_image, SDL_mixer, SDL_net and SDL_ttf are required, too.
2014-03-08 21:30:04 +01:00
Charles Dang
485629d0e6
Updated path to testimage
2013-05-30 21:16:09 +11:00
Alexander van Gessel
9f314cd978
Fix some executable properties.
2008-09-30 15:07:09 +01:00
Alexander van Gessel
0063d92356
Adjust a lot of svn properties.
2008-09-30 14:06:26 +01:00
Sergey Popov
d41f1064ce
SCons recipe: added cross-compile support.
2008-06-23 19:52:02 +00:00
Sergey Popov
51f18a2a02
Added python imports that for some reason are required on windows...
...
...but not on linux.
Append PROGSUFFIX when copying binaries to wesnoth root.
2008-05-08 11:22:15 +00:00
Sergey Popov
3626ba999c
Made sdl check honor PKG_CONFIG_PATH.
2008-05-07 21:37:52 +00:00
Sergey Popov
5610e7f241
Moved all custom config checks to separate files.
2008-05-06 13:19:38 +00:00