1 # Helpers for glapi header generation
4 $(error TOP must be defined.
)
7 glapi_gen_common_deps
:= \
8 $(wildcard $(TOP
)/src
/mapi
/glapi
/gen
/*.xml
) \
9 $(wildcard $(TOP
)/src
/mapi
/glapi
/gen
/*.py
)
11 glapi_gen_mapi_script
:= $(TOP
)/src
/mapi
/mapi
/mapi_abi.py
12 glapi_gen_mapi_deps
:= \
13 $(glapi_gen_mapi_script
) \
14 $(glapi_gen_common_deps
)
16 # $(1): path to an XML file
17 # $(2): name of the printer
20 $(PYTHON2
) $(PYTHON_FLAGS
) $(glapi_gen_mapi_script
) \
21 --mode lib
--printer
$(2) $(1) > $@
24 glapi_gen_dispatch_script
:= $(TOP
)/src
/mapi
/glapi
/gen
/gl_table.py
25 glapi_gen_dispatch_deps
:= $(glapi_gen_common_deps
)
27 # $(1): path to an XML file
28 # $(2): empty, es1, or es2 for entry point filtering
29 define glapi_gen_dispatch
31 $(PYTHON2
) $(PYTHON_FLAGS
) $(glapi_gen_dispatch_script
) \
32 -f
$(1) -m remap_table
$(if
$(2),-c
$(2),) > $@
35 glapi_gen_remap_script
:= $(TOP
)/src
/mapi
/glapi
/gen
/remap_helper.py
36 glapi_gen_remap_deps
:= $(glapi_gen_common_deps
)
38 # $(1): path to an XML file
39 # $(2): empty, es1, or es2 for entry point filtering
40 define glapi_gen_remap
42 $(PYTHON2
) $(PYTHON_FLAGS
) $(glapi_gen_remap_script
) \
43 -f
$(1) $(if
$(2),-c
$(2),) > $@