1 LOCAL_PATH
:= $(call my-dir
)
4 # copy-n-paste from Makefile.am
6 library.c chunk.c debug.c enum.c settings.c printf_hook.c asn1
/asn1.c \
7 asn1
/asn1_parser.c asn1
/oid.c bio
/bio_reader.c bio
/bio_writer.c \
8 crypto
/crypters
/crypter.c crypto
/hashers
/hasher.c crypto
/pkcs7.c crypto
/pkcs9.c \
9 crypto
/proposal
/proposal_keywords.c crypto
/prfs
/prf.c crypto
/prfs
/mac_prf.c \
10 crypto
/rngs
/rng.c crypto
/prf_plus.c crypto
/signers
/signer.c \
11 crypto
/signers
/mac_signer.c crypto
/crypto_factory.c crypto
/crypto_tester.c \
12 crypto
/diffie_hellman.c crypto
/aead.c crypto
/transform.c \
13 credentials
/credential_factory.c credentials
/builder.c \
14 credentials
/cred_encoding.c credentials
/keys
/private_key.c \
15 credentials
/keys
/public_key.c credentials
/keys
/shared_key.c \
16 credentials
/certificates
/certificate.c credentials
/certificates
/crl.c \
17 credentials
/certificates
/ocsp_response.c \
18 credentials
/ietf_attributes
/ietf_attributes.c credentials
/credential_manager.c \
19 credentials
/sets
/auth_cfg_wrapper.c credentials
/sets
/ocsp_response_wrapper.c \
20 credentials
/sets
/cert_cache.c credentials
/sets
/mem_cred.c \
21 credentials
/sets
/callback_cred.c credentials
/auth_cfg.c database
/database.c \
22 database
/database_factory.c fetcher
/fetcher.c fetcher
/fetcher_manager.c eap
/eap.c \
24 pen
/pen.c plugins
/plugin_loader.c plugins
/plugin_feature.c processing
/jobs
/job.c \
25 processing
/jobs
/callback_job.c processing
/processor.c processing
/scheduler.c \
26 selectors
/traffic_selector.c threading
/thread.c threading
/thread_value.c \
27 threading
/mutex.c threading
/semaphore.c threading
/rwlock.c threading
/spinlock.c \
28 utils.c utils
/host.c utils
/packet.c utils
/identification.c utils
/lexparser.c \
29 utils
/linked_list.c utils
/blocking_queue.c utils
/hashtable.c utils
/enumerator.c \
30 utils
/optionsfrom.c utils
/capabilities.c utils
/backtrace.c utils
/tun_device.c
32 # adding the plugin source files
34 LOCAL_SRC_FILES
+= $(call add_plugin
, aes
)
36 LOCAL_SRC_FILES
+= $(call add_plugin
, curl
)
37 ifneq ($(call plugin_enabled
, curl
),)
38 LOCAL_C_INCLUDES
+= $(libcurl_PATH
)
39 LOCAL_SHARED_LIBRARIES
+= libcurl
42 LOCAL_SRC_FILES
+= $(call add_plugin
, des
)
44 LOCAL_SRC_FILES
+= $(call add_plugin
, fips-prf
)
46 LOCAL_SRC_FILES
+= $(call add_plugin
, gmp
)
47 ifneq ($(call plugin_enabled
, gmp
),)
48 LOCAL_C_INCLUDES
+= $(libgmp_PATH
)
49 LOCAL_SHARED_LIBRARIES
+= libgmp
52 LOCAL_SRC_FILES
+= $(call add_plugin
, hmac
)
54 LOCAL_SRC_FILES
+= $(call add_plugin
, md4
)
56 LOCAL_SRC_FILES
+= $(call add_plugin
, md5
)
58 LOCAL_SRC_FILES
+= $(call add_plugin
, nonce
)
60 LOCAL_SRC_FILES
+= $(call add_plugin
, openssl
)
61 ifneq ($(call plugin_enabled
, openssl
),)
62 LOCAL_C_INCLUDES
+= $(openssl_PATH
)
63 LOCAL_SHARED_LIBRARIES
+= libcrypto
66 LOCAL_SRC_FILES
+= $(call add_plugin
, pem
)
68 LOCAL_SRC_FILES
+= $(call add_plugin
, pkcs1
)
70 LOCAL_SRC_FILES
+= $(call add_plugin
, pkcs11
)
72 LOCAL_SRC_FILES
+= $(call add_plugin
, pubkey
)
74 LOCAL_SRC_FILES
+= $(call add_plugin
, random
)
76 LOCAL_SRC_FILES
+= $(call add_plugin
, sha1
)
78 LOCAL_SRC_FILES
+= $(call add_plugin
, sha2
)
80 LOCAL_SRC_FILES
+= $(call add_plugin
, x509
)
82 LOCAL_SRC_FILES
+= $(call add_plugin
, xcbc
)
84 # build libstrongswan ----------------------------------------------------------
89 LOCAL_CFLAGS
:= $(strongswan_CFLAGS
) \
90 -include $(LOCAL_PATH
)/AndroidConfigLocal.h
92 LOCAL_MODULE
:= libstrongswan
94 LOCAL_MODULE_TAGS
:= optional
98 LOCAL_PRELINK_MODULE
:= false
100 LOCAL_SHARED_LIBRARIES
+= libdl libvstr
102 include $(BUILD_SHARED_LIBRARY
)