emugen: generate wrapper library files

Add functionality to generate a wrapper library. A wrapper library includes:
1. entry points
2. dispatch table (accessed from the library entry points)
3. dispatch table accessor callback
4. dispatch table initialization function

Note that the dispatch table initialization function used to be part of the decoder. This
change moves it to be part of the dispatch table layer where it belongs.

Change-Id: Ide6764a17cc029056f9946e778a513cdc2a49003
This commit is contained in:
Jacky Romano
2011-04-17 23:49:13 +03:00
committed by David 'Digit' Turner
parent 139308015e
commit ea3a3584f5
5 changed files with 147 additions and 50 deletions

View File

@@ -31,7 +31,7 @@ LOCAL_STATIC_LIBRARIES := \
LOCAL_LDLIBS := -ldl
GEN := $(intermediates)/gl_dec.cpp $(intermediates)/gl_dec.h
GEN := $(intermediates)/gl_server_context.cpp $(intermediates)/gl_dec.cpp $(intermediates)/gl_dec.h
$(GEN) : PRIVATE_PATH := $(LOCAL_PATH)
$(GEN) : PRIVATE_CUSTOM_TOOL := $(EMUGEN) -D $(intermediates) -i $(emulatorOpengl)/system/GLESv1_enc gl