TaskStats: simplify margin formula
[xcsoar.git] / build / opengl.mk
blobac6d2e28f68b8ebf8329bbba848731af9790d904
1 ifeq ($(TARGET),ANDROID)
2 # Android must use OpenGL
3 OPENGL = y
5 # the Kobo doesn't have OpenGL support
6 else ifeq ($(TARGET_IS_KOBO),y)
7 OPENGL = n
9 # UNIX/Linux defaults to OpenGL, but can use SDL_gfx instead
10 else ifeq ($(TARGET),UNIX)
11 OPENGL ?= y
12 else
13 # Windows defaults to GDI (no OpenGL)
14 OPENGL ?= n
15 endif
17 ifeq ($(OPENGL),y)
18 OPENGL_CPPFLAGS = -DENABLE_OPENGL
20 ifeq ($(TARGET_IS_DARWIN),y)
21 OPENGL_LDLIBS = -framework OpenGL
22 else ifeq ($(TARGET),ANDROID)
23 OPENGL_LDLIBS = -lGLESv1_CM -ldl
24 else ifeq ($(TARGET_IS_PI),y)
25 OPENGL_LDLIBS = -lGLESv1_CM -ldl
26 else
27 OPENGL_LDLIBS = -lGL
28 endif
30 # Needed for native VBO support
31 OPENGL_CPPFLAGS += -DGL_GLEXT_PROTOTYPES
33 endif