NDK build Fix to support DTLS in Android sample
authorjnashok <jn.ashok@samsung.com>
Wed, 3 Jun 2015 01:54:36 +0000 (10:54 +0900)
committerErich Keane <erich.keane@intel.com>
Thu, 4 Jun 2015 16:16:35 +0000 (16:16 +0000)
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 <jn.ashok@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1177
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/samples/android/sample_service/jni/Android.mk

index 55ac16d..6d51eff 100644 (file)
@@ -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)
 
 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++