scons/sdl.py: Escape backslashes on path substitution
This clears warnings on Windows https://github.com/wesnoth/wesnoth/pull/481#issue-104760195
This commit is contained in:
parent
b68ea239d5
commit
c001f661f0
1 changed files with 6 additions and 3 deletions
|
@ -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"]:
|
||||
|
@ -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)")
|
||||
|
@ -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)")
|
||||
|
|
Loading…
Add table
Reference in a new issue