]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libstrongswan/Android.mk
Correctly install DNS servers on Android if frontend is not used.
[thirdparty/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 library.h \
7 chunk.c chunk.h \
8 debug.c debug.h \
9 enum.c enum.h \
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 bio/bio_reader.h bio/bio_reader.c bio/bio_writer.h bio/bio_writer.c \
16 crypto/crypters/crypter.c crypto/crypters/crypter.h \
17 crypto/hashers/hasher.h crypto/hashers/hasher.c \
18 crypto/pkcs9.c crypto/pkcs9.h \
19 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
20 crypto/prfs/prf.c crypto/prfs/prf.h \
21 crypto/rngs/rng.c crypto/rngs/rng.h \
22 crypto/prf_plus.h crypto/prf_plus.c \
23 crypto/signers/signer.c crypto/signers/signer.h \
24 crypto/crypto_factory.c crypto/crypto_factory.h \
25 crypto/crypto_tester.c crypto/crypto_tester.h \
26 crypto/diffie_hellman.c crypto/diffie_hellman.h \
27 crypto/aead.c crypto/aead.h \
28 crypto/transform.c crypto/transform.h \
29 credentials/credential_factory.c credentials/credential_factory.h \
30 credentials/builder.c credentials/builder.h \
31 credentials/cred_encoding.c credentials/cred_encoding.h \
32 credentials/keys/private_key.c credentials/keys/private_key.h \
33 credentials/keys/public_key.c credentials/keys/public_key.h \
34 credentials/keys/shared_key.c credentials/keys/shared_key.h \
35 credentials/certificates/certificate.c credentials/certificates/certificate.h \
36 credentials/certificates/x509.h credentials/certificates/ac.h \
37 credentials/certificates/crl.h credentials/certificates/crl.c \
38 credentials/certificates/pkcs10.h \
39 credentials/certificates/ocsp_request.h \
40 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
41 credentials/certificates/pgp_certificate.h \
42 credentials/ietf_attributes/ietf_attributes.c credentials/ietf_attributes/ietf_attributes.h \
43 credentials/credential_manager.c credentials/credential_manager.h \
44 credentials/sets/auth_cfg_wrapper.c credentials/sets/auth_cfg_wrapper.h \
45 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
46 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
47 credentials/sets/mem_cred.c credentials/sets/mem_cred.h \
48 credentials/sets/callback_cred.c credentials/sets/callback_cred.h \
49 credentials/auth_cfg.c credentials/auth_cfg.h credentials/credential_set.h \
50 credentials/cert_validator.h \
51 database/database.h database/database_factory.h database/database_factory.c \
52 fetcher/fetcher.h fetcher/fetcher.c fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
53 eap/eap.h eap/eap.c \
54 pen/pen.h pen/pen.c \
55 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h \
56 processing/jobs/job.h processing/jobs/job.c \
57 processing/jobs/callback_job.c processing/jobs/callback_job.h \
58 processing/processor.c processing/processor.h \
59 processing/scheduler.c processing/scheduler.h \
60 selectors/traffic_selector.c selectors/traffic_selector.h \
61 threading/thread.h threading/thread.c \
62 threading/thread_value.h threading/thread_value.c \
63 threading/mutex.h threading/mutex.c threading/condvar.h \
64 threading/rwlock.h threading/rwlock.c \
65 threading/lock_profiler.h \
66 utils.h utils.c \
67 utils/host.c utils/host.h \
68 utils/identification.c utils/identification.h \
69 utils/lexparser.c utils/lexparser.h \
70 utils/linked_list.c utils/linked_list.h \
71 utils/hashtable.c utils/hashtable.h \
72 utils/enumerator.c utils/enumerator.h \
73 utils/optionsfrom.c utils/optionsfrom.h \
74 utils/backtrace.c utils/backtrace.h
75
76 # adding the plugin source files
77
78 LOCAL_SRC_FILES += $(call add_plugin, aes)
79
80 LOCAL_SRC_FILES += $(call add_plugin, des)
81
82 LOCAL_SRC_FILES += $(call add_plugin, fips-prf)
83
84 LOCAL_SRC_FILES += $(call add_plugin, gmp)
85 ifneq ($(call plugin_enabled, gmp),)
86 LOCAL_C_INCLUDES += $(libgmp_PATH)
87 LOCAL_SHARED_LIBRARIES += libgmp
88 endif
89
90 LOCAL_SRC_FILES += $(call add_plugin, hmac)
91
92 LOCAL_SRC_FILES += $(call add_plugin, md4)
93
94 LOCAL_SRC_FILES += $(call add_plugin, md5)
95
96 LOCAL_SRC_FILES += $(call add_plugin, openssl)
97 ifneq ($(call plugin_enabled, openssl),)
98 LOCAL_C_INCLUDES += external/openssl/include
99 LOCAL_SHARED_LIBRARIES += libcrypto
100 endif
101
102 LOCAL_SRC_FILES += $(call add_plugin, pem)
103
104 LOCAL_SRC_FILES += $(call add_plugin, pkcs1)
105
106 LOCAL_SRC_FILES += $(call add_plugin, pubkey)
107
108 LOCAL_SRC_FILES += $(call add_plugin, random)
109
110 LOCAL_SRC_FILES += $(call add_plugin, sha1)
111
112 LOCAL_SRC_FILES += $(call add_plugin, sha2)
113
114 LOCAL_SRC_FILES += $(call add_plugin, x509)
115
116 LOCAL_SRC_FILES += $(call add_plugin, xcbc)
117
118 # build libstrongswan ----------------------------------------------------------
119
120 LOCAL_C_INCLUDES += \
121 $(libvstr_PATH)
122
123 LOCAL_CFLAGS := $(strongswan_CFLAGS) \
124 -include $(LOCAL_PATH)/AndroidConfigLocal.h
125
126 LOCAL_MODULE := libstrongswan
127
128 LOCAL_ARM_MODE := arm
129
130 LOCAL_PRELINK_MODULE := false
131
132 LOCAL_SHARED_LIBRARIES += libdl libvstr
133
134 include $(BUILD_SHARED_LIBRARY)
135