xfrmi: Move to a separate directory to fix monolithic build
[strongswan.git] / src / libimcv / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # copy-n-paste from Makefile.am
5 libimcv_la_SOURCES := \
6 imcv.h imcv.c \
7 imc/imc_agent.h imc/imc_agent.c imc/imc_state.h \
8 imc/imc_msg.h imc/imc_msg.c \
9 imc/imc_os_info.h imc/imc_os_info.c \
10 imv/imv_agent.h imv/imv_agent.c imv/imv_state.h \
11 imv/imv_agent_if.h imv/imv_if.h \
12 imv/imv_database.h imv/imv_database.c \
13 imv/imv_msg.h imv/imv_msg.c \
14 imv/imv_lang_string.h imv/imv_lang_string.c \
15 imv/imv_os_info.h imv/imv_os_info.c \
16 imv/imv_reason_string.h imv/imv_reason_string.c \
17 imv/imv_remediation_string.h imv/imv_remediation_string.c \
18 imv/imv_session.h imv/imv_session.c \
19 imv/imv_session_manager.h imv/imv_session_manager.c \
20 imv/imv_workitem.h imv/imv_workitem.c \
21 generic/generic_attr_bool.h generic/generic_attr_bool.c \
22 generic/generic_attr_chunk.h generic/generic_attr_chunk.c \
23 generic/generic_attr_string.h generic/generic_attr_string.c \
24 ietf/ietf_attr.h ietf/ietf_attr.c \
25 ietf/ietf_attr_assess_result.h ietf/ietf_attr_assess_result.c \
26 ietf/ietf_attr_attr_request.h ietf/ietf_attr_attr_request.c \
27 ietf/ietf_attr_fwd_enabled.h ietf/ietf_attr_fwd_enabled.c \
28 ietf/ietf_attr_installed_packages.h ietf/ietf_attr_installed_packages.c \
29 ietf/ietf_attr_numeric_version.h ietf/ietf_attr_numeric_version.c \
30 ietf/ietf_attr_op_status.h ietf/ietf_attr_op_status.c \
31 ietf/ietf_attr_pa_tnc_error.h ietf/ietf_attr_pa_tnc_error.c \
32 ietf/ietf_attr_port_filter.h ietf/ietf_attr_port_filter.c \
33 ietf/ietf_attr_product_info.h ietf/ietf_attr_product_info.c \
34 ietf/ietf_attr_remediation_instr.h ietf/ietf_attr_remediation_instr.c \
35 ietf/ietf_attr_string_version.h ietf/ietf_attr_string_version.c \
36 ietf/swima/ietf_swima_attr_req.h ietf/swima/ietf_swima_attr_req.c \
37 ietf/swima/ietf_swima_attr_sw_inv.h ietf/swima/ietf_swima_attr_sw_inv.c \
38 ietf/swima/ietf_swima_attr_sw_ev.h ietf/swima/ietf_swima_attr_sw_ev.c \
39 ita/ita_attr.h ita/ita_attr.c \
40 ita/ita_attr_command.h ita/ita_attr_command.c \
41 ita/ita_attr_dummy.h ita/ita_attr_dummy.c \
42 ita/ita_attr_get_settings.h ita/ita_attr_get_settings.c \
43 ita/ita_attr_settings.h ita/ita_attr_settings.c \
44 ita/ita_attr_angel.h ita/ita_attr_angel.c \
45 os_info/os_info.h os_info/os_info.c \
46 pa_tnc/pa_tnc_attr.h \
47 pa_tnc/pa_tnc_msg.h pa_tnc/pa_tnc_msg.c \
48 pa_tnc/pa_tnc_attr_manager.h pa_tnc/pa_tnc_attr_manager.c \
49 pts/pts.h pts/pts.c \
50 pts/pts_error.h pts/pts_error.c \
51 pts/pts_pcr.h pts/pts_pcr.c \
52 pts/pts_proto_caps.h \
53 pts/pts_req_func_comp_evid.h \
54 pts/pts_creds.h pts/pts_creds.c \
55 pts/pts_database.h pts/pts_database.c \
56 pts/pts_dh_group.h pts/pts_dh_group.c \
57 pts/pts_file_meas.h pts/pts_file_meas.c \
58 pts/pts_file_meta.h pts/pts_file_meta.c \
59 pts/pts_file_type.h pts/pts_file_type.c \
60 pts/pts_ima_bios_list.h pts/pts_ima_bios_list.c \
61 pts/pts_ima_event_list.h pts/pts_ima_event_list.c \
62 pts/pts_meas_algo.h pts/pts_meas_algo.c \
63 pts/components/pts_component.h \
64 pts/components/pts_component_manager.h pts/components/pts_component_manager.c \
65 pts/components/pts_comp_evidence.h pts/components/pts_comp_evidence.c \
66 pts/components/pts_comp_func_name.h pts/components/pts_comp_func_name.c \
67 pts/components/ita/ita_comp_func_name.h pts/components/ita/ita_comp_func_name.c \
68 pts/components/ita/ita_comp_ima.h pts/components/ita/ita_comp_ima.c \
69 pts/components/ita/ita_comp_tboot.h pts/components/ita/ita_comp_tboot.c \
70 pts/components/ita/ita_comp_tgrub.h pts/components/ita/ita_comp_tgrub.c \
71 pts/components/tcg/tcg_comp_func_name.h pts/components/tcg/tcg_comp_func_name.c \
72 pwg/pwg_attr.h pwg/pwg_attr.c \
73 pwg/pwg_attr_vendor_smi_code.h pwg/pwg_attr_vendor_smi_code.c \
74 rest/rest.h rest/rest.c \
75 seg/seg_contract.h seg/seg_contract.c \
76 seg/seg_contract_manager.h seg/seg_contract_manager.c \
77 seg/seg_env.h seg/seg_env.c \
78 swid_gen/swid_gen.h swid_gen/swid_gen.c \
79 swid_gen/swid_gen_info.h swid_gen/swid_gen_info.c \
80 swima/swima_data_model.h swima/swima_data_model.c \
81 swima/swima_record.h swima/swima_record.c \
82 swima/swima_event.h swima/swima_event.c \
83 swima/swima_events.h swima/swima_events.c \
84 swima/swima_inventory.h swima/swima_inventory.c \
85 swima/swima_collector.h swima/swima_collector.c \
86 swima/swima_error.h swima/swima_error.c \
87 tcg/tcg_attr.h tcg/tcg_attr.c \
88 tcg/pts/tcg_pts_attr_proto_caps.h tcg/pts/tcg_pts_attr_proto_caps.c \
89 tcg/pts/tcg_pts_attr_dh_nonce_params_req.h tcg/pts/tcg_pts_attr_dh_nonce_params_req.c \
90 tcg/pts/tcg_pts_attr_dh_nonce_params_resp.h tcg/pts/tcg_pts_attr_dh_nonce_params_resp.c \
91 tcg/pts/tcg_pts_attr_dh_nonce_finish.h tcg/pts/tcg_pts_attr_dh_nonce_finish.c \
92 tcg/pts/tcg_pts_attr_meas_algo.h tcg/pts/tcg_pts_attr_meas_algo.c \
93 tcg/pts/tcg_pts_attr_get_tpm_version_info.h tcg/pts/tcg_pts_attr_get_tpm_version_info.c \
94 tcg/pts/tcg_pts_attr_tpm_version_info.h tcg/pts/tcg_pts_attr_tpm_version_info.c \
95 tcg/pts/tcg_pts_attr_get_aik.h tcg/pts/tcg_pts_attr_get_aik.c \
96 tcg/pts/tcg_pts_attr_aik.h tcg/pts/tcg_pts_attr_aik.c \
97 tcg/pts/tcg_pts_attr_req_func_comp_evid.h tcg/pts/tcg_pts_attr_req_func_comp_evid.c \
98 tcg/pts/tcg_pts_attr_gen_attest_evid.h tcg/pts/tcg_pts_attr_gen_attest_evid.c \
99 tcg/pts/tcg_pts_attr_simple_comp_evid.h tcg/pts/tcg_pts_attr_simple_comp_evid.c \
100 tcg/pts/tcg_pts_attr_simple_evid_final.h tcg/pts/tcg_pts_attr_simple_evid_final.c \
101 tcg/pts/tcg_pts_attr_req_file_meas.h tcg/pts/tcg_pts_attr_req_file_meas.c \
102 tcg/pts/tcg_pts_attr_file_meas.h tcg/pts/tcg_pts_attr_file_meas.c \
103 tcg/pts/tcg_pts_attr_req_file_meta.h tcg/pts/tcg_pts_attr_req_file_meta.c \
104 tcg/pts/tcg_pts_attr_unix_file_meta.h tcg/pts/tcg_pts_attr_unix_file_meta.c \
105 tcg/seg/tcg_seg_attr_max_size.h tcg/seg/tcg_seg_attr_max_size.c \
106 tcg/seg/tcg_seg_attr_seg_env.h tcg/seg/tcg_seg_attr_seg_env.c \
107 tcg/seg/tcg_seg_attr_next_seg.h tcg/seg/tcg_seg_attr_next_seg.c
108
109 LOCAL_SRC_FILES := $(filter %.c,$(libimcv_la_SOURCES))
110
111 # build libimcv ----------------------------------------------------------------
112
113 LOCAL_C_INCLUDES += \
114 $(strongswan_PATH)/src/libtncif \
115 $(strongswan_PATH)/src/libtpmtss \
116 $(strongswan_PATH)/src/libstrongswan
117
118 LOCAL_CFLAGS := $(strongswan_CFLAGS)
119
120 LOCAL_MODULE := libimcv
121
122 LOCAL_MODULE_TAGS := optional
123
124 LOCAL_ARM_MODE := arm
125
126 LOCAL_PRELINK_MODULE := false
127
128 LOCAL_SHARED_LIBRARIES += libstrongswan libtncif libtpmtss
129
130 include $(BUILD_SHARED_LIBRARY)