-
Notifications
You must be signed in to change notification settings - Fork 38
/
Android.mk
60 lines (51 loc) · 2.1 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
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# inject the used flavor into the c++ preprocessor. please keep this block
# up to date with <avalon/utils/platform.h> and <avalon/utils/platform.cpp>!
ifeq (amazon, $(AVALON_PLATFORM_FLAVOR))
LOCAL_CFLAGS += -DAVALON_PLATFORM_FLAVOR=1
LOCAL_EXPORT_CFLAGS += -DAVALON_PLATFORM_FLAVOR=1
else ifeq (google, $(AVALON_PLATFORM_FLAVOR))
LOCAL_CFLAGS += -DAVALON_PLATFORM_FLAVOR=2
LOCAL_EXPORT_CFLAGS += -DAVALON_PLATFORM_FLAVOR=2
else ifeq (samsung, $(AVALON_PLATFORM_FLAVOR))
LOCAL_CFLAGS += -DAVALON_PLATFORM_FLAVOR=3
LOCAL_EXPORT_CFLAGS += -DAVALON_PLATFORM_FLAVOR=3
else
$(error ERROR: variable AVALON_PLATFORM_FLAVOR not set)
endif
LOCAL_MODULE := avalon_static
LOCAL_MODULE_FILENAME := libavalon
LOCAL_SRC_FILES := \
avalon/ads/Manager.cpp \
avalon/payment/Loader.cpp \
avalon/payment/Manager.cpp \
avalon/payment/Product.cpp \
avalon/payment/ProductConsumable.cpp \
avalon/platform/android/ads/provider/Chartboost.cpp \
avalon/platform/android/ads/provider/Revmob.cpp \
avalon/platform/android/ads/provider/SamsungAdHub.cpp \
avalon/platform/android/gamecenter_switch.cpp \
avalon/platform/android/payment/Backend.cpp \
avalon/i18n/Language.cpp \
avalon/i18n/LanguageKey.cpp \
avalon/i18n/Localization.cpp \
avalon/io/IniReader.cpp \
avalon/platform/android/appirater/Appirater.cpp \
avalon/platform/android/gnustl_string_fixes.cpp \
avalon/platform/android/ui/AlertNative.cpp \
avalon/platform/android/utils/url.cpp \
avalon/ui/Alert.cpp \
avalon/ui/parentalgate.cpp \
avalon/utils/platform.cpp
ifeq (google, $(AVALON_PLATFORM_FLAVOR))
LOCAL_SRC_FILES += avalon/platform/android-google/ads/provider/TapForTap.cpp
endif
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
# enable c++11 support but "remove" the override specifier with a simple
# preprocessor define - it's not supported yet :(
LOCAL_CFLAGS += -std=c++11 -Doverride= -fexceptions
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static
include $(BUILD_STATIC_LIBRARY)
$(call import-module,2d)