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