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 sdk sdk_x86,$(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_TAGS := debug 60 LOCAL_MODULE_CLASS := ETC 61 62 include $(BUILD_PREBUILT) 63 endif # building 'real' driver BUILD_EMULATOR_OPENGL_DRIVER 64 endif # TARGET_PRODUCT in 'full sdk full_x86 sdk_x86' 65 66 #### gles_emul.cfg #### 67 include $(CLEAR_VARS) 68 69 LOCAL_MODULE := gles_emul.cfg 70 LOCAL_SRC_FILES := $(LOCAL_MODULE) 71 72 LOCAL_MODULE_PATH := $(TARGET_OUT)/etc 73 LOCAL_MODULE_TAGS := debug 74 LOCAL_MODULE_CLASS := ETC 75 76 include $(BUILD_PREBUILT) 77 78 79 80 81