1 LOCAL_PATH:= $(call my-dir) 2 3 $(call emugl-begin-host-executable,triangleV2) 4 $(call emugl-import,libEGL_translator libGLES_V2_translator) 5 6 LOCAL_SRC_FILES:= \ 7 triangleV2.cpp 8 9 LOCAL_CFLAGS += $(EMUGL_SDL_CFLAGS) -g -O0 10 LOCAL_LDLIBS += $(EMUGL_SDL_LDLIBS) -lstdc++ 11 12 LOCAL_STATIC_LIBRARIES += $(EMUGL_SDL_STATIC_LIBRARIES) 13 14 ifeq ($(HOST_OS),darwin) 15 # SDK 10.6+ deprecates __dyld_func_lookup required by dlcompat_init_func 16 # in SDL_dlcompat.o this module depends. Instruct linker to resolved it at runtime. 17 OSX_VERSION_MAJOR := $(shell echo $(mac_sdk_version) | cut -d . -f 2) 18 OSX_VERSION_MAJOR_GREATER_THAN_OR_EQUAL_TO_6 := $(shell [ $(OSX_VERSION_MAJOR) -ge 6 ] && echo true) 19 ifeq ($(OSX_VERSION_MAJOR_GREATER_THAN_OR_EQUAL_TO_6),true) 20 LOCAL_LDLIBS += -Wl,-undefined,dynamic_lookup 21 endif 22 $(call emugl-import,libMac_view) 23 endif 24 25 $(call emugl-end-module) 26