-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
Android.mk
81 lines (59 loc) · 2.01 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
# This file is used to build TGUI on Android with the SDL-TTF-GLES2 backend.
# For the SFML_GRAPHICS or SDL_RENDERER backends, CMake is used and this file can be ignored.
# No other backends are currently supported.
LOCAL_PATH := $(call my-dir)
###########################
#
# TGUI shared library
#
###########################
include $(CLEAR_VARS)
LOCAL_MODULE := tgui
SDL_PATH := $(LOCAL_PATH)/../SDL
SDL_TTF_PATH := $(LOCAL_PATH)/../SDL_ttf
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(SDL_PATH)/include $(SDL_TTF_PATH)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/src/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Loading/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Renderers/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Widgets/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Backend/Font/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Backend/Font/SDL_ttf/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Backend/Renderer/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Backend/Renderer/GLES2/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Backend/Window/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Backend/Window/SDL/*.cpp) \
$(wildcard $(LOCAL_PATH)/src/Backend/SDL-TTF-GLES2.cpp) \
)
LOCAL_SHARED_LIBRARIES := SDL2 SDL2_ttf
LOCAL_CFLAGS += \
-Wall \
-Wextra \
-Wshadow \
-Wnon-virtual-dtor \
-Wcast-align \
-Wunused \
-Woverloaded-virtual \
-Wpedantic \
-Wdouble-promotion \
-Wformat=2
LOCAL_CPP_FEATURES := rtti exceptions
LOCAL_LDLIBS := -landroid -lGLESv1_CM -lGLESv2 -llog
# Don't strip debug symbols for debug libraries
ifeq ($(NDK_DEBUG),1)
cmd-strip :=
endif
include $(BUILD_SHARED_LIBRARY)
###########################
#
# TGUI static library
#
###########################
LOCAL_MODULE := tgui-s
LOCAL_MODULE_FILENAME := libtgui-s
LOCAL_CPP_FEATURES := rtti exceptions
LOCAL_LDLIBS :=
LOCAL_EXPORT_LDLIBS := -landroid -lGLESv1_CM -lGLESv2 -llog
include $(BUILD_STATIC_LIBRARY)