Home | History | Annotate | Download | only in egl
      1 ifneq (false,$(BUILD_EMULATOR_OPENGL_DRIVER))
      2 
      3 LOCAL_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 
      9 LOCAL_CFLAGS += -DLOG_TAG=\"EGL_emulation\" -DEGL_EGLEXT_PROTOTYPES -DWITH_GLES2
     10 
     11 LOCAL_SRC_FILES := \
     12     eglDisplay.cpp \
     13     egl.cpp \
     14     ClientAPIExts.cpp
     15 
     16 LOCAL_SHARED_LIBRARIES += libdl
     17 
     18 # Used to access the Bionic private OpenGL TLS slot
     19 LOCAL_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 #
     29 ifneq (,$(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)))
     30 include $(CLEAR_VARS)
     31 
     32 LOCAL_MODULE := egl.cfg
     33 LOCAL_SRC_FILES := $(LOCAL_MODULE)
     34 
     35 LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl
     36 LOCAL_MODULE_CLASS := ETC
     37 
     38 include $(BUILD_PREBUILT)
     39 endif # TARGET_PRODUCT in 'full full_x86 full_mips sdk sdk_x86 sdk_mips google_sdk google_sdk_x86 google_sdk_mips')
     40 
     41 endif # BUILD_EMULATOR_OPENGL_DRIVER != false
     42