• 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
9ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
10$(call emugl-import,libqemupipe$(GOLDFISH_OPENGL_LIB_SUFFIX))
11else
12$(call emugl-export,STATIC_LIBRARIES,libqemupipe.ranchu)
13endif
14
15LOCAL_CFLAGS += -DLOG_TAG=\"EGL_emulation\" -DEGL_EGLEXT_PROTOTYPES -DWITH_GLES2
16LOCAL_CFLAGS += -Wno-gnu-designator
17
18LOCAL_SRC_FILES := \
19    eglDisplay.cpp \
20    egl.cpp \
21    ClientAPIExts.cpp
22
23ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
24
25LOCAL_SHARED_LIBRARIES += libdl
26endif
27
28ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
29ifdef IS_AT_LEAST_OPM1
30LOCAL_HEADER_LIBRARIES += libui_headers
31endif
32
33ifdef IS_AT_LEAST_OPD1
34LOCAL_HEADER_LIBRARIES += libnativebase_headers
35LOCAL_STATIC_LIBRARIES += libarect
36LOCAL_SHARED_LIBRARIES += libnativewindow
37endif
38
39endif # !GOLDFISH_OPENGL_BUILD_FOR_HOST
40
41$(call emugl-end-module)
42
43#### egl.cfg ####
44
45# Ensure that this file is only copied to emulator-specific builds.
46# Other builds are device-specific and will provide their own
47# version of this file to point to the appropriate HW EGL libraries.
48#
49ifneq (,$(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)))
50include $(CLEAR_VARS)
51
52LOCAL_MODULE := egl.cfg
53LOCAL_SRC_FILES := $(LOCAL_MODULE)
54
55LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl
56LOCAL_MODULE_CLASS := ETC
57
58ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 19 && echo PreKitkat),PreKitkat)
59    LOCAL_MODULE_TAGS := debug
60endif
61
62include $(BUILD_PREBUILT)
63endif # TARGET_PRODUCT in 'full full_x86 full_mips sdk sdk_x86 sdk_mips google_sdk google_sdk_x86 google_sdk_mips')
64
65endif # BUILD_EMULATOR_OPENGL_DRIVER != false
66