Add images solely for use in the scons conftests.

This commit is contained in:
Pentarctagon 2022-04-09 12:50:54 -05:00 committed by Pentarctagon
parent 5796ae5fca
commit 89424888c6
5 changed files with 13 additions and 6 deletions

View file

@ -0,0 +1,7 @@
These images are here to ensure the scons conftests that check for image type support work. The contents of the actual images themselves don't matter other than there is an image per officially supported image format.
They are in this directory because some people and Linux distros use the source tarball to build from, and these images need to be present for them as well.
DO NOT USE THESE IMAGES IN ANY GAME DATA FILES.
DO NOT REFERENCE THESE IMAGES FROM ANYWHERE ELSE.
DO NOT REMOVE THESE IMAGES.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

View file

@ -171,7 +171,7 @@ def CheckPNG(context):
}
\n
'''
nodepath = File("images/buttons/button_normal/button_H22-pressed.png").rfile().abspath.replace("\\", "\\\\")
nodepath = File("data/core/images/scons_conftest_images/end-n.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"]:
@ -182,7 +182,7 @@ def CheckPNG(context):
context.Result("yes")
return True
else:
test_program2 = context.env.Clone(TESTFILE = "images/buttons/button_normal/button_H22-pressed.png").subst(test_program)
test_program2 = context.env.Clone(TESTFILE = "data/core/images/scons_conftest_images/end-n.png").subst(test_program)
(result, output) = context.TryRun(test_program2, ".c")
if result:
context.Result("yes")
@ -209,7 +209,7 @@ def CheckWebP(context):
}
\n
'''
nodepath = File("data/core/images/maps/background.webp").rfile().abspath.replace("\\", "\\\\")
nodepath = File("data/core/images/scons_conftest_images/end-n.webp").rfile().abspath.replace("\\", "\\\\")
test_program1 = context.env.Clone(TESTFILE = nodepath).subst(test_program)
context.Message("Checking for WebP support in SDL... ")
if context.env["host"]:
@ -220,7 +220,7 @@ def CheckWebP(context):
context.Result("yes")
return True
else:
test_program2 = context.env.Clone(TESTFILE = "data/core/images/maps/background.webp").subst(test_program)
test_program2 = context.env.Clone(TESTFILE = "data/core/images/scons_conftest_images/end-n.webp").subst(test_program)
(result, output) = context.TryRun(test_program2, ".c")
if result:
context.Result("yes")
@ -247,7 +247,7 @@ def CheckJPG(context):
}
\n
'''
nodepath = File("attic/northlands.jpg").rfile().abspath.replace("\\", "\\\\")
nodepath = File("data/core/images/scons_conftest_images/end-n.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"]:
@ -258,7 +258,7 @@ def CheckJPG(context):
context.Result("yes")
return True
else:
test_program2 = context.env.Clone(TESTFILE = "images/dialogs/addon_manager_bg.jpg").subst(test_program)
test_program2 = context.env.Clone(TESTFILE = "data/core/images/scons_conftest_images/end-n.jpg").subst(test_program)
(result, output) = context.TryRun(test_program2, ".c")
if result:
context.Result("yes")