Provide plugin list from charon, not internally in libcharon.
[strongswan.git] / src / libcharon / 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 bus/bus.c bus/bus.h \
7 bus/listeners/listener.h \
8 bus/listeners/logger.h \
9 bus/listeners/file_logger.c bus/listeners/file_logger.h \
10 bus/listeners/sys_logger.c bus/listeners/sys_logger.h \
11 config/backend_manager.c config/backend_manager.h config/backend.h \
12 config/child_cfg.c config/child_cfg.h \
13 config/ike_cfg.c config/ike_cfg.h \
14 config/peer_cfg.c config/peer_cfg.h \
15 config/proposal.c config/proposal.h \
16 control/controller.c control/controller.h \
17 daemon.c daemon.h \
18 encoding/generator.c encoding/generator.h \
19 encoding/message.c encoding/message.h \
20 encoding/parser.c encoding/parser.h \
21 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
22 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
23 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
24 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
25 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
26 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
27 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
28 encoding/payloads/encodings.c encoding/payloads/encodings.h \
29 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
30 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
31 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
32 encoding/payloads/ke_payload.c encoding/payloads/ke_payload.h \
33 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
34 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
35 encoding/payloads/payload.c encoding/payloads/payload.h \
36 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
37 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
38 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
39 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
40 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
41 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
42 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
43 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
44 encoding/payloads/hash_payload.c encoding/payloads/hash_payload.h \
45 kernel/kernel_handler.c kernel/kernel_handler.h \
46 network/receiver.c network/receiver.h network/sender.c network/sender.h \
47 network/packet.c network/packet.h network/socket.c network/socket.h \
48 network/socket_manager.c network/socket_manager.h \
49 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
50 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
51 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
52 processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
53 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
54 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
55 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
56 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
57 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
58 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
59 processing/jobs/start_action_job.c processing/jobs/start_action_job.h \
60 processing/jobs/roam_job.c processing/jobs/roam_job.h \
61 processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
62 processing/jobs/inactivity_job.c processing/jobs/inactivity_job.h \
63 sa/eap/eap_method.c sa/eap/eap_method.h \
64 sa/eap/eap_manager.c sa/eap/eap_manager.h \
65 sa/xauth/xauth_method.c sa/xauth/xauth_method.h \
66 sa/xauth/xauth_manager.c sa/xauth/xauth_manager.h \
67 sa/authenticator.c sa/authenticator.h \
68 sa/child_sa.c sa/child_sa.h \
69 sa/ike_sa.c sa/ike_sa.h \
70 sa/ike_sa_id.c sa/ike_sa_id.h \
71 sa/keymat.h sa/keymat.c \
72 sa/ike_sa_manager.c sa/ike_sa_manager.h \
73 sa/task_manager.h sa/task_manager.c \
74 sa/shunt_manager.c sa/shunt_manager.h \
75 sa/trap_manager.c sa/trap_manager.h \
76 sa/task.c sa/task.h
77
78 LOCAL_SRC_FILES += \
79 sa/ikev2/keymat_v2.c sa/ikev2/keymat_v2.h \
80 sa/ikev2/task_manager_v2.c sa/ikev2/task_manager_v2.h \
81 sa/ikev2/authenticators/eap_authenticator.c sa/ikev2/authenticators/eap_authenticator.h \
82 sa/ikev2/authenticators/psk_authenticator.c sa/ikev2/authenticators/psk_authenticator.h \
83 sa/ikev2/authenticators/pubkey_authenticator.c sa/ikev2/authenticators/pubkey_authenticator.h \
84 sa/ikev2/tasks/child_create.c sa/ikev2/tasks/child_create.h \
85 sa/ikev2/tasks/child_delete.c sa/ikev2/tasks/child_delete.h \
86 sa/ikev2/tasks/child_rekey.c sa/ikev2/tasks/child_rekey.h \
87 sa/ikev2/tasks/ike_auth.c sa/ikev2/tasks/ike_auth.h \
88 sa/ikev2/tasks/ike_cert_pre.c sa/ikev2/tasks/ike_cert_pre.h \
89 sa/ikev2/tasks/ike_cert_post.c sa/ikev2/tasks/ike_cert_post.h \
90 sa/ikev2/tasks/ike_config.c sa/ikev2/tasks/ike_config.h \
91 sa/ikev2/tasks/ike_delete.c sa/ikev2/tasks/ike_delete.h \
92 sa/ikev2/tasks/ike_dpd.c sa/ikev2/tasks/ike_dpd.h \
93 sa/ikev2/tasks/ike_init.c sa/ikev2/tasks/ike_init.h \
94 sa/ikev2/tasks/ike_natd.c sa/ikev2/tasks/ike_natd.h \
95 sa/ikev2/tasks/ike_mobike.c sa/ikev2/tasks/ike_mobike.h \
96 sa/ikev2/tasks/ike_rekey.c sa/ikev2/tasks/ike_rekey.h \
97 sa/ikev2/tasks/ike_reauth.c sa/ikev2/tasks/ike_reauth.h \
98 sa/ikev2/tasks/ike_auth_lifetime.c sa/ikev2/tasks/ike_auth_lifetime.h \
99 sa/ikev2/tasks/ike_vendor.c sa/ikev2/tasks/ike_vendor.h
100
101 # adding the plugin source files
102
103 LOCAL_SRC_FILES += $(call add_plugin, android)
104 ifneq ($(call plugin_enabled, android),)
105 LOCAL_C_INCLUDES += frameworks/base/cmds/keystore
106 LOCAL_SHARED_LIBRARIES += libcutils
107 endif
108
109 LOCAL_SRC_FILES += $(call add_plugin, attr)
110
111 LOCAL_SRC_FILES += $(call add_plugin, eap-aka)
112
113 LOCAL_SRC_FILES += $(call add_plugin, eap-aka-3gpp2)
114 ifneq ($(call plugin_enabled, eap-aka-3gpp2),)
115 LOCAL_C_INCLUDES += $(libgmp_PATH)
116 LOCAL_SHARED_LIBRARIES += libgmp
117 endif
118
119 LOCAL_SRC_FILES += $(call add_plugin, eap-gtc)
120
121 LOCAL_SRC_FILES += $(call add_plugin, eap-identity)
122
123 LOCAL_SRC_FILES += $(call add_plugin, eap-md5)
124
125 LOCAL_SRC_FILES += $(call add_plugin, eap-mschapv2)
126
127 LOCAL_SRC_FILES += $(call add_plugin, eap-sim)
128
129 LOCAL_SRC_FILES += $(call add_plugin, eap-simaka-sql)
130
131 LOCAL_SRC_FILES += $(call add_plugin, eap-simaka-pseudonym)
132
133 LOCAL_SRC_FILES += $(call add_plugin, eap-simaka-reauth)
134
135 LOCAL_SRC_FILES += $(call add_plugin, eap-sim-file)
136
137 # adding libakasim if either eap-aka or eap-sim is enabled
138 ifneq ($(or $(call plugin_enabled, eap-aka), $(call plugin_enabled, eap-sim)),)
139 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libsimaka/
140 LOCAL_SRC_FILES += $(addprefix ../libsimaka/, \
141 simaka_message.h simaka_message.c \
142 simaka_crypto.h simaka_crypto.c \
143 simaka_manager.h simaka_manager.c \
144 simaka_card.h simaka_provider.h simaka_hooks.h \
145 )
146 endif
147
148 LOCAL_SRC_FILES += $(call add_plugin, load-tester)
149
150 LOCAL_SRC_FILES += $(call add_plugin, socket-default)
151
152 LOCAL_SRC_FILES += $(call add_plugin, socket-dynamic)
153
154 LOCAL_SRC_FILES += $(call add_plugin, socket-raw)
155
156 LOCAL_SRC_FILES += $(call add_plugin, stroke)
157 ifneq ($(call plugin_enabled, stroke),)
158 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../stroke/
159 endif
160
161
162 # build libcharon --------------------------------------------------------------
163
164 LOCAL_C_INCLUDES += \
165 $(libvstr_PATH) \
166 $(strongswan_PATH)/src/include \
167 $(strongswan_PATH)/src/libhydra \
168 $(strongswan_PATH)/src/libstrongswan \
169 $(strongswan_PATH)/src/libtncif
170
171 LOCAL_CFLAGS := $(strongswan_CFLAGS)
172
173 LOCAL_MODULE := libcharon
174
175 LOCAL_MODULE_TAGS := optional
176
177 LOCAL_ARM_MODE := arm
178
179 LOCAL_PRELINK_MODULE := false
180
181 LOCAL_SHARED_LIBRARIES += libstrongswan libhydra
182
183 include $(BUILD_SHARED_LIBRARY)
184