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