From 4135975810259ab0404800684bb19aecfb888bba Mon Sep 17 00:00:00 2001 From: jnashok Date: Wed, 3 Jun 2015 10:54:36 +0900 Subject: [PATCH] NDK build Fix to support DTLS in Android sample As the DTLS flag was not defined for in sample application Android.mk, secure message sending fails, as credentials cannot be set.This patch fixes the issue Change-Id: I3f44cb1b299c967855112f9f1c3981b8499815e2 Signed-off-by: jnashok Reviewed-on: https://gerrit.iotivity.org/gerrit/1177 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane --- .../connectivity/samples/android/sample_service/jni/Android.mk | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resource/csdk/connectivity/samples/android/sample_service/jni/Android.mk b/resource/csdk/connectivity/samples/android/sample_service/jni/Android.mk index 55ac16d..6d51eff 100644 --- a/resource/csdk/connectivity/samples/android/sample_service/jni/Android.mk +++ b/resource/csdk/connectivity/samples/android/sample_service/jni/Android.mk @@ -4,17 +4,12 @@ PROJECT_ROOT_PATH = ../../.. include $(CLEAR_VARS) LOCAL_PATH := $(APP_PATH) -LOCAL_MODULE := CAInterface -LOCAL_STATIC_LIBRARIES = CA -include $(BUILD_SHARED_LIBRARY) - -include $(CLEAR_VARS) -LOCAL_PATH := $(APP_PATH) LOCAL_MODULE := RMInterface LOCAL_SRC_FILES := ResourceModel.c +LOCAL_CFLAGS = -D__WITH_DTLS__ +LOCAL_C_INCLUDES = $(PROJECT_ROOT_PATH)/api $(PROJECT_ROOT_PATH)/external/inc LOCAL_STATIC_LIBRARIES := CA LOCAL_LDLIBS := -llog -LOCAL_C_INCLUDES := ../../../api include $(BUILD_SHARED_LIBRARY) #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- 2.7.4