android_service_t handles initiation of an SA and tracks its progress
[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
13 # build libandroidbridge -------------------------------------------------------
14
15 LOCAL_C_INCLUDES += \
16 $(libvstr_PATH) \
17 $(strongswan_PATH)/src/libipsec \
18 $(strongswan_PATH)/src/libhydra \
19 $(strongswan_PATH)/src/libcharon \
20 $(strongswan_PATH)/src/libstrongswan
21
22 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
23 -DPLUGINS='"$(strongswan_CHARON_PLUGINS)"'
24
25 LOCAL_MODULE := libandroidbridge
26
27 LOCAL_MODULE_TAGS := optional
28
29 LOCAL_ARM_MODE := arm
30
31 LOCAL_PRELINK_MODULE := false
32
33 LOCAL_LDLIBS := -llog
34
35 LOCAL_SHARED_LIBRARIES := libstrongswan libhydra libipsec libcharon
36
37 include $(BUILD_SHARED_LIBRARY)
38
39