Move PKCS#12 key derivation to a separate file
[strongswan.git] / src / libstrongswan / 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 library.c \
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 \
9 collections/linked_list.c crypto/crypters/crypter.c crypto/hashers/hasher.c \
10 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
11 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
12 crypto/rngs/rng.c crypto/prf_plus.c crypto/signers/signer.c \
13 crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
14 crypto/diffie_hellman.c crypto/aead.c crypto/transform.c \
15 credentials/credential_factory.c credentials/builder.c \
16 credentials/cred_encoding.c credentials/keys/private_key.c \
17 credentials/keys/public_key.c credentials/keys/shared_key.c \
18 credentials/certificates/certificate.c credentials/certificates/crl.c \
19 credentials/certificates/ocsp_response.c \
20 credentials/containers/container.c credentials/containers/pkcs12.c \
21 credentials/ietf_attributes/ietf_attributes.c credentials/credential_manager.c \
22 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
23 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
24 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
25 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
26 ipsec/ipsec_types.c \
27 networking/host.c networking/host_resolver.c networking/packet.c \
28 networking/tun_device.c \
29 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
30 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
31 resolver/resolver_manager.c resolver/rr_set.c \
32 selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
33 threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
34 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
35 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
36 utils/printf_hook.c utils/settings.c
37
38 # adding the plugin source files
39
40 LOCAL_SRC_FILES += $(call add_plugin, aes)
41
42 LOCAL_SRC_FILES += $(call add_plugin, curl)
43 ifneq ($(call plugin_enabled, curl),)
44 LOCAL_C_INCLUDES += $(libcurl_PATH)
45 LOCAL_SHARED_LIBRARIES += libcurl
46 endif
47
48 LOCAL_SRC_FILES += $(call add_plugin, des)
49
50 LOCAL_SRC_FILES += $(call add_plugin, fips-prf)
51
52 LOCAL_SRC_FILES += $(call add_plugin, gmp)
53 ifneq ($(call plugin_enabled, gmp),)
54 LOCAL_C_INCLUDES += $(libgmp_PATH)
55 LOCAL_SHARED_LIBRARIES += libgmp
56 endif
57
58 LOCAL_SRC_FILES += $(call add_plugin, hmac)
59
60 LOCAL_SRC_FILES += $(call add_plugin, md4)
61
62 LOCAL_SRC_FILES += $(call add_plugin, md5)
63
64 LOCAL_SRC_FILES += $(call add_plugin, nonce)
65
66 LOCAL_SRC_FILES += $(call add_plugin, openssl)
67 ifneq ($(call plugin_enabled, openssl),)
68 LOCAL_C_INCLUDES += $(openssl_PATH)
69 LOCAL_SHARED_LIBRARIES += libcrypto
70 endif
71
72 LOCAL_SRC_FILES += $(call add_plugin, pem)
73
74 LOCAL_SRC_FILES += $(call add_plugin, pkcs1)
75
76 LOCAL_SRC_FILES += $(call add_plugin, pkcs7)
77
78 LOCAL_SRC_FILES += $(call add_plugin, pkcs8)
79
80 LOCAL_SRC_FILES += $(call add_plugin, pkcs11)
81
82 LOCAL_SRC_FILES += $(call add_plugin, pubkey)
83
84 LOCAL_SRC_FILES += $(call add_plugin, random)
85
86 LOCAL_SRC_FILES += $(call add_plugin, sha1)
87
88 LOCAL_SRC_FILES += $(call add_plugin, sha2)
89
90 LOCAL_SRC_FILES += $(call add_plugin, x509)
91
92 LOCAL_SRC_FILES += $(call add_plugin, xcbc)
93
94 # build libstrongswan ----------------------------------------------------------
95
96 LOCAL_C_INCLUDES += \
97 $(libvstr_PATH)
98
99 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
100 -include $(LOCAL_PATH)/AndroidConfigLocal.h
101
102 LOCAL_MODULE := libstrongswan
103
104 LOCAL_MODULE_TAGS := optional
105
106 LOCAL_ARM_MODE := arm
107
108 LOCAL_PRELINK_MODULE := false
109
110 LOCAL_SHARED_LIBRARIES += libdl libvstr
111
112 include $(BUILD_SHARED_LIBRARY)
113