compiler: move build definition of pp_standalone_scaffolding.c
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 21 Nov 2019 00:18:54 +0000 (11:18 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 21 Nov 2019 05:07:08 +0000 (16:07 +1100)
This should fix android build issues while still allowing scons to
build the standalone compiler.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2129
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
src/compiler/Makefile.sources
src/compiler/SConscript.glsl

index f20cd6e8c4dacc89b79f936fd01b3266ad2f2caa..7b593059834a337fb32c62f5cbe06b29a864c1e1 100644 (file)
@@ -186,8 +186,7 @@ LIBGLSL_GENERATED_FILES = \
 
 LIBGLCPP_FILES = \
        glsl/glcpp/glcpp.h \
-       glsl/glcpp/pp.c \
-       glsl/glcpp/pp_standalone_scaffolding.c
+       glsl/glcpp/pp.c
 
 LIBGLCPP_GENERATED_FILES = \
        glsl/glcpp/glcpp-lex.c \
index 45ddde8efc924b68c7ec614ed853934b0b94ae5d..7de4ff8c45aa3e4d91f31722d9a2b5428f51f9eb 100644 (file)
@@ -63,6 +63,8 @@ source_lists = env.ParseSourceList('Makefile.sources')
 for l in ('LIBGLCPP_FILES', 'LIBGLSL_FILES'):
     glsl_sources += source_lists[l]
 
+glsl_sources += env.StaticObject("glsl/glcpp/pp_standalone_scaffolding.c")
+
 if env['msvc']:
     env.Prepend(CPPPATH = ['#/src/getopt'])
     env.PrependUnique(LIBS = [getopt])