scons: builtin_glsl_function on windows needs bundled getopt.

This commit is contained in:
José Fonseca
2011-02-11 17:38:54 +00:00
parent ae760279f1
commit 982609f4cf
4 changed files with 23 additions and 5 deletions

View File

@@ -82,7 +82,9 @@ sources = [
]
if not env['crosscompile'] or env['platform'] == 'embedded':
if env['crosscompile'] and env['platform'] != 'embedded':
Import('builtin_glsl_function')
else:
if env['msvc']:
env.Prepend(CPPPATH = ['#/src/getopt'])
env.PrependUnique(LIBS = [getopt])
@@ -105,6 +107,10 @@ if not env['crosscompile'] or env['platform'] == 'embedded':
Export('builtin_glsl_function')
if env['hostonly']:
Return()
sources += builtin_glsl_function
glsl = env.ConvenienceLibrary(