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

$(call emugl-begin-host-executable,emulator_test_renderer)
$(call emugl-import,libOpenglRender event_injector)

LOCAL_SRC_FILES := main.cpp

PREBUILT := $(HOST_PREBUILT_TAG)
LOCAL_SDL_CONFIG ?= prebuilts/tools/$(PREBUILT)/sdl/bin/sdl-config
LOCAL_SDL_CFLAGS := $(shell $(LOCAL_SDL_CONFIG) --cflags)
LOCAL_SDL_LDLIBS := $(filter-out %.a %.lib,$(shell $(LOCAL_SDL_CONFIG) --static-libs))

LOCAL_CFLAGS += $(LOCAL_SDL_CFLAGS) -g -O0
LOCAL_LDLIBS += $(LOCAL_SDL_LDLIBS)

ifeq ($(HOST_OS),windows)
LOCAL_LDLIBS += -lws2_32
endif

LOCAL_STATIC_LIBRARIES += libSDL libSDLmain

$(call emugl-end-module)