mesa: Add ARB_shader_image_load_store to the extension table.
[mesa.git] / src / mesa / Android.gen.mk
index ffa36db4ddc7b1e4adf3aec28b2d586697b4a91d..c6280f5cbd4f430452afb4879b9921019ffb8373 100644 (file)
@@ -32,8 +32,7 @@ intermediates := $(call local-intermediates-dir)
 # This is the list of auto-generated files: sources and headers
 sources := \
        main/enums.c \
-       program/program_parse.tab.c \
-       program/lex.yy.c \
+       main/api_exec.c \
        main/dispatch.h \
        main/remap_helper.h \
        main/get_hash.h
@@ -61,30 +60,12 @@ dispatch_deps := \
        $(wildcard $(glapi)/*.py) \
        $(wildcard $(glapi)/*.xml)
 
-define local-l-to-c
-       @mkdir -p $(dir $@)
-       @echo "Mesa Lex: $(PRIVATE_MODULE) <= $<"
-       $(hide) $(LEX) -o$@ $<
-endef
-
-define mesa_local-y-to-c-and-h
-       @mkdir -p $(dir $@)
-       @echo "Mesa Yacc: $(PRIVATE_MODULE) <= $<"
-       $(hide) $(YACC) -o $@ -p "_mesa_program_" $<
-endef
-
 define es-gen
        @mkdir -p $(dir $@)
        @echo "Gen ES: $(PRIVATE_MODULE) <= $(notdir $(@))"
        $(hide) $(PRIVATE_SCRIPT) $(1) $(PRIVATE_XML) > $@
 endef
 
-$(intermediates)/program/program_parse.tab.c: $(LOCAL_PATH)/program/program_parse.y
-       $(mesa_local-y-to-c-and-h)
-
-$(intermediates)/program/lex.yy.c: $(LOCAL_PATH)/program/program_lexer.l
-       $(local-l-to-c)
-
 $(intermediates)/main/git_sha1.h:
        @mkdir -p $(dir $@)
        @echo "GIT-SHA1: $(PRIVATE_MODULE) <= git"
@@ -123,9 +104,14 @@ $(intermediates)/main/enums.c: PRIVATE_XML := -f $(glapi)/gl_and_es_API.xml
 $(intermediates)/main/enums.c: $(dispatch_deps)
        $(call es-gen)
 
+$(intermediates)/main/api_exec.c: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(glapi)/gl_genexec.py
+$(intermediates)/main/api_exec.c: PRIVATE_XML := -f $(glapi)/gl_and_es_API.xml
+
+$(intermediates)/main/api_exec.c: $(dispatch_deps)
+       $(call es-gen)
+
 GET_HASH_GEN := $(LOCAL_PATH)/main/get_hash_generator.py
-GET_HASH_GEN_FLAGS := $(patsubst %,-a %,$(MESA_ENABLED_APIS))
 
 $(intermediates)/main/get_hash.h: $(glapi)/gl_and_es_API.xml \
                $(LOCAL_PATH)/main/get_hash_params.py $(GET_HASH_GEN)
-       @$(MESA_PYTHON2) $(GET_HASH_GEN) $(GET_HASH_GEN_FLAGS) -f $< > $@
+       @$(MESA_PYTHON2) $(GET_HASH_GEN) -f $< > $@