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