forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAndroid.mk
More file actions
38 lines (26 loc) · 1018 Bytes
/
Android.mk
File metadata and controls
38 lines (26 loc) · 1018 Bytes
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
LOCAL_PATH := $(call my-dir)
# only build if run from the revtestexternal/build-android.sh script
ifeq ($(NAME),revtestexternal)
include $(CLEAR_VARS)
TARGET_PLATFORM=android-8
LOCAL_MODULE := revtestexternal
LOCAL_SRC_FILES := \
$(addprefix src/,$(LOCAL_MODULE).cpp) \
$(addprefix derived_src/,$(LOCAL_MODULE).lcidl.cpp)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/../lcidlc/include \
$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/include \
$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(TARGET_ARCH_ABI)/include
# Uncomment this line if you want to use C++ exceptions
# LOCAL_CPPFLAGS += -frtti -fexceptions
LOCAL_STATIC_LIBRARIES :=
LOCAL_LDLIBS += -llog
LOCAL_LDLIBS += $(call host-path,$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(TARGET_ARCH_ABI)/libstdc++.a)
# Make sure the entry points into the external are referenced.
LOCAL_LDFLAGS += \
-Wl,-u,MCExternalDescribe \
-Wl,-u,MCExternalInitialize \
-Wl,-u,MCExternalFinalize
include $(BUILD_SHARED_LIBRARY)
endif