-
Notifications
You must be signed in to change notification settings - Fork 173
/
Android.mk
84 lines (65 loc) · 2.36 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
LOCAL_PATH := $(call my-dir)
OXYGINE_LIBS := oxygine/third_party/android/libraries/$(TARGET_ARCH_ABI)
include $(CLEAR_VARS)
LOCAL_MODULE := ox_libpng_static
LOCAL_MODULE_FILENAME := png
LOCAL_SRC_FILES := $(OXYGINE_LIBS)/libpng.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := ox_libjpeg_static
LOCAL_MODULE_FILENAME := jpeg
LOCAL_SRC_FILES := $(OXYGINE_LIBS)/libjpeg.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := ox_zlib_static
LOCAL_MODULE_FILENAME := z
LOCAL_SRC_FILES := $(OXYGINE_LIBS)/libz.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := oxygine-framework_static
LOCAL_MODULE_FILENAME := liboxygine-framework
LOCAL_CPP_EXTENSION := .cpp
SRC := $(LOCAL_PATH)/oxygine/src/oxygine
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(SRC)/closure/*.cpp) \
$(wildcard $(SRC)/core/*.cpp) \
$(wildcard $(SRC)/math/*.cpp) \
$(wildcard $(SRC)/actor/*.cpp) \
$(wildcard $(SRC)/tween/*.cpp) \
$(wildcard $(SRC)/pugixml/*.cpp) \
$(wildcard $(SRC)/json/*.cpp) \
$(wildcard $(SRC)/res/*.cpp) \
$(wildcard $(SRC)/text_utils/*.cpp) \
$(wildcard $(SRC)/dev_tools/*.cpp) \
$(wildcard $(SRC)/utils/*.cpp) \
$(wildcard $(SRC)/utils/*.c) \
$(wildcard $(SRC)/winnie_alloc/*.cpp) \
$(wildcard $(SRC)/minizip/*.c) \
$(wildcard $(SRC)/*.cpp) \
)
SRC := oxygine/src/oxygine
LOCAL_SRC_FILES += \
$(SRC)/core/android/jniUtils.cpp \
$(SRC)/core/android/jniHelper.cpp \
$(SRC)/core/android/HttpRequestJavaTask.cpp
LOCAL_SRC_FILES += \
$(SRC)/core/gl/NativeTextureGLES.cpp \
$(SRC)/core/gl/oxgl.cpp \
$(SRC)/core/gl/VertexDeclarationGL.cpp \
$(SRC)/core/gl/ShaderProgramGL.cpp \
$(SRC)/core/gl/VideoDriverGL.cpp \
$(SRC)/core/gl/VideoDriverGLES20.cpp \
THIRD_PARTY := $(LOCAL_PATH)/oxygine/third_party/android/
OXYGINE_SRC := $(LOCAL_PATH)/oxygine/src
LOCAL_C_INCLUDES := $(OXYGINE_SRC)/ \
$(LOCAL_PATH)/../SDL/include/ \
$(THIRD_PARTY)/libjpeg/ \
$(THIRD_PARTY)/libpng/
LOCAL_CFLAGS := -DUSE_FILE32API -DOX_HAVE_LIBJPEG=1 -DOX_HAVE_LIBPNG=1
LOCAL_EXPORT_CFLAGS := $(LOCAL_CFLAGS)
LOCAL_EXPORT_LDLIBS += -lGLESv2 -llog
LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)
LOCAL_WHOLE_STATIC_LIBRARIES := ox_libpng_static ox_libjpeg_static ox_zlib_static
include $(BUILD_STATIC_LIBRARY)
$(call import-module, SDL)