1# This contains common definitions used to define a host module to 2# link SDL with the EmuGL test programs. 3 4ifeq ($(BUILD_STANDALONE_EMULATOR),true) 5 6# When using the emulator standalone build, inherit the values from the 7# Makefile that included us. 8EMUGL_SDL_CFLAGS := $(SDL_CFLAGS) 9EMUGL_SDL_LDLIBS := $(SDL_LDLIBS) 10EMUGL_SDL_STATIC_LIBRARIES := emulator_libSDL emulator_libSDLmain 11 12else # BUILD_STANDALONE_EMULATOR != true 13 14# Otherwise, use the prebuilt libraries that come with the platform. 15 16EMUGL_SDL_CONFIG ?= prebuilts/tools/$(HOST_PREBUILT_TAG)/sdl/bin/sdl-config 17EMUGL_SDL_CFLAGS := $(shell $(EMUGL_SDL_CONFIG) --cflags) 18EMUGL_SDL_LDLIBS := $(filter-out %.a %.lib,$(shell $(EMUGL_SDL_CONFIG) --static-libs)) 19EMUGL_SDL_STATIC_LIBRARIES := libSDL libSDLmain 20 21ifeq ($(HOST_OS),windows) 22EMUGL_SDL_LDLIBS += -lws2_32 23endif 24 25endif # BUILD_STANDALONE_EMULATOR != true 26