File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libcharon / Android.mk
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:20:08 2021 UTC (3 years, 8 months ago) by misho
Branches: strongswan, MAIN
CVS tags: v5_9_2p0, HEAD
strongswan 5.9.2

    1: LOCAL_PATH := $(call my-dir)
    2: include $(CLEAR_VARS)
    3: 
    4: # copy-n-paste from Makefile.am
    5: libcharon_la_SOURCES := \
    6: attributes/attributes.c attributes/attributes.h \
    7: attributes/attribute_provider.h attributes/attribute_handler.h \
    8: attributes/attribute_manager.c attributes/attribute_manager.h \
    9: attributes/mem_pool.c attributes/mem_pool.h \
   10: bus/bus.c bus/bus.h \
   11: bus/listeners/listener.h \
   12: bus/listeners/logger.h \
   13: bus/listeners/custom_logger.h \
   14: bus/listeners/file_logger.c bus/listeners/file_logger.h \
   15: config/backend_manager.c config/backend_manager.h config/backend.h \
   16: config/child_cfg.c config/child_cfg.h \
   17: config/ike_cfg.c config/ike_cfg.h \
   18: config/peer_cfg.c config/peer_cfg.h \
   19: control/controller.c control/controller.h \
   20: daemon.c daemon.h \
   21: encoding/generator.c encoding/generator.h \
   22: encoding/message.c encoding/message.h \
   23: encoding/parser.c encoding/parser.h \
   24: encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
   25: encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
   26: encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
   27: encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
   28: encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
   29: encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
   30: encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
   31: encoding/payloads/encodings.c encoding/payloads/encodings.h \
   32: encoding/payloads/encrypted_payload.c encoding/payloads/encrypted_payload.h \
   33: encoding/payloads/encrypted_fragment_payload.h \
   34: encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
   35: encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
   36: encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
   37: encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
   38: encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
   39: encoding/payloads/payload.c encoding/payloads/payload.h \
   40: encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
   41: encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
   42: encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
   43: encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
   44: encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
   45: encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
   46: encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
   47: encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
   48: encoding/payloads/hash_payload.c encoding/payloads/hash_payload.h \
   49: encoding/payloads/fragment_payload.c encoding/payloads/fragment_payload.h \
   50: kernel/kernel_interface.c kernel/kernel_interface.h \
   51: kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
   52: kernel/kernel_net.c kernel/kernel_net.h \
   53: kernel/kernel_listener.h kernel/kernel_handler.c kernel/kernel_handler.h \
   54: network/receiver.c network/receiver.h network/sender.c network/sender.h \
   55: network/socket.c network/socket.h \
   56: network/socket_manager.c network/socket_manager.h \
   57: processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
   58: processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
   59: processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
   60: processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
   61: processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
   62: processing/jobs/redirect_job.c processing/jobs/redirect_job.h \
   63: processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
   64: processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
   65: processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
   66: processing/jobs/retry_initiate_job.c processing/jobs/retry_initiate_job.h \
   67: processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
   68: processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
   69: processing/jobs/start_action_job.c processing/jobs/start_action_job.h \
   70: processing/jobs/roam_job.c processing/jobs/roam_job.h \
   71: processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
   72: processing/jobs/inactivity_job.c processing/jobs/inactivity_job.h \
   73: processing/jobs/initiate_tasks_job.c processing/jobs/initiate_tasks_job.h \
   74: sa/eap/eap_method.c sa/eap/eap_method.h sa/eap/eap_inner_method.h \
   75: sa/eap/eap_manager.c sa/eap/eap_manager.h \
   76: sa/xauth/xauth_method.c sa/xauth/xauth_method.h \
   77: sa/xauth/xauth_manager.c sa/xauth/xauth_manager.h \
   78: sa/authenticator.c sa/authenticator.h \
   79: sa/child_sa.c sa/child_sa.h \
   80: sa/ike_sa.c sa/ike_sa.h \
   81: sa/ike_sa_id.c sa/ike_sa_id.h \
   82: sa/keymat.h sa/keymat.c \
   83: sa/ike_sa_manager.c sa/ike_sa_manager.h \
   84: sa/child_sa_manager.c sa/child_sa_manager.h \
   85: sa/task_manager.h sa/task_manager.c \
   86: sa/shunt_manager.c sa/shunt_manager.h \
   87: sa/trap_manager.c sa/trap_manager.h \
   88: sa/redirect_provider.h sa/redirect_manager.c sa/redirect_manager.h \
   89: sa/task.c sa/task.h
   90: 
   91: libcharon_la_SOURCES += \
   92: sa/ikev2/keymat_v2.c sa/ikev2/keymat_v2.h \
   93: sa/ikev2/task_manager_v2.c sa/ikev2/task_manager_v2.h \
   94: sa/ikev2/authenticators/eap_authenticator.c sa/ikev2/authenticators/eap_authenticator.h \
   95: sa/ikev2/authenticators/psk_authenticator.c sa/ikev2/authenticators/psk_authenticator.h \
   96: sa/ikev2/authenticators/pubkey_authenticator.c sa/ikev2/authenticators/pubkey_authenticator.h \
   97: sa/ikev2/tasks/child_create.c sa/ikev2/tasks/child_create.h \
   98: sa/ikev2/tasks/child_delete.c sa/ikev2/tasks/child_delete.h \
   99: sa/ikev2/tasks/child_rekey.c sa/ikev2/tasks/child_rekey.h \
  100: sa/ikev2/tasks/ike_auth.c sa/ikev2/tasks/ike_auth.h \
  101: sa/ikev2/tasks/ike_cert_pre.c sa/ikev2/tasks/ike_cert_pre.h \
  102: sa/ikev2/tasks/ike_cert_post.c sa/ikev2/tasks/ike_cert_post.h \
  103: sa/ikev2/tasks/ike_config.c sa/ikev2/tasks/ike_config.h \
  104: sa/ikev2/tasks/ike_delete.c sa/ikev2/tasks/ike_delete.h \
  105: sa/ikev2/tasks/ike_dpd.c sa/ikev2/tasks/ike_dpd.h \
  106: sa/ikev2/tasks/ike_init.c sa/ikev2/tasks/ike_init.h \
  107: sa/ikev2/tasks/ike_natd.c sa/ikev2/tasks/ike_natd.h \
  108: sa/ikev2/tasks/ike_mid_sync.c sa/ikev2/tasks/ike_mid_sync.h \
  109: sa/ikev2/tasks/ike_mobike.c sa/ikev2/tasks/ike_mobike.h \
  110: sa/ikev2/tasks/ike_rekey.c sa/ikev2/tasks/ike_rekey.h \
  111: sa/ikev2/tasks/ike_reauth.c sa/ikev2/tasks/ike_reauth.h \
  112: sa/ikev2/tasks/ike_reauth_complete.c sa/ikev2/tasks/ike_reauth_complete.h \
  113: sa/ikev2/tasks/ike_redirect.c sa/ikev2/tasks/ike_redirect.h \
  114: sa/ikev2/tasks/ike_auth_lifetime.c sa/ikev2/tasks/ike_auth_lifetime.h \
  115: sa/ikev2/tasks/ike_vendor.c sa/ikev2/tasks/ike_vendor.h \
  116: sa/ikev2/tasks/ike_verify_peer_cert.c sa/ikev2/tasks/ike_verify_peer_cert.h
  117: 
  118: libcharon_la_SOURCES += \
  119: sa/ikev1/keymat_v1.c sa/ikev1/keymat_v1.h \
  120: sa/ikev1/iv_manager.c sa/ikev1/iv_manager.h \
  121: sa/ikev1/task_manager_v1.c sa/ikev1/task_manager_v1.h \
  122: sa/ikev1/authenticators/psk_v1_authenticator.c sa/ikev1/authenticators/psk_v1_authenticator.h \
  123: sa/ikev1/authenticators/pubkey_v1_authenticator.c sa/ikev1/authenticators/pubkey_v1_authenticator.h \
  124: sa/ikev1/authenticators/hybrid_authenticator.c sa/ikev1/authenticators/hybrid_authenticator.h \
  125: sa/ikev1/phase1.c sa/ikev1/phase1.h \
  126: sa/ikev1/tasks/main_mode.c sa/ikev1/tasks/main_mode.h \
  127: sa/ikev1/tasks/aggressive_mode.c sa/ikev1/tasks/aggressive_mode.h \
  128: sa/ikev1/tasks/informational.c sa/ikev1/tasks/informational.h \
  129: sa/ikev1/tasks/isakmp_cert_pre.c sa/ikev1/tasks/isakmp_cert_pre.h \
  130: sa/ikev1/tasks/isakmp_cert_post.c sa/ikev1/tasks/isakmp_cert_post.h \
  131: sa/ikev1/tasks/isakmp_natd.c sa/ikev1/tasks/isakmp_natd.h \
  132: sa/ikev1/tasks/isakmp_vendor.c sa/ikev1/tasks/isakmp_vendor.h \
  133: sa/ikev1/tasks/isakmp_delete.c sa/ikev1/tasks/isakmp_delete.h \
  134: sa/ikev1/tasks/isakmp_dpd.c sa/ikev1/tasks/isakmp_dpd.h \
  135: sa/ikev1/tasks/xauth.c sa/ikev1/tasks/xauth.h \
  136: sa/ikev1/tasks/quick_mode.c sa/ikev1/tasks/quick_mode.h \
  137: sa/ikev1/tasks/quick_delete.c sa/ikev1/tasks/quick_delete.h \
  138: sa/ikev1/tasks/mode_config.c sa/ikev1/tasks/mode_config.h \
  139: processing/jobs/dpd_timeout_job.c processing/jobs/dpd_timeout_job.h \
  140: processing/jobs/adopt_children_job.c processing/jobs/adopt_children_job.h
  141: 
  142: libcharon_la_SOURCES += \
  143: 	bus/listeners/sys_logger.c bus/listeners/sys_logger.h
  144: 
  145: LOCAL_SRC_FILES := $(filter %.c,$(libcharon_la_SOURCES))
  146: 
  147: # adding the plugin source files
  148: 
  149: LOCAL_SRC_FILES += $(call add_plugin, android-dns)
  150: ifneq ($(call plugin_enabled, android-dns),)
  151: LOCAL_SHARED_LIBRARIES += libcutils
  152: endif
  153: 
  154: LOCAL_SRC_FILES += $(call add_plugin, android-log)
  155: ifneq ($(call plugin_enabled, android-log),)
  156: LOCAL_LDLIBS += -llog
  157: endif
  158: 
  159: LOCAL_SRC_FILES += $(call add_plugin, attr)
  160: 
  161: LOCAL_SRC_FILES += $(call add_plugin, p-cscf)
  162: 
  163: LOCAL_SRC_FILES += $(call add_plugin, eap-aka)
  164: 
  165: LOCAL_SRC_FILES += $(call add_plugin, eap-aka-3gpp)
  166: 
  167: LOCAL_SRC_FILES += $(call add_plugin, eap-aka-3gpp2)
  168: ifneq ($(call plugin_enabled, eap-aka-3gpp2),)
  169: LOCAL_C_INCLUDES += $(libgmp_PATH)
  170: LOCAL_SHARED_LIBRARIES += libgmp
  171: endif
  172: 
  173: LOCAL_SRC_FILES += $(call add_plugin, eap-gtc)
  174: 
  175: LOCAL_SRC_FILES += $(call add_plugin, eap-identity)
  176: 
  177: LOCAL_SRC_FILES += $(call add_plugin, eap-md5)
  178: 
  179: LOCAL_SRC_FILES += $(call add_plugin, eap-mschapv2)
  180: 
  181: LOCAL_SRC_FILES += $(call add_plugin, eap-sim)
  182: 
  183: LOCAL_SRC_FILES += $(call add_plugin, eap-simaka-sql)
  184: 
  185: LOCAL_SRC_FILES += $(call add_plugin, eap-simaka-pseudonym)
  186: 
  187: LOCAL_SRC_FILES += $(call add_plugin, eap-simaka-reauth)
  188: 
  189: LOCAL_SRC_FILES += $(call add_plugin, eap-sim-file)
  190: 
  191: # adding libakasim if either eap-aka or eap-sim is enabled
  192: ifneq ($(or $(call plugin_enabled, eap-aka), $(call plugin_enabled, eap-sim)),)
  193: LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libsimaka/
  194: LOCAL_SRC_FILES += $(addprefix ../libsimaka/, \
  195: 		simaka_message.h simaka_message.c \
  196: 		simaka_crypto.h simaka_crypto.c \
  197: 		simaka_manager.h simaka_manager.c \
  198: 		simaka_card.h simaka_provider.h simaka_hooks.h \
  199: 	)
  200: endif
  201: 
  202: LOCAL_SRC_FILES += $(call add_plugin, eap-tls)
  203: 
  204: LOCAL_SRC_FILES += $(call add_plugin, eap-ttls)
  205: ifneq ($(call plugin_enabled, eap-ttls),)
  206: # for radius_message.h
  207: LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libradius/
  208: endif
  209: 
  210: LOCAL_SRC_FILES += $(call add_plugin, eap-peap)
  211: 
  212: LOCAL_SRC_FILES += $(call add_plugin, eap-tnc)
  213: ifneq ($(call plugin_enabled, eap-tnc),)
  214: LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libtnccs/ $(LOCAL_PATH)/../libtncif/
  215: LOCAL_SHARED_LIBRARIES += libtnccs libtncif
  216: endif
  217: 
  218: # adding libtls if any of the four plugins above is enabled
  219: ifneq ($(or $(call plugin_enabled, eap-tls), $(call plugin_enabled, eap-ttls), \
  220: 			$(call plugin_enabled, eap-peap), $(call plugin_enabled, eap-tnc)),)
  221: LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libtls/
  222: LOCAL_SRC_FILES += $(addprefix ../libtls/, \
  223: 	tls_protection.c tls_compression.c tls_fragmentation.c tls_alert.c \
  224: 	tls_crypto.c tls_prf.c tls_hkdf.c tls_socket.c tls_eap.c tls_cache.c \
  225: 	tls_aead_expl.c tls_aead_impl.c tls_aead_null.c tls_aead_seq.c tls_aead.c \
  226: 	tls_peer.c tls_server.c tls.c \
  227: 	)
  228: endif
  229: 
  230: LOCAL_SRC_FILES += $(call add_plugin, load-tester)
  231: 
  232: LOCAL_SRC_FILES += $(call add_plugin, kernel-pfkey)
  233: 
  234: LOCAL_SRC_FILES += $(call add_plugin, kernel-netlink)
  235: 
  236: LOCAL_SRC_FILES += $(call add_plugin, socket-default)
  237: 
  238: LOCAL_SRC_FILES += $(call add_plugin, socket-dynamic)
  239: 
  240: LOCAL_SRC_FILES += $(call add_plugin, stroke)
  241: ifneq ($(call plugin_enabled, stroke),)
  242: LOCAL_C_INCLUDES += $(LOCAL_PATH)/../stroke/
  243: endif
  244: 
  245: # build libcharon --------------------------------------------------------------
  246: 
  247: LOCAL_C_INCLUDES += \
  248: 	$(strongswan_PATH)/src/libstrongswan
  249: 
  250: LOCAL_CFLAGS := $(strongswan_CFLAGS)
  251: 
  252: LOCAL_MODULE := libcharon
  253: 
  254: LOCAL_MODULE_TAGS := optional
  255: 
  256: LOCAL_ARM_MODE := arm
  257: 
  258: LOCAL_PRELINK_MODULE := false
  259: 
  260: LOCAL_SHARED_LIBRARIES += libstrongswan
  261: 
  262: include $(BUILD_SHARED_LIBRARY)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>