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 full full_x86 sdk sdk_x86,$(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_TAGS := debug 37LOCAL_MODULE_CLASS := ETC 38 39include $(BUILD_PREBUILT) 40endif # TARGET_PRODUCT in 'full sdk full_x86 sdk_x86) 41 42endif # BUILD_EMULATOR_OPENGL_DRIVER != false 43