Skip to content

Commit

Permalink
Merge pull request #522 from techtonik/patch-3
Browse files Browse the repository at this point in the history
scons/sdl.py: Escape backslashes on path substitution
  • Loading branch information
loonycyborg committed Oct 12, 2015
2 parents 76ad3e9 + c001f66 commit 7fd9e22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scons/sdl.py
Expand Up @@ -99,7 +99,8 @@ def CheckOgg(context):
}
\n
'''
test_program1 = context.env.Clone(TESTFILE = File("data/core/music/main_menu.ogg").rfile().abspath).subst(test_program)
nodepath = File("data/core/music/main_menu.ogg").rfile().abspath.replace("\\", "\\\\")
test_program1 = context.env.Clone(TESTFILE = nodepath).subst(test_program)
#context.env.AppendUnique(LIBS = "SDL_mixer")
context.Message("Checking for Ogg Vorbis support in SDL... ")
if context.env["host"]:
Expand Down Expand Up @@ -137,7 +138,8 @@ def CheckPNG(context):
}
\n
'''
test_program1 = context.env.Clone(TESTFILE = File("images/buttons/button_normal/button_H22-pressed.png").rfile().abspath).subst(test_program)
nodepath = File("images/buttons/button_normal/button_H22-pressed.png").rfile().abspath.replace("\\", "\\\\")
test_program1 = context.env.Clone(TESTFILE = nodepath).subst(test_program)
context.Message("Checking for PNG support in SDL... ")
if context.env["host"]:
context.Result("n/a (cross-compile)")
Expand Down Expand Up @@ -174,7 +176,8 @@ def CheckJPG(context):
}
\n
'''
test_program1 = context.env.Clone(TESTFILE = File("data/core/images/maps/background.jpg").rfile().abspath).subst(test_program)
nodepath = File("data/core/images/maps/background.jpg").rfile().abspath.replace("\\", "\\\\")
test_program1 = context.env.Clone(TESTFILE = nodepath).subst(test_program)
context.Message("Checking for JPG support in SDL... ")
if context.env["host"]:
context.Result("n/a (cross-compile)")
Expand Down

0 comments on commit 7fd9e22

Please sign in to comment.