Home | History | Annotate | Download | only in gles_android_wrapper
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 #### libGLESv1_CM_emul.so
      4 $(call emugl-begin-shared-library,libGLESv1_CM_emul)
      5 $(call emugl-import,libGLESv1_enc)
      6 $(call emugl-gen-wrapper,$(EMUGL_PATH)/system/GLESv1_enc,gl)
      7 $(call emugl-set-shared-library-subpath,egl)
      8 
      9 LOCAL_SRC_FILES += glesv1_emul_ifc.cpp
     10 
     11 $(call emugl-end-module)
     12 
     13 emulatorOpengl := $(LOCAL_PATH)/../..
     14 logTag := -DLOG_TAG=\"eglWrapper\"
     15 EMUGEN = $(BUILD_OUT_EXECUTABLES)/emugen
     16 ## comment for no debug
     17 #debugFlags = -g -O0
     18 
     19 #### libGLESv2_CM_emul.so
     20 $(call emugl-begin-shared-library, libGLESv2_emul)
     21 $(call emugl-import,libGLESv2_enc)
     22 $(call emugl-gen-wrapper,$(EMUGL_PATH)/system/GLESv2_enc,gl2)
     23 LOCAL_SRC_FILES += glesv2_emul_ifc.cpp
     24 $(call emugl-set-shared-library-subpath,egl)
     25 $(call emugl-end-module)
     26 
     27 ##### libEGL_emul.so ###########
     28 
     29 # THE FOLLOWING DOESN'T WORK YET
     30 #
     31 $(call emugl-begin-shared-library,libEGL_emul)
     32 $(call emugl-import,libut_rendercontrol_enc libGLESv1_CM_emul libGLESv2_emul libOpenglSystemCommon)
     33 
     34 $(call emugl-set-shared-library-subpath,egl)
     35 LOCAL_CFLAGS += $(logTag)
     36 
     37 LOCAL_SRC_FILES :=  \
     38         egl.cpp \
     39         egl_dispatch.cpp \
     40         ServerConnection.cpp \
     41         ThreadInfo.cpp
     42 
     43 $(call emugl-end-module)
     44 
     45 #### egl.cfg ####
     46 
     47 # Ensure that this file is only copied to emulator-specific builds.
     48 # Other builds are device-specific and will provide their own
     49 # version of this file to point to the appropriate HW EGL libraries.
     50 #
     51 ifneq (,$(filter full full_x86 full_mips sdk sdk_x86 sdk_mips,$(TARGET_PRODUCT)))
     52 ifeq (,$(BUILD_EMULATOR_OPENGL_DRIVER))
     53 include $(CLEAR_VARS)
     54 
     55 LOCAL_MODULE := egl.cfg
     56 LOCAL_SRC_FILES := $(LOCAL_MODULE)
     57 
     58 LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl
     59 LOCAL_MODULE_CLASS := ETC
     60 
     61 include $(BUILD_PREBUILT)
     62 endif # building 'real' driver BUILD_EMULATOR_OPENGL_DRIVER
     63 endif # TARGET_PRODUCT in 'full sdk full_x86 sdk_x86 full_mips sdk_mips'
     64 
     65 #### gles_emul.cfg ####
     66 include $(CLEAR_VARS)
     67 
     68 LOCAL_MODULE := gles_emul.cfg
     69 LOCAL_SRC_FILES := $(LOCAL_MODULE)
     70 
     71 LOCAL_MODULE_PATH := $(TARGET_OUT)/etc
     72 LOCAL_MODULE_CLASS := ETC
     73 
     74 include $(BUILD_PREBUILT)
     75