f47e39656fa66e7482fef560c8f41da5662be706
[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_attr.c backend/android_attr.h \
8 backend/android_creds.c backend/android_creds.h \
9 backend/android_private_key.c backend/android_private_key.h \
10 backend/android_service.c backend/android_service.h \
11 charonservice.c charonservice.h \
12 kernel/android_ipsec.c kernel/android_ipsec.h \
13 kernel/android_net.c kernel/android_net.h \
14 vpnservice_builder.c vpnservice_builder.h
15
16 # build libandroidbridge -------------------------------------------------------
17
18 LOCAL_C_INCLUDES += \
19 $(libvstr_PATH) \
20 $(strongswan_PATH)/src/libipsec \
21 $(strongswan_PATH)/src/libhydra \
22 $(strongswan_PATH)/src/libcharon \
23 $(strongswan_PATH)/src/libstrongswan
24
25 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
26 -DPLUGINS='"$(strongswan_CHARON_PLUGINS)"'
27
28 LOCAL_MODULE := libandroidbridge
29
30 LOCAL_MODULE_TAGS := optional
31
32 LOCAL_ARM_MODE := arm
33
34 LOCAL_PRELINK_MODULE := false
35
36 LOCAL_LDLIBS := -llog
37
38 LOCAL_SHARED_LIBRARIES := libstrongswan libhydra libipsec libcharon
39
40 include $(BUILD_SHARED_LIBRARY)
41
42