1 LOCAL_PATH
:= $(call my-dir
)
4 # copy-n-paste from Makefile.am
5 libstrongswan_la_SOURCES
= \
7 asn1
/asn1.c asn1
/asn1_parser.c asn1
/oid.c bio
/bio_reader.c bio
/bio_writer.c \
8 collections
/blocking_queue.c collections
/enumerator.c collections
/hashtable.c \
10 collections
/linked_list.c crypto
/crypters
/crypter.c crypto
/hashers
/hasher.c \
11 crypto
/hashers
/hash_algorithm_set.c \
12 crypto
/proposal
/proposal_keywords.c crypto
/proposal
/proposal_keywords_static.c \
13 crypto
/prfs
/prf.c crypto
/prfs
/mac_prf.c crypto
/pkcs5.c \
14 crypto
/rngs
/rng.c crypto
/prf_plus.c crypto
/signers
/signer.c \
15 crypto
/signers
/mac_signer.c crypto
/crypto_factory.c crypto
/crypto_tester.c \
16 crypto
/diffie_hellman.c crypto
/aead.c crypto
/transform.c \
17 crypto
/iv
/iv_gen.c crypto
/iv
/iv_gen_rand.c crypto
/iv
/iv_gen_seq.c \
18 crypto
/mgf1
/mgf1.c crypto
/mgf1
/mgf1_bitspender.c \
19 credentials
/credential_factory.c credentials
/builder.c \
20 credentials
/cred_encoding.c credentials
/keys
/private_key.c \
21 credentials
/keys
/public_key.c credentials
/keys
/shared_key.c \
22 credentials
/certificates
/certificate.c credentials
/certificates
/crl.c \
23 credentials
/certificates
/ocsp_response.c \
24 credentials
/containers
/container.c credentials
/containers
/pkcs12.c \
25 credentials
/credential_manager.c \
26 credentials
/sets
/auth_cfg_wrapper.c credentials
/sets
/ocsp_response_wrapper.c \
27 credentials
/sets
/cert_cache.c credentials
/sets
/mem_cred.c \
28 credentials
/sets
/callback_cred.c credentials
/auth_cfg.c database
/database.c \
29 database
/database_factory.c fetcher
/fetcher.c fetcher
/fetcher_manager.c eap
/eap.c \
31 networking
/host.c networking
/host_resolver.c networking
/packet.c \
32 networking
/tun_device.c networking
/streams
/stream_manager.c \
33 networking
/streams
/stream.c networking
/streams
/stream_service.c \
34 networking
/streams
/stream_tcp.c networking
/streams
/stream_service_tcp.c \
35 pen
/pen.c plugins
/plugin_loader.c plugins
/plugin_feature.c processing
/jobs
/job.c \
36 processing
/jobs
/callback_job.c processing
/processor.c processing
/scheduler.c \
37 processing
/watcher.c resolver
/resolver_manager.c resolver
/rr_set.c \
38 selectors
/traffic_selector.c settings
/settings.c settings
/settings_types.c \
39 settings
/settings_parser.c settings
/settings_lexer.c utils
/cpu_feature.c \
40 utils
/utils.c utils
/chunk.c utils
/debug.c utils
/enum.c utils
/identification.c \
41 utils
/lexparser.c utils
/optionsfrom.c utils
/capabilities.c utils
/backtrace.c \
42 utils
/parser_helper.c utils
/test.c utils
/process.c utils
/utils
/strerror.c
44 libstrongswan_la_SOURCES
+= \
46 threading
/thread_value.c \
49 threading
/spinlock.c \
50 threading
/semaphore.c \
51 networking
/streams
/stream_unix.c \
52 networking
/streams
/stream_service_unix.c
54 libstrongswan_la_SOURCES
+= utils
/printf_hook
/printf_hook_builtin.c
56 LOCAL_SRC_FILES
:= $(libstrongswan_la_SOURCES
)
58 # adding the plugin source files
60 LOCAL_SRC_FILES
+= $(call add_plugin
, aes
)
62 LOCAL_SRC_FILES
+= $(call add_plugin
, curl
)
63 ifneq ($(call plugin_enabled
, curl
),)
64 LOCAL_C_INCLUDES
+= $(libcurl_PATH
)
65 LOCAL_SHARED_LIBRARIES
+= libcurl
68 LOCAL_SRC_FILES
+= $(call add_plugin
, des
)
70 LOCAL_SRC_FILES
+= $(call add_plugin
, fips-prf
)
72 LOCAL_SRC_FILES
+= $(call add_plugin
, gmp
)
73 ifneq ($(call plugin_enabled
, gmp
),)
74 LOCAL_C_INCLUDES
+= $(libgmp_PATH
)
75 LOCAL_SHARED_LIBRARIES
+= libgmp
78 LOCAL_SRC_FILES
+= $(call add_plugin
, hmac
)
80 LOCAL_SRC_FILES
+= $(call add_plugin
, md4
)
82 LOCAL_SRC_FILES
+= $(call add_plugin
, md5
)
84 LOCAL_SRC_FILES
+= $(call add_plugin
, nonce
)
86 LOCAL_SRC_FILES
+= $(call add_plugin
, openssl
)
87 ifneq ($(call plugin_enabled
, openssl
),)
88 LOCAL_C_INCLUDES
+= $(openssl_PATH
)
89 LOCAL_STATIC_LIBRARIES
+= libcrypto_static
92 LOCAL_SRC_FILES
+= $(call add_plugin
, pem
)
94 LOCAL_SRC_FILES
+= $(call add_plugin
, pkcs1
)
96 LOCAL_SRC_FILES
+= $(call add_plugin
, pkcs7
)
98 LOCAL_SRC_FILES
+= $(call add_plugin
, pkcs8
)
100 LOCAL_SRC_FILES
+= $(call add_plugin
, pkcs11
)
102 LOCAL_SRC_FILES
+= $(call add_plugin
, pubkey
)
104 LOCAL_SRC_FILES
+= $(call add_plugin
, random
)
106 LOCAL_SRC_FILES
+= $(call add_plugin
, sha1
)
108 LOCAL_SRC_FILES
+= $(call add_plugin
, sha2
)
110 LOCAL_SRC_FILES
+= $(call add_plugin
, x509
)
112 LOCAL_SRC_FILES
+= $(call add_plugin
, xcbc
)
114 # build libstrongswan ----------------------------------------------------------
116 LOCAL_CFLAGS
:= $(strongswan_CFLAGS
) \
117 -include $(LOCAL_PATH
)/AndroidConfigLocal.h
119 LOCAL_MODULE
:= libstrongswan
121 LOCAL_MODULE_TAGS
:= optional
123 LOCAL_ARM_MODE
:= arm
125 LOCAL_PRELINK_MODULE
:= false
127 LOCAL_SHARED_LIBRARIES
+= libdl
129 include $(BUILD_SHARED_LIBRARY
)