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