a191bba8d2382391b0680641a19a7ad76316f10b
[strongswan.git] / src / libpts / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # copy-n-paste from Makefile.am
5 libpts_la_SOURCES := \
6 libpts.h libpts.c \
7 pts/pts.h pts/pts.c \
8 pts/pts_error.h pts/pts_error.c \
9 pts/pts_pcr.h pts/pts_pcr.c \
10 pts/pts_proto_caps.h \
11 pts/pts_req_func_comp_evid.h \
12 pts/pts_simple_evid_final.h \
13 pts/pts_creds.h pts/pts_creds.c \
14 pts/pts_database.h pts/pts_database.c \
15 pts/pts_dh_group.h pts/pts_dh_group.c \
16 pts/pts_file_meas.h pts/pts_file_meas.c \
17 pts/pts_file_meta.h pts/pts_file_meta.c \
18 pts/pts_file_type.h pts/pts_file_type.c \
19 pts/pts_meas_algo.h pts/pts_meas_algo.c \
20 pts/components/pts_component.h \
21 pts/components/pts_component_manager.h pts/components/pts_component_manager.c \
22 pts/components/pts_comp_evidence.h pts/components/pts_comp_evidence.c \
23 pts/components/pts_comp_func_name.h pts/components/pts_comp_func_name.c \
24 pts/components/ita/ita_comp_func_name.h pts/components/ita/ita_comp_func_name.c \
25 pts/components/ita/ita_comp_ima.h pts/components/ita/ita_comp_ima.c \
26 pts/components/ita/ita_comp_tboot.h pts/components/ita/ita_comp_tboot.c \
27 pts/components/ita/ita_comp_tgrub.h pts/components/ita/ita_comp_tgrub.c \
28 pts/components/tcg/tcg_comp_func_name.h pts/components/tcg/tcg_comp_func_name.c \
29 swid/swid_error.h swid/swid_error.c \
30 swid/swid_inventory.h swid/swid_inventory.c \
31 swid/swid_tag.h swid/swid_tag.c \
32 swid/swid_tag_id.h swid/swid_tag_id.c \
33 tcg/tcg_attr.h tcg/tcg_attr.c \
34 tcg/pts/tcg_pts_attr_proto_caps.h tcg/pts/tcg_pts_attr_proto_caps.c \
35 tcg/pts/tcg_pts_attr_dh_nonce_params_req.h tcg/pts/tcg_pts_attr_dh_nonce_params_req.c \
36 tcg/pts/tcg_pts_attr_dh_nonce_params_resp.h tcg/pts/tcg_pts_attr_dh_nonce_params_resp.c \
37 tcg/pts/tcg_pts_attr_dh_nonce_finish.h tcg/pts/tcg_pts_attr_dh_nonce_finish.c \
38 tcg/pts/tcg_pts_attr_meas_algo.h tcg/pts/tcg_pts_attr_meas_algo.c \
39 tcg/pts/tcg_pts_attr_get_tpm_version_info.h tcg/pts/tcg_pts_attr_get_tpm_version_info.c \
40 tcg/pts/tcg_pts_attr_tpm_version_info.h tcg/pts/tcg_pts_attr_tpm_version_info.c \
41 tcg/pts/tcg_pts_attr_get_aik.h tcg/pts/tcg_pts_attr_get_aik.c \
42 tcg/pts/tcg_pts_attr_aik.h tcg/pts/tcg_pts_attr_aik.c \
43 tcg/pts/tcg_pts_attr_req_func_comp_evid.h tcg/pts/tcg_pts_attr_req_func_comp_evid.c \
44 tcg/pts/tcg_pts_attr_gen_attest_evid.h tcg/pts/tcg_pts_attr_gen_attest_evid.c \
45 tcg/pts/tcg_pts_attr_simple_comp_evid.h tcg/pts/tcg_pts_attr_simple_comp_evid.c \
46 tcg/pts/tcg_pts_attr_simple_evid_final.h tcg/pts/tcg_pts_attr_simple_evid_final.c \
47 tcg/pts/tcg_pts_attr_req_file_meas.h tcg/pts/tcg_pts_attr_req_file_meas.c \
48 tcg/pts/tcg_pts_attr_file_meas.h tcg/pts/tcg_pts_attr_file_meas.c \
49 tcg/pts/tcg_pts_attr_req_file_meta.h tcg/pts/tcg_pts_attr_req_file_meta.c \
50 tcg/pts/tcg_pts_attr_unix_file_meta.h tcg/pts/tcg_pts_attr_unix_file_meta.c \
51 tcg/swid/tcg_swid_attr_req.h tcg/swid/tcg_swid_attr_req.c \
52 tcg/swid/tcg_swid_attr_tag_id_inv.h tcg/swid/tcg_swid_attr_tag_id_inv.c \
53 tcg/swid/tcg_swid_attr_tag_inv.h tcg/swid/tcg_swid_attr_tag_inv.c
54
55 LOCAL_SRC_FILES := $(filter %.c,$(libpts_la_SOURCES))
56
57 # build libpts -----------------------------------------------------------------
58
59 LOCAL_C_INCLUDES += \
60 $(strongswan_PATH)/src/libtncif \
61 $(strongswan_PATH)/src/libimcv \
62 $(strongswan_PATH)/src/libstrongswan
63
64 LOCAL_CFLAGS := $(strongswan_CFLAGS)
65
66 LOCAL_MODULE := libpts
67
68 LOCAL_MODULE_TAGS := optional
69
70 LOCAL_ARM_MODE := arm
71
72 LOCAL_PRELINK_MODULE := false
73
74 LOCAL_SHARED_LIBRARIES += libstrongswan libimcv
75
76 include $(BUILD_SHARED_LIBRARY)