added code to close the netlink socket.
[contrib/iotivity.git] / android / android_api / base / jni / Android.mk
1 LOCAL_PATH := $(call my-dir)\r
2 TARGET_ARCH_ABI := $(APP_ABI)\r
3 SECURED := $(SECURE)\r
4 \r
5 include $(CLEAR_VARS)\r
6 OIC_LIB_PATH := ../../../../out/android/$(APP_ABI)/$(APP_OPTIM)\r
7 LOCAL_MODULE := libandroid-oc_logger\r
8 LOCAL_SRC_FILES := $(OIC_LIB_PATH)/liboc_logger.so\r
9 include $(PREBUILT_SHARED_LIBRARY)\r
10 \r
11 include $(CLEAR_VARS)\r
12 OIC_LIB_PATH := ../../../../out/android/$(APP_ABI)/$(APP_OPTIM)\r
13 LOCAL_MODULE := libandroid-octbstack\r
14 LOCAL_SRC_FILES := $(OIC_LIB_PATH)/liboctbstack.so\r
15 include $(PREBUILT_SHARED_LIBRARY)\r
16 \r
17 include $(CLEAR_VARS)\r
18 OIC_LIB_PATH := ../../../../out/android/$(APP_ABI)/$(APP_OPTIM)\r
19 LOCAL_MODULE := libandroid-oc\r
20 LOCAL_SRC_FILES := $(OIC_LIB_PATH)/liboc.so\r
21 include $(PREBUILT_SHARED_LIBRARY)\r
22 \r
23 include $(CLEAR_VARS)\r
24 OIC_LIB_PATH := ../../../../out/android/$(APP_ABI)/$(APP_OPTIM)\r
25 LOCAL_MODULE := libandroid-ca\r
26 LOCAL_SRC_FILES := $(OIC_LIB_PATH)/libconnectivity_abstraction.so\r
27 include $(PREBUILT_SHARED_LIBRARY)\r
28 \r
29 ifeq ($(SECURED), 1)\r
30 include $(CLEAR_VARS)\r
31 OIC_LIB_PATH := ../../../../out/android/$(APP_ABI)/$(APP_OPTIM)\r
32 LOCAL_MODULE := libandroid-ocprovision\r
33 LOCAL_SRC_FILES := $(OIC_LIB_PATH)/libocprovision.so\r
34 include $(PREBUILT_SHARED_LIBRARY)\r
35 \r
36 include $(CLEAR_VARS)\r
37 OIC_LIB_PATH := ../../../../out/android/$(APP_ABI)/$(APP_OPTIM)\r
38 LOCAL_MODULE := libandroid-ocpmapi\r
39 LOCAL_SRC_FILES := $(OIC_LIB_PATH)/libocpmapi.so\r
40 include $(PREBUILT_SHARED_LIBRARY)\r
41 endif\r
42 \r
43 include $(CLEAR_VARS)\r
44 OIC_SRC_PATH := ../../../resource\r
45 LOCAL_MODULE := libca-interface\r
46 LOCAL_SRC_FILES := JniCaInterface.c\r
47 LOCAL_STATIC_LIBRARIES := libandroid-ca\r
48 LOCAL_LDLIBS := -llog\r
49 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/connectivity/api\r
50 include $(BUILD_SHARED_LIBRARY)\r
51 \r
52 include $(CLEAR_VARS)\r
53 OIC_SRC_PATH := ../../../resource\r
54 OIC_OUT_PATH := ../../../out\r
55 LOCAL_MODULE    := ocstack-jni\r
56 LOCAL_SRC_FILES :=  JniOcStack.cpp \\r
57                     JniUtils.cpp \\r
58                     JniEntityHandler.cpp \\r
59                     JniOnResourceFoundListener.cpp \\r
60                     JniOnDeviceInfoListener.cpp \\r
61                     JniOnPlatformInfoListener.cpp \\r
62                     JniOnPresenceListener.cpp \\r
63                     JniOnGetListener.cpp \\r
64                     JniOnPutListener.cpp \\r
65                     JniOnPostListener.cpp \\r
66                     JniOnDeleteListener.cpp \\r
67                     JniOnObserveListener.cpp \\r
68                     JniOcRepresentation.cpp \\r
69                     JniOcResourceHandle.cpp \\r
70                     JniOcPresenceHandle.cpp \\r
71                     JniOcRequestHandle.cpp \\r
72                     JniOcResourceRequest.cpp \\r
73                     JniOcResourceResponse.cpp \\r
74                     JniOcPlatform.cpp \\r
75                     JniOcResource.cpp \\r
76                     JniOcResourceIdentifier.cpp \\r
77                     JniOcSecurity.cpp\r
78 ifeq ($(SECURED), 1)\r
79 LOCAL_SRC_FILES +=  JniOcSecureResource.cpp \\r
80                     JniOcProvisioning.cpp \\r
81                     JniSecureUtils.cpp \\r
82                     JniProvisionResultListner.cpp \\r
83                     JniPinCheckListener.cpp \\r
84                     JniDisplayPinListener.cpp\r
85 endif\r
86 \r
87 LOCAL_LDLIBS := -llog\r
88 LOCAL_STATIC_LIBRARIES := android-oc\r
89 LOCAL_STATIC_LIBRARIES += android-octbstack\r
90 LOCAL_STATIC_LIBRARIES += android-coap\r
91 LOCAL_STATIC_LIBRARIES += android-oc_logger\r
92 LOCAL_STATIC_LIBRARIES += android-ca\r
93 LOCAL_STATIC_LIBRARIES += android_cpp11_compat\r
94 ifeq ($(SECURED), 1)\r
95 LOCAL_STATIC_LIBRARIES += android-ocprovision\r
96 LOCAL_STATIC_LIBRARIES += android-ocpmapi\r
97 endif\r
98 \r
99 LOCAL_CPPFLAGS += -std=c++0x\r
100 LOCAL_CPP_FEATURES := rtti exceptions\r
101 LOCAL_C_INCLUDES := $(OIC_SRC_PATH)/include\r
102 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/c_common\r
103 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/c_common/oic_string/include\r
104 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/c_common/oic_malloc/include\r
105 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/stack/include\r
106 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/ocsocket/include\r
107 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/oc_logger/include\r
108 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/../extlibs/boost/boost_1_58_0\r
109 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/../build_common/android/compatibility\r
110 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/security/provisioning/include\r
111 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/security/provisioning/include/oxm/\r
112 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/security/provisioning/include/internal\r
113 LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/security/include\r
114 include $(BUILD_SHARED_LIBRARY)\r