summaryrefslogtreecommitdiffstats
path: root/src/mapi/generate_glapi.mk
blob: 604983ea69834931872aa003289a9c685fb4fb7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
GLAPI := $(LOCAL_PATH)/glapi/gen

GEN := $(glapi_OUT)/glapi/glapidispatch.h
$(GEN): PRIVATE_CUSTOM_TOOL := python $(GLAPI)/gl_table.py -f $(glapi_XML) -c -m remap_table > $(GEN)
$(GEN): $(glapi_XML)
	$(transform-generated-source)

LOCAL_GENERATED_SOURCES += $(GEN)

GEN := $(glapi_OUT)/glapi/glapioffsets.h
$(GEN): PRIVATE_CUSTOM_TOOL := python $(GLAPI)/gl_offsets.py -f $(glapi_XML) -c > $(GEN)
$(GEN): $(glapi_XML)
	$(transform-generated-source)

LOCAL_GENERATED_SOURCES += $(GEN)

GEN := $(glapi_OUT)/glapi/glapitable.h
$(GEN): PRIVATE_CUSTOM_TOOL := python $(GLAPI)/gl_table.py -f $(glapi_XML) -c > $(GEN)
$(GEN): $(glapi_XML)
	$(transform-generated-source)

LOCAL_GENERATED_SOURCES += $(GEN)

GEN := $(glapi_OUT)/glapi/glapitemp.h
$(GEN): PRIVATE_CUSTOM_TOOL := python $(GLAPI)/gl_apitemp.py -f $(glapi_XML) -c > $(GEN)
$(GEN): $(glapi_XML)
	$(transform-generated-source)

LOCAL_GENERATED_SOURCES += $(GEN)

GEN := $(glapi_OUT)/glapi/glprocs.h
$(GEN): PRIVATE_CUSTOM_TOOL := python $(GLAPI)/gl_procs.py -f $(glapi_XML) -c > $(GEN)
$(GEN): $(glapi_XML)
	$(transform-generated-source)

LOCAL_GENERATED_SOURCES += $(GEN)

GEN := $(glapi_OUT)/main/remap_helper.h
$(GEN): PRIVATE_CUSTOM_TOOL := python $(GLAPI)/remap_helper.py -f $(glapi_XML) > $(GEN)
$(GEN): $(glapi_XML)
	$(transform-generated-source)

LOCAL_GENERATED_SOURCES += $(GEN)