-
Notifications
You must be signed in to change notification settings - Fork 2
/
Android.mk
28 lines (20 loc) · 846 Bytes
/
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
# Copyright since 2016 : Evgenii Shatunov (github.com/FrankStain/jnipp)
# Apache 2.0 License
# Looks for a files in requested tree of folders.
define lookup-files
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call lookup-files, $(e)))
endef
# Init the building section for project.
PROJECT_PATH := $(call my-dir)
LOCAL_PATH := $(PROJECT_PATH)/source
include $(CLEAR_VARS)
LOCAL_MODULE := jnipp
LOCAL_EXPORT_C_INCLUDES := $(PROJECT_PATH)/include
LOCAL_EXPORT_CPPFLAGS :=
LOCAL_EXPORT_LDLIBS := -latomic -llog
LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES)
LOCAL_SRC_FILES := $(patsubst $(LOCAL_PATH)/%, %, $(filter %.cpp, $(call lookup-files, $(LOCAL_PATH))))
LOCAL_CPPFLAGS := -std=c++11 $(LOCAL_EXPORT_CPPFLAGS)
LOCAL_CPP_FEATURES := rtti exceptions
# Build rules for static library.
include $(BUILD_STATIC_LIBRARY)