diff options
author | Emil Velikov <[email protected]> | 2015-07-17 13:30:51 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-09-09 12:48:43 +0100 |
commit | a3b05e04921a4fcc05cfc994e415e3ceb39fd184 (patch) | |
tree | aaa1c39931bb2a94a39284e957793c01479ad77b /src/glsl/Android.gen.mk | |
parent | da5e4559ee3b239d2483645ed54b35aa6628fbaf (diff) |
glsl: build: use makefile.sources variables when possible
Rather than folding one variable within the other only to unwrap them,
just use the ones we need.
v2: bring back LOCAL_PATH prefix for nir_constant_expressions,h
Cc: 11.0 <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Matt Turner <[email protected]> (v1)
Diffstat (limited to 'src/glsl/Android.gen.mk')
-rw-r--r-- | src/glsl/Android.gen.mk | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/glsl/Android.gen.mk b/src/glsl/Android.gen.mk index 0835871f912..798884f2602 100644 --- a/src/glsl/Android.gen.mk +++ b/src/glsl/Android.gen.mk @@ -29,18 +29,7 @@ endif intermediates := $(call local-generated-sources-dir) -sources := \ - glsl_lexer.cpp \ - glsl_parser.cpp \ - glcpp/glcpp-lex.c \ - glcpp/glcpp-parse.c \ - nir/nir_builder_opcodes.h \ - nir/nir_constant_expressions.c \ - nir/nir_opcodes.c \ - nir/nir_opcodes.h \ - nir/nir_opt_algebraic.c - -LOCAL_SRC_FILES := $(filter-out $(sources), $(LOCAL_SRC_FILES)) +LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) LOCAL_C_INCLUDES += \ $(intermediates)/glcpp \ @@ -51,8 +40,10 @@ LOCAL_C_INCLUDES += \ LOCAL_EXPORT_C_INCLUDE_DIRS += \ $(intermediates)/nir -sources := $(addprefix $(intermediates)/, $(sources)) -LOCAL_GENERATED_SOURCES += $(sources) +LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \ + $(LIBGLCPP_GENERATED_FILES) \ + $(NIR_GENERATED_FILES) \ + $(LIBGLSL_GENERATED_CXX_FILES)) define local-l-or-ll-to-c-or-cpp @mkdir -p $(dir $@) |