glapi: generate ES dispatch headers from core mesa
GLESv1 and GLESv2 have their own dispatch.h and remap_helper.h. These headers are only used by api_exec_es1.c and api_exec_es2.c in core mesa. Move the rules to generate them from glapi to core mesa. Reviewed-by: Brian Paul <brianp@vmware.com> [olv: updated after reviewing to fix SCons build]
This commit is contained in:
@@ -48,7 +48,7 @@ esapi_CPPFLAGS += -DMAPI_MODE_BRIDGE
|
||||
esapi_LIB_DEPS := -L$(TOP)/$(LIB_DIR) -l$(GLAPI_LIB) $(esapi_LIB_DEPS)
|
||||
|
||||
.PHONY: default
|
||||
default: depend $(TOP)/$(LIB_DIR)/$(esapi_LIB_NAME) main/dispatch.h main/remap_helper.h
|
||||
default: depend $(TOP)/$(LIB_DIR)/$(esapi_LIB_NAME)
|
||||
|
||||
$(TOP)/$(LIB_DIR)/$(esapi_LIB_NAME): $(esapi_OBJECTS)
|
||||
$(MKLIB) -o $(esapi_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||
@@ -72,12 +72,6 @@ include $(GLAPI)/gen/glapi_gen.mk
|
||||
glapi_mapi_tmp.h: $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
|
||||
$(call glapi_gen_mapi,$<,$(ESAPI))
|
||||
|
||||
main/dispatch.h: $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_dispatch_deps)
|
||||
$(call glapi_gen_dispatch,$<,$(ES))
|
||||
|
||||
main/remap_helper.h: $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_remap_deps)
|
||||
$(call glapi_gen_remap,$<,$(ES))
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f $(esapi_PC)
|
||||
@@ -86,7 +80,6 @@ clean:
|
||||
-rm -f $(esapi_OBJECTS)
|
||||
-rm -f depend depend.bak
|
||||
-rm -f glapi_mapi_tmp.h
|
||||
-rm -rf main
|
||||
|
||||
pcedit = \
|
||||
-e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \
|
||||
|
||||
Reference in New Issue
Block a user