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 16ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 17 18LOCAL_SHARED_LIBRARIES += libdl 19endif 20 21ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 22ifdef IS_AT_LEAST_OPM1 23LOCAL_HEADER_LIBRARIES += libui_headers 24endif 25 26ifdef IS_AT_LEAST_OPD1 27LOCAL_HEADER_LIBRARIES += libnativebase_headers 28LOCAL_STATIC_LIBRARIES += libarect 29LOCAL_SHARED_LIBRARIES += libnativewindow 30endif 31 32# Used to access the Bionic private OpenGL TLS slot 33LOCAL_C_INCLUDES += bionic/libc/private 34 35endif # !GOLDFISH_OPENGL_BUILD_FOR_HOST 36 37$(call emugl-end-module) 38 39#### egl.cfg #### 40 41# Ensure that this file is only copied to emulator-specific builds. 42# Other builds are device-specific and will provide their own 43# version of this file to point to the appropriate HW EGL libraries. 44# 45ifneq (,$(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))) 46include $(CLEAR_VARS) 47 48LOCAL_MODULE := egl.cfg 49LOCAL_SRC_FILES := $(LOCAL_MODULE) 50 51LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl 52LOCAL_MODULE_CLASS := ETC 53 54ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 19 && echo PreKitkat),PreKitkat) 55 LOCAL_MODULE_TAGS := debug 56endif 57 58include $(BUILD_PREBUILT) 59endif # TARGET_PRODUCT in 'full full_x86 full_mips sdk sdk_x86 sdk_mips google_sdk google_sdk_x86 google_sdk_mips') 60 61endif # BUILD_EMULATOR_OPENGL_DRIVER != false 62