GlueMapWindowOverlays: adjust ThermalBand and FinalGlideBar sizing
[xcsoar.git] / build / sdl.mk
blobbc1e3b53ba0cbf7aa7d13fd3a9b1f510fef14326
1 ENABLE_SDL ?= $(call bool_not,$(HAVE_WIN32))
3 ifeq ($(ENABLE_SDL),y)
4 ifeq ($(TARGET),UNIX)
5 OPENGL ?= y
6 $(eval $(call pkg-config-library,SDL,sdl SDL_image))
7 else
8 ifeq ($(TARGET),ANDROID)
9 OPENGL = y
10 SDL_CPPFLAGS :=
11 SDL_LDLIBS :=
12 else
13 OPENGL ?= n
14 SDL_CPPFLAGS := -I/usr/local/i586-mingw32msvc/include/SDL
15 SDL_LDLIBS := -L/usr/local/i586-mingw32msvc/lib -lSDL -lSDL_image
16 endif
17 endif
19 SDL_CPPFLAGS += -DENABLE_SDL
20 ifeq ($(OPENGL),y)
21 SDL_CPPFLAGS += -DENABLE_OPENGL
22 ifneq ($(TARGET),ANDROID)
23 ifeq ($(TARGET_IS_DARWIN),y)
24 SDL_LDLIBS += -framework OpenGL
25 else
26 SDL_LDLIBS += -lGL
27 endif
28 endif
29 else # !OPENGL
30 SDL_LDLIBS += -lSDL_gfx
31 endif # !OPENGL
32 ifneq ($(TARGET),ANDROID)
33 ifeq ($(TARGET_IS_DARWIN),y)
34 # the pkg-config file on MacPorts is broken, we must filter out the
35 # -lSDL flag manually
36 SDL_LDLIBS := $(filter-out -l%,$(SDL_LDLIBS))
37 SDL_LDADD = /opt/local/lib/libSDL_ttf.a /opt/local/lib/libfreetype.a
38 SDL_LDADD += /opt/local/lib/libbz2.a /opt/local/lib/libz.a
39 SDL_LDADD += /opt/local/lib/libSDL_image.a
40 else
41 SDL_LDLIBS += -lSDL_ttf
42 endif
43 endif
44 endif