glsl/TODO glsl/glcpp/README \
glsl/glsl_lexer.ll \
glsl/glsl_parser.yy \
+ glsl/ir_expression_operation.py \
glsl/glcpp/glcpp-lex.l \
glsl/glcpp/glcpp-parse.y \
SConscript.glsl
-TESTS += glsl/glcpp/tests/glcpp-test \
- glsl/glcpp/tests/glcpp-test-cr-lf \
+TESTS += glsl/glcpp/tests/glcpp-test.sh \
+ glsl/glcpp/tests/glcpp-test-cr-lf.sh \
glsl/tests/blob-test \
+ glsl/tests/cache-test \
glsl/tests/general-ir-test \
- glsl/tests/optimization-test \
+ glsl/tests/optimization-test.sh \
glsl/tests/sampler-types-test \
glsl/tests/uniform-initializer-test \
- glsl/tests/warnings-test
+ glsl/tests/warnings-test.sh
TESTS_ENVIRONMENT= \
+ export abs_builddir=$(abs_builddir); \
export PYTHON2=$(PYTHON2); \
export PYTHON_FLAGS=$(PYTHON_FLAGS);
glsl/glcpp/glcpp \
glsl/glsl_test \
glsl/tests/blob-test \
+ glsl/tests/cache-test \
glsl/tests/general-ir-test \
glsl/tests/sampler-types-test \
glsl/tests/uniform-initializer-test
glsl_tests_blob_test_LDADD = \
glsl/libglsl.la
+glsl_tests_cache_test_SOURCES = \
+ glsl/tests/cache_test.c
+glsl_tests_cache_test_CFLAGS = \
+ $(PTHREAD_CFLAGS)
+glsl_tests_cache_test_LDADD = \
+ glsl/libglsl.la \
+ $(PTHREAD_LIBS) \
+ $(CLOCK_LIB)
+
glsl_tests_general_ir_test_SOURCES = \
+ glsl/tests/array_refcount_test.cpp \
glsl/tests/builtin_variable_test.cpp \
glsl/tests/invalidate_locations_test.cpp \
glsl/tests/general_ir_test.cpp \
+ glsl/tests/lower_int64_test.cpp \
+ glsl/tests/opt_add_neg_to_sub_test.cpp \
glsl/tests/varyings_test.cpp
glsl_tests_general_ir_test_CFLAGS = \
$(PTHREAD_CFLAGS)
glsl/libglsl.la \
glsl/libstandalone.la \
$(top_builddir)/src/libglsl_util.la \
- $(PTHREAD_LIBS)
+ $(PTHREAD_LIBS) \
+ $(CLOCK_LIB)
glsl_tests_uniform_initializer_test_SOURCES = \
glsl/tests/copy_constant_to_storage_tests.cpp \
glsl/libglcpp.la
glsl_libglsl_la_SOURCES = \
- glsl/glsl_lexer.cpp \
- glsl/glsl_parser.cpp \
- glsl/glsl_parser.h \
- $(LIBGLSL_FILES)
-
+ $(LIBGLSL_GENERATED_FILES) \
+ $(LIBGLSL_FILES) \
+ $(LIBGLSL_SHADER_CACHE_FILES)
glsl_libstandalone_la_SOURCES = \
$(GLSL_COMPILER_CXX_FILES)
glsl/main.cpp
glsl_compiler_LDADD = \
- glsl/libstandalone.la
+ glsl/libstandalone.la \
+ $(CLOCK_LIB)
glsl_glsl_test_SOURCES = \
glsl/test.cpp \
glsl/libglsl.la \
glsl/libstandalone.la \
$(top_builddir)/src/libglsl_util.la \
- $(PTHREAD_LIBS)
+ $(PTHREAD_LIBS) \
+ $(CLOCK_LIB)
# We write our own rules for yacc and lex below. We'd rather use automake,
# but automake makes it especially difficult for a number of reasons:
$(MKDIR_GEN)
$(LEX_GEN) -o $@ $(srcdir)/glsl/glcpp/glcpp-lex.l
+glsl/ir_expression_operation.h: glsl/ir_expression_operation.py
+ $(MKDIR_GEN)
+ $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py enum > $@ || ($(RM) $@; false)
+
+glsl/ir_expression_operation_constant.h: glsl/ir_expression_operation.py
+ $(MKDIR_GEN)
+ $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py constant > $@ || ($(RM) $@; false)
+
+glsl/ir_expression_operation_strings.h: glsl/ir_expression_operation.py
+ $(MKDIR_GEN)
+ $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py strings > $@ || ($(RM) $@; false)
+
# Only the parsers (specifically the header files generated at the same time)
# need to be in BUILT_SOURCES. Though if we list the parser headers YACC is
# called for the .c/.cpp file and the .h files. By listing the .c/.cpp files
BUILT_SOURCES += \
glsl/glsl_parser.cpp \
glsl/glsl_lexer.cpp \
+ glsl/ir_expression_operation.h \
+ glsl/ir_expression_operation_constant.h \
+ glsl/ir_expression_operation_strings.h \
glsl/glcpp/glcpp-parse.c \
glsl/glcpp/glcpp-lex.c
CLEANFILES += \
glsl/glsl_parser.h \
glsl/glsl_parser.cpp \
glsl/glsl_lexer.cpp \
+ glsl/ir_expression_operation.h \
+ glsl/ir_expression_operation_constant.h \
+ glsl/ir_expression_operation_strings.h \
glsl/glcpp/glcpp-parse.c \
glsl/glcpp/glcpp-lex.c
clean-local:
+ $(RM) glsl/tests/lower_jumps/*.opt_test
+ $(RM) glsl/tests/lower_jumps/*.expected
+ $(RM) glsl/tests/lower_jumps/*.out
+ $(RM) glsl/tests/warnings/*.out
+ $(RM) glsl/glcpp/tests/*.out
+ $(RM) -r glsl/glcpp/tests/subtest*/
$(RM) -r subtest-cr subtest-cr-lf subtest-lf subtest-lf-cr
dist-hook: