Use separate plugin lists for pluto and charon on Android.
[strongswan.git] / src / pluto / 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 ac.c ac.h \
7 alg_info.c alg_info.h \
8 ca.c ca.h \
9 certs.c certs.h \
10 connections.c connections.h \
11 constants.c constants.h \
12 cookie.c cookie.h \
13 crl.c crl.h \
14 crypto.c crypto.h \
15 db_ops.c db_ops.h \
16 defs.c defs.h \
17 demux.c demux.h \
18 dnskey.c dnskey.h \
19 event_queue.c event_queue.h \
20 fetch.c fetch.h \
21 foodgroups.c foodgroups.h \
22 ike_alg.c ike_alg.h \
23 ipsec_doi.c ipsec_doi.h \
24 kameipsec.h \
25 kernel.c kernel.h \
26 kernel_alg.c kernel_alg.h \
27 kernel_pfkey.c kernel_pfkey.h \
28 keys.c keys.h \
29 lex.c lex.h \
30 log.c log.h \
31 myid.c myid.h \
32 modecfg.c modecfg.h \
33 nat_traversal.c nat_traversal.h \
34 ocsp.c ocsp.h \
35 packet.c packet.h \
36 pkcs7.c pkcs7.h \
37 pluto.c pluto.h \
38 plutomain.c \
39 rcv_whack.c rcv_whack.h \
40 server.c server.h \
41 smartcard.c smartcard.h \
42 spdb.c spdb.h \
43 state.c state.h \
44 timer.c timer.h \
45 vendor.c vendor.h \
46 virtual.c virtual.h \
47 whack_attribute.c whack_attribute.h \
48 xauth/xauth_manager.c xauth/xauth_manager.h \
49 xauth/xauth_provider.h xauth/xauth_verifier.h \
50 x509.c x509.h \
51 builder.c builder.h \
52 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
53
54 # build pluto ------------------------------------------------------------------
55
56 LOCAL_C_INCLUDES += \
57 $(libvstr_PATH) \
58 $(strongswan_PATH)/src/libhydra \
59 $(strongswan_PATH)/src/libstrongswan \
60 $(strongswan_PATH)/src/libfreeswan \
61 $(strongswan_PATH)/src/whack
62
63 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
64 -DPLUTO -DVENDORID -DXAUTH_VID -DCISCO_QUIRKS \
65 -DTHREADS -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
66 -DPLUGINS='"$(strongswan_PLUTO_PLUGINS)"'
67
68 LOCAL_MODULE := pluto
69
70 LOCAL_ARM_MODE := arm
71
72 LOCAL_PRELINK_MODULE := false
73
74 LOCAL_SHARED_LIBRARIES += libstrongswan libhydra libfreeswan
75
76 include $(BUILD_EXECUTABLE)