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