1ifneq (false,$(BUILD_EMULATOR_OPENGL_DRIVER))
2
3LOCAL_PATH := $(call my-dir)
4
5$(call emugl-begin-shared-library,libEGL_emulation)
6$(call emugl-import,libOpenglSystemCommon)
7$(call emugl-set-shared-library-subpath,egl)
8
9LOCAL_CFLAGS += -DLOG_TAG=\"EGL_emulation\" -DEGL_EGLEXT_PROTOTYPES -DWITH_GLES2
10
11LOCAL_SRC_FILES := \
12    eglDisplay.cpp \
13    egl.cpp \
14    ClientAPIExts.cpp
15
16LOCAL_SHARED_LIBRARIES += libdl
17
18# Used to access the Bionic private OpenGL TLS slot
19LOCAL_C_INCLUDES += bionic/libc/private
20
21$(call emugl-end-module)
22
23#### egl.cfg ####
24
25# Ensure that this file is only copied to emulator-specific builds.
26# Other builds are device-specific and will provide their own
27# version of this file to point to the appropriate HW EGL libraries.
28#
29ifneq (,$(filter aosp_arm aosp_x86 aosp_mips full full_x86 full_mips sdk sdk_x86 sdk_mips google_sdk google_sdk_x86 google_sdk_mips,$(TARGET_PRODUCT)))
30include $(CLEAR_VARS)
31
32LOCAL_MODULE := egl.cfg
33LOCAL_SRC_FILES := $(LOCAL_MODULE)
34
35LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl
36LOCAL_MODULE_CLASS := ETC
37
38include $(BUILD_PREBUILT)
39endif # TARGET_PRODUCT in 'full full_x86 full_mips sdk sdk_x86 sdk_mips google_sdk google_sdk_x86 google_sdk_mips')
40
41endif # BUILD_EMULATOR_OPENGL_DRIVER != false
42