forked from snowcone-ltd/libmatoya
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.mk
More file actions
83 lines (74 loc) · 1.46 KB
/
Android.mk
File metadata and controls
83 lines (74 loc) · 1.46 KB
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
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 \
-std=c99 \
-fPIC
ifdef DEBUG
FLAGS := $(FLAGS) -O0 -g
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
DEFS = \
-D_POSIX_C_SOURCE=200112L \
-DMTY_GL_ES \
-DMTY_GL_EXTERNAL
LOCAL_CFLAGS = $(DEFS) $(FLAGS)
LOCAL_SRC_FILES := \
src/app.c \
src/crypto.c \
src/file.c \
src/hash.c \
src/image.c \
src/json.c \
src/list.c \
src/log.c \
src/memory.c \
src/queue.c \
src/render.c \
src/system.c \
src/thread.c \
src/tlocal.c \
src/tls.c \
src/version.c \
src/gfx/gl.c \
src/gfx/gl-ui.c \
src/hid/utils.c \
src/net/async.c \
src/net/gzip.c \
src/net/http.c \
src/net/net.c \
src/net/secure.c \
src/net/tcp.c \
src/net/ws.c \
src/unix/file.c \
src/unix/image.c \
src/unix/memory.c \
src/unix/system.c \
src/unix/thread.c \
src/unix/time.c \
src/unix/net/request.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/jnih.c \
src/unix/linux/android/system.c \
src/unix/linux/android/tls.c \
src/unix/linux/android/gfx/gl-ctx.c
include $(BUILD_STATIC_LIBRARY)