aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/tests/translator_tests/GLES_CM/Android.mk
blob: 1f25a33da8c1603508eff6ac4e7c7b44acd4c973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
LOCAL_PATH:= $(call my-dir)

$(call emugl-begin-host-executable,triangleCM)
$(call emugl-import,libEGL_translator libGLES_CM_translator)

ifeq ($(HOST_OS),darwin)
  # SDK 10.6+ deprecates __dyld_func_lookup required by dlcompat_init_func
  # in SDL_dlcompat.o this module depends.  Instruct linker to resolved it at runtime.
  OSX_VERSION_MAJOR := $(shell echo $(mac_sdk_version) | cut -d . -f 2)
  OSX_VERSION_MAJOR_GREATER_THAN_OR_EQUAL_TO_6 := $(shell [ $(OSX_VERSION_MAJOR) -ge 6 ] && echo true)
  ifeq ($(OSX_VERSION_MAJOR_GREATER_THAN_OR_EQUAL_TO_6),true)
    LOCAL_LDLIBS += -Wl,-undefined,dynamic_lookup
  endif
endif

LOCAL_SRC_FILES:= \
        triangleCM.cpp

LOCAL_CFLAGS += $(EMUGL_SDL_CFLAGS) -g -O0
LOCAL_LDLIBS += $(EMUGL_SDL_LDLIBS) -lstdc++

LOCAL_STATIC_LIBRARIES += $(EMUGL_SDL_STATIC_LIBRARIES)

ifeq ($(HOST_OS),darwin)
$(call emugl-import,libMac_view)
endif

$(call emugl-end-module)