summaryrefslogtreecommitdiff
path: root/src/glsl/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/SConscript')
-rw-r--r--src/glsl/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/glsl/SConscript b/src/glsl/SConscript
index ca17ddd6a2..7c6b6ae8c4 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(