Enable pkcs7 plugin when building scepclient on Android
[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 \
10 crypto/crypters/crypter.c crypto/hashers/hasher.c \
11 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
12 crypto/prfs/prf.c crypto/prfs/mac_prf.c \
13 crypto/rngs/rng.c crypto/prf_plus.c crypto/signers/signer.c \
14 crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
15 crypto/diffie_hellman.c crypto/aead.c crypto/transform.c \
16 credentials/credential_factory.c credentials/builder.c \
17 credentials/cred_encoding.c credentials/keys/private_key.c \
18 credentials/keys/public_key.c credentials/keys/shared_key.c \
19 credentials/certificates/certificate.c credentials/certificates/crl.c \
20 credentials/certificates/ocsp_response.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 selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
32 threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
33 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
34 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
35 utils/printf_hook.c utils/settings.c
36
37 # adding the plugin source files
38
39 LOCAL_SRC_FILES += $(call add_plugin, aes)
40
41 LOCAL_SRC_FILES += $(call add_plugin, curl)
42 ifneq ($(call plugin_enabled, curl),)
43 LOCAL_C_INCLUDES += $(libcurl_PATH)
44 LOCAL_SHARED_LIBRARIES += libcurl
45 endif
46
47 LOCAL_SRC_FILES += $(call add_plugin, des)
48
49 LOCAL_SRC_FILES += $(call add_plugin, fips-prf)
50
51 LOCAL_SRC_FILES += $(call add_plugin, gmp)
52 ifneq ($(call plugin_enabled, gmp),)
53 LOCAL_C_INCLUDES += $(libgmp_PATH)
54 LOCAL_SHARED_LIBRARIES += libgmp
55 endif
56
57 LOCAL_SRC_FILES += $(call add_plugin, hmac)
58
59 LOCAL_SRC_FILES += $(call add_plugin, md4)
60
61 LOCAL_SRC_FILES += $(call add_plugin, md5)
62
63 LOCAL_SRC_FILES += $(call add_plugin, nonce)
64
65 LOCAL_SRC_FILES += $(call add_plugin, openssl)
66 ifneq ($(call plugin_enabled, openssl),)
67 LOCAL_C_INCLUDES += $(openssl_PATH)
68 LOCAL_SHARED_LIBRARIES += libcrypto
69 endif
70
71 LOCAL_SRC_FILES += $(call add_plugin, pem)
72
73 LOCAL_SRC_FILES += $(call add_plugin, pkcs1)
74
75 LOCAL_SRC_FILES += $(call add_plugin, pkcs7)
76
77 LOCAL_SRC_FILES += $(call add_plugin, pkcs8)
78
79 LOCAL_SRC_FILES += $(call add_plugin, pkcs11)
80
81 LOCAL_SRC_FILES += $(call add_plugin, pubkey)
82
83 LOCAL_SRC_FILES += $(call add_plugin, random)
84
85 LOCAL_SRC_FILES += $(call add_plugin, sha1)
86
87 LOCAL_SRC_FILES += $(call add_plugin, sha2)
88
89 LOCAL_SRC_FILES += $(call add_plugin, x509)
90
91 LOCAL_SRC_FILES += $(call add_plugin, xcbc)
92
93 # build libstrongswan ----------------------------------------------------------
94
95 LOCAL_C_INCLUDES += \
96 $(libvstr_PATH)
97
98 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
99 -include $(LOCAL_PATH)/AndroidConfigLocal.h
100
101 LOCAL_MODULE := libstrongswan
102
103 LOCAL_MODULE_TAGS := optional
104
105 LOCAL_ARM_MODE := arm
106
107 LOCAL_PRELINK_MODULE := false
108
109 LOCAL_SHARED_LIBRARIES += libdl libvstr
110
111 include $(BUILD_SHARED_LIBRARY)
112