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