libstrongswan: Updated Android.mk to current Makefile.am
[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 libstrongswan_la_SOURCES = \
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/array.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/iv/iv_gen_null.c \
19 crypto/mgf1/mgf1.c crypto/mgf1/mgf1_bitspender.c \
20 credentials/credential_factory.c credentials/builder.c \
21 credentials/cred_encoding.c credentials/keys/private_key.c \
22 credentials/keys/public_key.c credentials/keys/shared_key.c \
23 credentials/certificates/certificate.c credentials/certificates/crl.c \
24 credentials/certificates/ocsp_response.c credentials/certificates/x509.c \
25 credentials/certificates/certificate_printer.c \
26 credentials/containers/container.c credentials/containers/pkcs12.c \
27 credentials/credential_manager.c \
28 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
29 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
30 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
31 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
32 ipsec/ipsec_types.c \
33 networking/host.c networking/host_resolver.c networking/packet.c \
34 networking/tun_device.c networking/streams/stream_manager.c \
35 networking/streams/stream.c networking/streams/stream_service.c \
36 networking/streams/stream_tcp.c networking/streams/stream_service_tcp.c \
37 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
38 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
39 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
40 selectors/traffic_selector.c settings/settings.c settings/settings_types.c \
41 settings/settings_parser.c settings/settings_lexer.c utils/cpu_feature.c \
42 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
43 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
44 utils/parser_helper.c utils/test.c utils/process.c utils/utils/strerror.c \
45 utils/utils/atomics.c utils/utils/string.c utils/utils/memory.c \
46 utils/utils/tty.c utils/utils/path.c utils/utils/status.c utils/utils/time.c \
47 utils/utils/align.c
48
49 libstrongswan_la_SOURCES += \
50 threading/thread.c \
51 threading/thread_value.c \
52 threading/mutex.c \
53 threading/rwlock.c \
54 threading/spinlock.c \
55 threading/semaphore.c \
56 networking/streams/stream_unix.c \
57 networking/streams/stream_service_unix.c
58
59 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
60
61 LOCAL_SRC_FILES := $(libstrongswan_la_SOURCES)
62
63 # adding the plugin source files
64
65 LOCAL_SRC_FILES += $(call add_plugin, aes)
66
67 LOCAL_SRC_FILES += $(call add_plugin, curl)
68 ifneq ($(call plugin_enabled, curl),)
69 LOCAL_C_INCLUDES += $(libcurl_PATH)
70 LOCAL_SHARED_LIBRARIES += libcurl
71 endif
72
73 LOCAL_SRC_FILES += $(call add_plugin, des)
74
75 LOCAL_SRC_FILES += $(call add_plugin, fips-prf)
76
77 LOCAL_SRC_FILES += $(call add_plugin, gmp)
78 ifneq ($(call plugin_enabled, gmp),)
79 LOCAL_C_INCLUDES += $(libgmp_PATH)
80 LOCAL_SHARED_LIBRARIES += libgmp
81 endif
82
83 LOCAL_SRC_FILES += $(call add_plugin, hmac)
84
85 LOCAL_SRC_FILES += $(call add_plugin, md4)
86
87 LOCAL_SRC_FILES += $(call add_plugin, md5)
88
89 LOCAL_SRC_FILES += $(call add_plugin, nonce)
90
91 LOCAL_SRC_FILES += $(call add_plugin, openssl)
92 ifneq ($(call plugin_enabled, openssl),)
93 LOCAL_C_INCLUDES += $(openssl_PATH)
94 LOCAL_STATIC_LIBRARIES += libcrypto_static
95 endif
96
97 LOCAL_SRC_FILES += $(call add_plugin, pem)
98
99 LOCAL_SRC_FILES += $(call add_plugin, pkcs1)
100
101 LOCAL_SRC_FILES += $(call add_plugin, pkcs7)
102
103 LOCAL_SRC_FILES += $(call add_plugin, pkcs8)
104
105 LOCAL_SRC_FILES += $(call add_plugin, pkcs11)
106
107 LOCAL_SRC_FILES += $(call add_plugin, pubkey)
108
109 LOCAL_SRC_FILES += $(call add_plugin, random)
110
111 LOCAL_SRC_FILES += $(call add_plugin, sha1)
112
113 LOCAL_SRC_FILES += $(call add_plugin, sha2)
114
115 LOCAL_SRC_FILES += $(call add_plugin, x509)
116
117 LOCAL_SRC_FILES += $(call add_plugin, xcbc)
118
119 # build libstrongswan ----------------------------------------------------------
120
121 LOCAL_CFLAGS := $(strongswan_CFLAGS)
122
123 LOCAL_MODULE := libstrongswan
124
125 LOCAL_MODULE_TAGS := optional
126
127 LOCAL_ARM_MODE := arm
128
129 LOCAL_PRELINK_MODULE := false
130
131 LOCAL_SHARED_LIBRARIES += libdl
132
133 include $(BUILD_SHARED_LIBRARY)