1LOCAL_PATH := $(call my-dir)
2
3#### libGLESv1_CM_emul.so
4$(call emugl-begin-shared-library,libGLESv1_CM_emul)
5$(call emugl-import,libGLESv1_enc)
6$(call emugl-gen-wrapper,$(GOLDFISH_OPENGL_PATH)/system/GLESv1_enc,gl)
7$(call emugl-set-shared-library-subpath,egl)
8
9LOCAL_SRC_FILES += glesv1_emul_ifc.cpp
10
11$(call emugl-end-module)
12
13emulatorOpengl := $(LOCAL_PATH)/../..
14logTag := -DLOG_TAG=\"eglWrapper\"
15EMUGEN = $(BUILD_OUT_EXECUTABLES)/emugen
16## comment for no debug
17#debugFlags = -g -O0
18
19#### libGLESv2_CM_emul.so
20$(call emugl-begin-shared-library, libGLESv2_emul)
21$(call emugl-import,libGLESv2_enc)
22$(call emugl-gen-wrapper,$(GOLDFISH_OPENGL_PATH)/system/GLESv2_enc,gl2)
23LOCAL_SRC_FILES += glesv2_emul_ifc.cpp
24$(call emugl-set-shared-library-subpath,egl)
25$(call emugl-end-module)
26
27##### libEGL_emul.so ###########
28
29# THE FOLLOWING DOESN'T WORK YET
30#
31$(call emugl-begin-shared-library,libEGL_emul)
32$(call emugl-import,libut_rendercontrol_enc libGLESv1_CM_emul libGLESv2_emul libOpenglSystemCommon)
33
34$(call emugl-set-shared-library-subpath,egl)
35LOCAL_CFLAGS += $(logTag)
36
37LOCAL_SRC_FILES :=  \
38        egl.cpp \
39        egl_dispatch.cpp \
40        ServerConnection.cpp \
41        ThreadInfo.cpp
42
43$(call emugl-end-module)
44
45#### egl.cfg ####
46
47# Ensure that this file is only copied to emulator-specific builds.
48# Other builds are device-specific and will provide their own
49# version of this file to point to the appropriate HW EGL libraries.
50#
51ifneq (,$(filter full full_x86 full_mips sdk sdk_x86 sdk_mips,$(TARGET_PRODUCT)))
52ifeq (,$(BUILD_EMULATOR_OPENGL_DRIVER))
53include $(CLEAR_VARS)
54
55LOCAL_MODULE := egl.cfg
56LOCAL_SRC_FILES := $(LOCAL_MODULE)
57
58LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl
59LOCAL_MODULE_CLASS := ETC
60
61include $(BUILD_PREBUILT)
62endif # building 'real' driver BUILD_EMULATOR_OPENGL_DRIVER
63endif # TARGET_PRODUCT in 'full sdk full_x86 sdk_x86 full_mips sdk_mips'
64
65#### gles_emul.cfg ####
66include $(CLEAR_VARS)
67
68LOCAL_MODULE := gles_emul.cfg
69LOCAL_SRC_FILES := $(LOCAL_MODULE)
70
71LOCAL_MODULE_PATH := $(TARGET_OUT)/etc
72LOCAL_MODULE_CLASS := ETC
73
74include $(BUILD_PREBUILT)
75