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