forked from snowcone-ltd/libmatoya
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Android.mk
87 lines (78 loc) · 1.63 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
TARGET_OUT = bin/android/$(TARGET_ARCH_ABI)
FLAGS = \
-Wall \
-Wextra \
-Wshadow \
-Wno-switch \
-Wno-unused-parameter \
-Wno-atomic-alignment \
-Wno-missing-field-initializers \
-std=c99 \
-fPIC
DEFS = \
-DMTY_VK_ANDROID \
-DMTY_GL_ES \
-DMTY_GL_EXTERNAL
ifdef DEBUG
FLAGS := $(FLAGS) -O0 -g
DEFS := $(DEFS) -DMTY_VK_DEBUG
else
FLAGS := $(FLAGS) -O3 -g0 -fvisibility=hidden
endif
LOCAL_MODULE_FILENAME := libmatoya
LOCAL_MODULE := libmatoya
LOCAL_C_INCLUDES := \
deps \
src \
src/unix \
src/unix/linux \
src/unix/linux/android
LOCAL_CFLAGS = $(DEFS) $(FLAGS)
LOCAL_SRC_FILES := \
src/app.c \
src/async.c \
src/crypto.c \
src/dtls.c \
src/file.c \
src/hash.c \
src/http.c \
src/image.c \
src/json.c \
src/list.c \
src/log.c \
src/memory.c \
src/queue.c \
src/resample.c \
src/system.c \
src/thread.c \
src/tlocal.c \
src/version.c \
src/gfx/gl/gl.c \
src/gfx/gl/gl-ui.c \
src/gfx/vk/vk.c \
src/gfx/vk/vk-ctx.c \
src/gfx/vk/vk-ui.c \
src/hid/utils.c \
src/unix/compress.c \
src/unix/file.c \
src/unix/memory.c \
src/unix/system.c \
src/unix/thread.c \
src/unix/time.c \
src/unix/linux/ws.c \
src/unix/linux/dialog.c \
src/unix/linux/android/aes-gcm.c \
src/unix/linux/android/app.c \
src/unix/linux/android/audio.c \
src/unix/linux/android/crypto.c \
src/unix/linux/android/dtls.c \
src/unix/linux/android/image.c \
src/unix/linux/android/jnih.c \
src/unix/linux/android/net.c \
src/unix/linux/android/request.c \
src/unix/linux/android/system.c \
src/unix/linux/android/webview.c \
src/unix/linux/android/gfx/gl-ctx.c
include $(BUILD_STATIC_LIBRARY)