1 LOCAL_PATH
:= $(call my-dir
)
4 # copy-n-paste from Makefile.am
10 settings.h settings.c \
11 printf_hook.c printf_hook.h \
12 asn1
/asn1.c asn1
/asn1.h \
13 asn1
/asn1_parser.c asn1
/asn1_parser.h \
14 asn1
/oid.c asn1
/oid.h \
15 crypto
/crypters
/crypter.c crypto
/crypters
/crypter.h \
16 crypto
/hashers
/hasher.h crypto
/hashers
/hasher.c \
17 crypto
/pkcs9.c crypto
/pkcs9.h \
18 crypto
/proposal
/proposal_keywords.c crypto
/proposal
/proposal_keywords.h \
19 crypto
/prfs
/prf.c crypto
/prfs
/prf.h \
20 crypto
/rngs
/rng.c crypto
/rngs
/rng.h \
21 crypto
/prf_plus.h crypto
/prf_plus.c \
22 crypto
/signers
/signer.c crypto
/signers
/signer.h \
23 crypto
/crypto_factory.c crypto
/crypto_factory.h \
24 crypto
/crypto_tester.c crypto
/crypto_tester.h \
25 crypto
/diffie_hellman.c crypto
/diffie_hellman.h \
26 crypto
/transform.c crypto
/transform.h \
27 credentials
/credential_factory.c credentials
/credential_factory.h \
28 credentials
/builder.c credentials
/builder.h \
29 credentials
/cred_encoding.c credentials
/cred_encoding.h \
30 credentials
/keys
/private_key.c credentials
/keys
/private_key.h \
31 credentials
/keys
/public_key.c credentials
/keys
/public_key.h \
32 credentials
/keys
/shared_key.c credentials
/keys
/shared_key.h \
33 credentials
/certificates
/certificate.c credentials
/certificates
/certificate.h \
34 credentials
/certificates
/x509.h credentials
/certificates
/x509.c \
35 credentials
/certificates
/ac.h \
36 credentials
/certificates
/crl.h credentials
/certificates
/crl.c \
37 credentials
/certificates
/pkcs10.h \
38 credentials
/certificates
/ocsp_request.h \
39 credentials
/certificates
/ocsp_response.h credentials
/certificates
/ocsp_response.c \
40 credentials
/certificates
/pgp_certificate.h \
41 credentials
/ietf_attributes
/ietf_attributes.c credentials
/ietf_attributes
/ietf_attributes.h \
42 credentials
/credential_manager.c credentials
/credential_manager.h \
43 credentials
/sets
/auth_cfg_wrapper.c credentials
/sets
/auth_cfg_wrapper.h \
44 credentials
/sets
/ocsp_response_wrapper.c credentials
/sets
/ocsp_response_wrapper.h \
45 credentials
/sets
/cert_cache.c credentials
/sets
/cert_cache.h \
46 credentials
/sets
/mem_cred.c credentials
/sets
/mem_cred.h \
47 credentials
/sets
/callback_cred.c credentials
/sets
/callback_cred.h \
48 credentials
/auth_cfg.c credentials
/auth_cfg.h credentials
/credential_set.h \
49 credentials
/cert_validator.h \
50 database
/database.h database
/database_factory.h database
/database_factory.c \
51 fetcher
/fetcher.h fetcher
/fetcher_manager.h fetcher
/fetcher_manager.c \
53 selectors
/traffic_selector.c selectors
/traffic_selector.h \
54 threading
/thread.h threading
/thread.c \
55 threading
/thread_value.h threading
/thread_value.c \
56 threading
/mutex.h threading
/mutex.c threading
/condvar.h \
57 threading
/rwlock.h threading
/rwlock.c \
58 threading
/lock_profiler.h \
60 utils
/host.c utils
/host.h \
61 utils
/identification.c utils
/identification.h \
63 utils
/lexparser.c utils
/lexparser.h \
64 utils
/linked_list.c utils
/linked_list.h \
65 utils
/hashtable.c utils
/hashtable.h \
66 utils
/enumerator.c utils
/enumerator.h \
67 utils
/optionsfrom.c utils
/optionsfrom.h \
68 utils
/backtrace.c utils
/backtrace.h \
69 plugins
/plugin_loader.c plugins
/plugin_loader.h plugins
/plugin.h
71 # adding the plugin source files
73 LOCAL_SRC_FILES
+= $(call add_plugin
, aes
)
75 LOCAL_SRC_FILES
+= $(call add_plugin
, des
)
77 LOCAL_SRC_FILES
+= $(call add_plugin
, fips-prf
)
79 LOCAL_SRC_FILES
+= $(call add_plugin
, gmp
)
80 ifneq ($(call plugin_enabled
, gmp
),)
81 LOCAL_C_INCLUDES
+= $(libgmp_PATH
)
82 LOCAL_SHARED_LIBRARIES
+= libgmp
85 LOCAL_SRC_FILES
+= $(call add_plugin
, hmac
)
87 LOCAL_SRC_FILES
+= $(call add_plugin
, md4
)
89 LOCAL_SRC_FILES
+= $(call add_plugin
, md5
)
91 LOCAL_SRC_FILES
+= $(call add_plugin
, openssl
)
92 ifneq ($(call plugin_enabled
, openssl
),)
93 LOCAL_C_INCLUDES
+= external
/openssl
/include
94 LOCAL_SHARED_LIBRARIES
+= libcrypto
97 LOCAL_SRC_FILES
+= $(call add_plugin
, pem
)
99 LOCAL_SRC_FILES
+= $(call add_plugin
, pkcs1
)
101 LOCAL_SRC_FILES
+= $(call add_plugin
, pubkey
)
103 LOCAL_SRC_FILES
+= $(call add_plugin
, random
)
105 LOCAL_SRC_FILES
+= $(call add_plugin
, sha1
)
107 LOCAL_SRC_FILES
+= $(call add_plugin
, sha2
)
109 LOCAL_SRC_FILES
+= $(call add_plugin
, x509
)
111 LOCAL_SRC_FILES
+= $(call add_plugin
, xcbc
)
113 # build libstrongswan ----------------------------------------------------------
115 LOCAL_C_INCLUDES
+= \
118 LOCAL_CFLAGS
:= $(strongswan_CFLAGS
) \
119 -include $(LOCAL_PATH
)/AndroidConfigLocal.h
121 LOCAL_MODULE
:= libstrongswan
123 LOCAL_ARM_MODE
:= arm
125 LOCAL_PRELINK_MODULE
:= false
127 LOCAL_SHARED_LIBRARIES
+= libdl libvstr
129 include $(BUILD_SHARED_LIBRARY
)