X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2FSConscript;h=7c6b6ae8c4df80541653cf1a257c3424a2933fa2;hb=982609f4cf2afc4e0afd450aa24907986bca41ab;hp=ca17ddd6a2cbaa4ef53b50de1e84475c2976dd92;hpb=ae760279f142244590c8aa76e3139529ca42952f;p=mesa.git diff --git a/src/glsl/SConscript b/src/glsl/SConscript index ca17ddd6a2c..7c6b6ae8c4d 100644 --- a/src/glsl/SConscript +++ b/src/glsl/SConscript @@ -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(