forked from grimfang4/sdl-gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
36 lines (25 loc) · 1.17 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := SDL2_gpu
SDL_GPU_DIR := ./
STB_IMAGE_DIR := $(SDL_GPU_DIR)/src/externals/stb_image
STB_IMAGE_WRITE_DIR := $(SDL_GPU_DIR)/src/externals/stb_image_write
LOCAL_CFLAGS := -I$(LOCAL_PATH)/../SDL/include -I$(LOCAL_PATH)/$(SDL_GPU_DIR)/include -I$(LOCAL_PATH)/$(STB_IMAGE_DIR) -I$(LOCAL_PATH)/$(STB_IMAGE_WRITE_DIR)
LOCAL_SRC_FILES := $(SDL_GPU_DIR)/src/SDL_gpu.c \
$(SDL_GPU_DIR)/src/SDL_gpu_matrix.c \
$(SDL_GPU_DIR)/src/SDL_gpu_renderer.c \
$(SDL_GPU_DIR)/src/SDL_gpu_shapes.c \
$(SDL_GPU_DIR)/src/renderer_GLES_1.c \
$(SDL_GPU_DIR)/src/renderer_GLES_2.c \
$(SDL_GPU_DIR)/src/renderer_GLES_3.c \
$(STB_IMAGE_DIR)/stb_image.c \
$(STB_IMAGE_WRITE_DIR)/stb_image_write.c
LOCAL_CFLAGS += -DSDL_GPU_DISABLE_OPENGL -DSDL_GPU_USE_BUFFER_RESET -DSTBI_FAILURE_USERMSG -O3
LOCAL_LDLIBS += -llog -lGLESv1_CM
LOCAL_LDLIBS += -lGLESv2
# Disable GLES version 3 support for now, since some environments aren't set up for it yet
# Enable it if you want it!
LOCAL_CFLAGS += -DSDL_GPU_DISABLE_GLES_3
#LOCAL_LDLIBS += -lGLESv3
LOCAL_SHARED_LIBRARIES := SDL2
include $(BUILD_SHARED_LIBRARY)