android: Set preferred language for remediation instructions
[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_dns_proxy.c \
10 backend/android_private_key.c \
11 backend/android_service.c \
12 charonservice.c \
13 kernel/android_ipsec.c \
14 kernel/android_net.c \
15 kernel/network_manager.c \
16 vpnservice_builder.c
17
18 ifneq ($(strongswan_USE_BYOD),)
19 LOCAL_SRC_FILES += \
20 byod/imc_android_state.c \
21 byod/imc_android.c
22 endif
23
24 # build libandroidbridge -------------------------------------------------------
25
26 LOCAL_C_INCLUDES += \
27 $(strongswan_PATH)/src/libipsec \
28 $(strongswan_PATH)/src/libhydra \
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/libtls
38 endif
39
40 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
41 -DPLUGINS='"$(strongswan_CHARON_PLUGINS)"'
42
43 ifneq ($(strongswan_USE_BYOD),)
44 LOCAL_CFLAGS += -DPLUGINS_BYOD='"$(strongswan_BYOD_PLUGINS)"'
45 endif
46
47 LOCAL_MODULE := libandroidbridge
48
49 LOCAL_MODULE_TAGS := optional
50
51 LOCAL_ARM_MODE := arm
52
53 LOCAL_PRELINK_MODULE := false
54
55 LOCAL_LDLIBS := -llog
56
57 LOCAL_SHARED_LIBRARIES := libstrongswan libhydra libipsec libcharon
58
59 ifneq ($(strongswan_USE_BYOD),)
60 LOCAL_SHARED_LIBRARIES += libimcv libtncif libtnccs
61 endif
62
63 include $(BUILD_SHARED_LIBRARY)