android: Add a simple HTTP(S) fetcher for CRLs
[strongswan.git] / src / frontends / android / app / src / main / 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_fetcher.c \
10 backend/android_dns_proxy.c \
11 backend/android_private_key.c \
12 backend/android_service.c \
13 charonservice.c \
14 kernel/android_ipsec.c \
15 kernel/android_net.c \
16 kernel/network_manager.c \
17 vpnservice_builder.c
18
19 ifneq ($(strongswan_USE_BYOD),)
20 LOCAL_SRC_FILES += \
21 byod/imc_android_state.c \
22 byod/imc_android.c
23 endif
24
25 # build libandroidbridge -------------------------------------------------------
26
27 LOCAL_C_INCLUDES += \
28 $(strongswan_PATH)/src/libipsec \
29 $(strongswan_PATH)/src/libcharon \
30 $(strongswan_PATH)/src/libstrongswan
31
32 ifneq ($(strongswan_USE_BYOD),)
33 LOCAL_C_INCLUDES += \
34 $(strongswan_PATH)/src/libimcv \
35 $(strongswan_PATH)/src/libtncif \
36 $(strongswan_PATH)/src/libtnccs \
37 $(strongswan_PATH)/src/libtpmtss \
38 $(strongswan_PATH)/src/libtls
39 endif
40
41 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
42 -DPLUGINS='"$(strongswan_CHARON_PLUGINS)"'
43
44 ifneq ($(strongswan_USE_BYOD),)
45 LOCAL_CFLAGS += -DPLUGINS_BYOD='"$(strongswan_BYOD_PLUGINS)"'
46 endif
47
48 LOCAL_MODULE := libandroidbridge
49
50 LOCAL_MODULE_TAGS := optional
51
52 LOCAL_ARM_MODE := arm
53
54 LOCAL_PRELINK_MODULE := false
55
56 LOCAL_LDLIBS := -llog
57
58 LOCAL_SHARED_LIBRARIES := libstrongswan libipsec libcharon
59
60 ifneq ($(strongswan_USE_BYOD),)
61 LOCAL_SHARED_LIBRARIES += libimcv libtncif libtnccs libtpmtss
62 endif
63
64 include $(BUILD_SHARED_LIBRARY)