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