Build libtncif on Android.
authorTobias Brunner <tobias@strongswan.org>
Fri, 29 Jul 2011 15:41:14 +0000 (17:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 29 Jul 2011 15:41:14 +0000 (17:41 +0200)
Android.mk.in
src/libcharon/Android.mk
src/libtncif/Android.mk [new file with mode: 0644]

index d1bec5a..40c0f29 100644 (file)
@@ -71,4 +71,5 @@ include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
                libcharon \
                libhydra \
                libstrongswan \
+               libtncif \
        ))
index 4950cbe..0bb16f8 100644 (file)
@@ -156,7 +156,8 @@ LOCAL_C_INCLUDES += \
        $(libvstr_PATH) \
        $(strongswan_PATH)/src/include \
        $(strongswan_PATH)/src/libhydra \
-       $(strongswan_PATH)/src/libstrongswan
+       $(strongswan_PATH)/src/libstrongswan \
+       $(strongswan_PATH)/src/libtncif
 
 LOCAL_CFLAGS := $(strongswan_CFLAGS)
 
@@ -166,7 +167,7 @@ LOCAL_ARM_MODE := arm
 
 LOCAL_PRELINK_MODULE := false
 
-LOCAL_SHARED_LIBRARIES += libstrongswan libhydra
+LOCAL_SHARED_LIBRARIES += libstrongswan libhydra libtncif
 
 include $(BUILD_SHARED_LIBRARY)
 
diff --git a/src/libtncif/Android.mk b/src/libtncif/Android.mk
new file mode 100644 (file)
index 0000000..91cfa83
--- /dev/null
@@ -0,0 +1,26 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+# copy-n-paste from Makefile.am
+LOCAL_SRC_FILES := \
+tncif.h tncifimc.h tncifimv.h tncif_names.h tncif_names.c \
+tncif_pa_subtypes.h tncif_pa_subtypes.c
+
+# build libtncif ---------------------------------------------------------------
+
+LOCAL_C_INCLUDES += \
+       $(libvstr_PATH) \
+       $(strongswan_PATH)/src/libstrongswan
+
+LOCAL_CFLAGS := $(strongswan_CFLAGS)
+
+LOCAL_MODULE := libtncif
+
+LOCAL_ARM_MODE := arm
+
+LOCAL_PRELINK_MODULE := false
+
+LOCAL_SHARED_LIBRARIES += libstrongswan
+
+include $(BUILD_SHARED_LIBRARY)
+