Native counterpart of VpnService.Builder added, exposed by charonservice
[strongswan.git] / src / frontends / android / jni / libandroidbridge / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # copy-n-paste from Makefile.am
5 LOCAL_SRC_FILES := \
6 android_jni.c android_jni.h \
7 backend/android_creds.c backend/android_creds.h \
8 backend/android_service.c backend/android_service.h \
9 charonservice.c charonservice.h \
10 kernel/android_ipsec.c kernel/android_ipsec.h \
11 kernel/android_net.c kernel/android_net.h \
12 vpnservice_builder.c vpnservice_builder.h
13
14 # build libandroidbridge -------------------------------------------------------
15
16 LOCAL_C_INCLUDES += \
17 $(libvstr_PATH) \
18 $(strongswan_PATH)/src/libipsec \
19 $(strongswan_PATH)/src/libhydra \
20 $(strongswan_PATH)/src/libcharon \
21 $(strongswan_PATH)/src/libstrongswan
22
23 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
24 -DPLUGINS='"$(strongswan_CHARON_PLUGINS)"'
25
26 LOCAL_MODULE := libandroidbridge
27
28 LOCAL_MODULE_TAGS := optional
29
30 LOCAL_ARM_MODE := arm
31
32 LOCAL_PRELINK_MODULE := false
33
34 LOCAL_LDLIBS := -llog
35
36 LOCAL_SHARED_LIBRARIES := libstrongswan libhydra libipsec libcharon
37
38 include $(BUILD_SHARED_LIBRARY)
39
40