scons: fix out-of-tree builds without using python's operator %
This commit is contained in:
parent
ff80a64ebb
commit
2fca959437
1 changed files with 6 additions and 3 deletions
|
@ -91,7 +91,7 @@ def CheckOgg(context):
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
Mix_Music* music = Mix_LoadMUS("data/core/music/main_menu.ogg");
|
||||
Mix_Music* music = Mix_LoadMUS("$TESTFILE");
|
||||
if (music == NULL) {
|
||||
exit(1);
|
||||
}
|
||||
|
@ -99,6 +99,7 @@ def CheckOgg(context):
|
|||
}
|
||||
\n
|
||||
'''
|
||||
test_program = context.env.Clone(TESTFILE = File("data/core/music/main_menu.ogg").rfile().abspath).subst(test_program)
|
||||
#context.env.AppendUnique(LIBS = "SDL_mixer")
|
||||
context.Message("Checking for Ogg Vorbis support in SDL... ")
|
||||
if context.env["host"]:
|
||||
|
@ -120,7 +121,7 @@ def CheckPNG(context):
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
SDL_RWops *src;
|
||||
char *testimage = "images/buttons/button_normal/button_H22-pressed.png";
|
||||
char *testimage = "$TESTFILE";
|
||||
|
||||
src = SDL_RWFromFile(testimage, "rb");
|
||||
if (src == NULL) {
|
||||
|
@ -130,6 +131,7 @@ def CheckPNG(context):
|
|||
}
|
||||
\n
|
||||
'''
|
||||
test_program = context.env.Clone(TESTFILE = File("images/buttons/button_normal/button_H22-pressed.png").rfile().abspath).subst(test_program)
|
||||
context.Message("Checking for PNG support in SDL... ")
|
||||
if context.env["host"]:
|
||||
context.Result("n/a (cross-compile)")
|
||||
|
@ -150,7 +152,7 @@ def CheckJPG(context):
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
SDL_RWops *src;
|
||||
char *testimage = "data/core/images/maps/background.jpg";
|
||||
char *testimage = "$TESTFILE";
|
||||
|
||||
src = SDL_RWFromFile(testimage, "rb");
|
||||
if (src == NULL) {
|
||||
|
@ -160,6 +162,7 @@ def CheckJPG(context):
|
|||
}
|
||||
\n
|
||||
'''
|
||||
test_program = context.env.Clone(TESTFILE = File("data/core/images/maps/background.jpg").rfile().abspath).subst(test_program)
|
||||
context.Message("Checking for JPG support in SDL... ")
|
||||
if context.env["host"]:
|
||||
context.Result("n/a (cross-compile)")
|
||||
|
|
Loading…
Add table
Reference in a new issue