1LOCAL_PATH:= $(call my-dir) 2 3$(call emugl-begin-host-executable,triangleCM) 4$(call emugl-import,libEGL_translator libGLES_CM_translator) 5 6PREBUILT := $(HOST_PREBUILT_TAG) 7LOCAL_SDL_CONFIG ?= prebuilts/tools/$(PREBUILT)/sdl/bin/sdl-config 8LOCAL_SDL_CFLAGS := $(shell $(LOCAL_SDL_CONFIG) --cflags) 9LOCAL_SDL_LDLIBS := $(filter-out %.a %.lib,$(shell $(LOCAL_SDL_CONFIG) --static-libs)) 10 11ifeq ($(HOST_OS),darwin) 12 DARWIN_VERSION := $(strip $(shell sw_vers -productVersion)) 13 ifneq ($(filter 10.7 10.7.%,$(DARWIN_VERSION)),) 14 # Lion needs to be forced to link dylib to avoid problems 15 # with the dynamic function lookups in SDL 1.2 16 LOCAL_SDL_LDLIBS += /usr/lib/dylib1.o 17 endif 18endif 19 20LOCAL_SRC_FILES:= \ 21 triangleCM.cpp 22 23LOCAL_CFLAGS += $(LOCAL_SDL_CFLAGS) -g -O0 24LOCAL_LDLIBS += $(LOCAL_SDL_LDLIBS) 25 26LOCAL_STATIC_LIBRARIES += libSDL libSDLmain 27 28ifeq ($(HOST_OS),darwin) 29$(call emugl-import,libMac_view) 30endif 31 32$(call emugl-end-module) 33