• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16ifdef IS_AT_LEAST_OPD1
17LOCAL_SHARED_LIBRARIES += libdl libnativewindow
18else
19LOCAL_SHARED_LIBRARIES += libdl
20endif
21
22ifdef IS_AT_LEAST_OPD1
23LOCAL_STATIC_LIBRARIES += libarect
24endif
25
26ifdef IS_AT_LEAST_OPM1
27LOCAL_HEADER_LIBRARIES += libui_headers
28endif
29
30ifdef IS_AT_LEAST_OPD1
31LOCAL_HEADER_LIBRARIES += libnativebase_headers
32endif
33
34# Used to access the Bionic private OpenGL TLS slot
35LOCAL_C_INCLUDES += bionic/libc/private
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