diff options
author | Imre Deak <[email protected]> | 2012-09-10 08:46:13 +0300 |
---|---|---|
committer | Oliver McFadden <[email protected]> | 2012-10-10 12:43:19 +0300 |
commit | 98f880e0c47229ae6b6063527276096259d60b5a (patch) | |
tree | a2503138203f90bb53c2f1a74d1538c2ed18022c /src/mesa/Android.gen.mk | |
parent | 6678125eaee1bbf231d997971cde30f22ba4e013 (diff) |
mesa: glGet: add script to generate hash tables in build time
This will be needed by the next patch, which will switch to using
the parameter descriptor- and hash tables generated by the script.
The hash algorithm remains the same, the output parameter descriptor
table format changes slightly. There the TYPE_API_MASK entries are
removed and an invalid NULL entry is inserted at the beginning. This is
ok, as get.c:find_value() doesn't rely on TYPE_API_MASK any more to
detect an invalid enum.
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Oliver McFadden <[email protected]>
Diffstat (limited to 'src/mesa/Android.gen.mk')
-rw-r--r-- | src/mesa/Android.gen.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/Android.gen.mk b/src/mesa/Android.gen.mk index c17df1a1e86..a8e4f356464 100644 --- a/src/mesa/Android.gen.mk +++ b/src/mesa/Android.gen.mk @@ -38,7 +38,8 @@ sources := \ program/program_parse.tab.c \ program/lex.yy.c \ main/dispatch.h \ - main/remap_helper.h + main/remap_helper.h \ + main/get_hash.h LOCAL_SRC_FILES := $(filter-out $(sources), $(LOCAL_SRC_FILES)) @@ -146,3 +147,10 @@ $(intermediates)/main/enums.c: PRIVATE_XML := -f $(glapi)/gl_and_es_API.xml $(intermediates)/main/enums.c: $(es_src_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 $< > $@ |