blob: bef88bddd6b9b3235611929cd90d85eca81cc52d [file] [log] [blame]
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -08001LOCAL_PATH := $(call my-dir)
2
3cvd_host_package_tar := $(HOST_OUT)/cvd-host_package.tar.gz
4
Greg Hartman257abd32017-12-20 22:16:24 -08005.PHONY: hosttar
6hosttar: $(cvd_host_package_tar)
7
Greg Hartman0e88a5d2019-02-20 10:45:42 -08008# Build this by default when a developer types make
9droidcore: $(cvd_host_package_tar)
10
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080011# Build and store them on the build server.
12$(call dist-for-goals, dist_files, $(cvd_host_package_tar))
13
14bin_path := $(notdir $(HOST_OUT_EXECUTABLES))
15lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES))
16tests_path := $(notdir $(HOST_OUT_NATIVE_TESTS))
17
18cvd_host_executables := \
Greg Hartman7a97b152018-08-29 22:51:56 -070019 adb \
Ryan Hainingb411f042018-07-13 14:05:49 -070020 adbshell \
Greg Hartman004fb182018-05-02 18:48:53 -070021 host_region_e2e_test \
Greg Hartman6e78bf52017-11-11 12:03:39 -080022 launch_cvd \
Isaac Chen5ca63102019-06-05 13:58:49 +080023 lpmake \
24 lpunpack \
Ryan Hainingb2cfce22018-02-05 08:58:19 -080025 socket_forward_proxy \
Cody Schuffelen4a58ddc2018-12-17 18:55:19 -080026 socket_vsock_proxy \
Ryan Haining8ffc0802018-06-29 19:02:49 -070027 adb_connector \
Jorge E. Moreira0aa61402018-04-25 18:18:43 -070028 stop_cvd \
Jorge E. Moreira20a6b1a2018-01-25 17:15:26 -080029 vnc_server \
Andreas Huber5a6d7b72018-03-09 10:32:42 -080030 record_audio \
Jorge E. Moreiraa635a262018-06-13 14:51:10 -070031 cf_qemu.sh \
Jorge E. Moreira31d7bc02018-06-22 18:17:34 -070032 ivserver \
Jorge E. Moreira26a633e2018-07-22 23:04:04 -070033 virtual_usb_manager \
Jorge E. Moreira3acf00e2018-07-26 16:40:29 -070034 kernel_log_monitor \
Jorge E. Moreira760857b2019-02-01 11:25:34 -080035 extract-vmlinux \
Jorge E. Moreirae43220f2019-01-29 16:29:24 -080036 crosvm \
Greg Hartmanab7954f2019-05-02 20:37:17 -070037 aarch64-linux-gnu/crosvm \
38 aarch64-linux-gnu/libepoxy.so.0 \
39 aarch64-linux-gnu/libgbm.so.1 \
40 aarch64-linux-gnu/libminijail.so \
41 aarch64-linux-gnu/libvirglrenderer.so.0 \
42 x86_64-linux-gnu/crosvm \
43 x86_64-linux-gnu/libepoxy.so.0 \
44 x86_64-linux-gnu/libgbm.so.1 \
45 x86_64-linux-gnu/libminijail.so \
46 x86_64-linux-gnu/libvirglrenderer.so.0 \
Jorge E. Moreira0cb7cac2019-02-15 17:05:20 -080047 logcat_receiver \
Jorge E. Moreiraf7320092019-04-15 18:37:14 -070048 config_server \
Ram Muthiah3c1cc132019-04-24 16:23:14 -070049 tombstone_receiver \
Jorge E. Moreira90aa8cd2019-06-06 16:13:59 -070050 console_forwarder \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080051
52cvd_host_tests := \
53 auto_free_buffer_test \
54 circqueue_test \
55 cuttlefish_thread_test \
56 hald_client_test \
57 lock_test \
58 monotonic_time_test \
59 vsoc_graphics_test \
Cody Schuffelenb5f655d2018-07-27 19:10:04 -070060 cuttlefish_net_tests \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080061
62cvd_host_shared_libraries := \
Greg Hartmanf272ff62019-03-18 23:12:23 -070063 libbase.so \
64 vsoc_lib.so \
65 libcuttlefish_fs.so \
66 cuttlefish_auto_resources.so \
67 libcuttlefish_strings.so \
68 libcuttlefish_utils.so \
69 cuttlefish_tcp_socket.so \
70 cuttlefish_net.so \
71 liblog.so \
72 libnl.so \
73 libc++.so \
Isaac Chen5ca63102019-06-05 13:58:49 +080074 liblp.so \
75 libsparse-host.so \
76 libcrypto-host.so \
77 libcrypto_utils.so \
78 libext4_utils.so \
79 libz-host.so \
Greg Hartmanf272ff62019-03-18 23:12:23 -070080 libicuuc-host.so \
81 libicui18n-host.so \
82 libandroidicu-host.so \
Jorge E. Moreiraf7320092019-04-15 18:37:14 -070083 libcuttlefish_device_config.so \
Jorge E. Moreiraa0d64b42018-10-10 12:54:40 -070084
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080085
86cvd_host_configs := \
Greg Hartman512dad92018-06-21 23:52:56 -070087 system-root.dtb \
Tristan Muntsinger2eeae632019-01-18 16:46:54 -080088 initrd-root.dtb \
Tristan Muntsinger1231b6d2019-01-17 15:42:14 -080089 gsi.fstab \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080090
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080091cvd_host_package_files := \
92 $(addprefix config/,$(cvd_host_configs)) \
93 $(addprefix $(bin_path)/,$(cvd_host_executables)) \
Greg Hartmanf272ff62019-03-18 23:12:23 -070094 $(addprefix $(lib_path)/,$(cvd_host_shared_libraries)) \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080095 $(foreach test,$(cvd_host_tests), ${tests_path}/$(test)/$(test)) \
96
Dan Willemsen0a4f58a2018-06-18 21:55:38 -070097$(cvd_host_package_tar): PRIVATE_FILES := $(cvd_host_package_files)
98$(cvd_host_package_tar): $(addprefix $(HOST_OUT)/,$(cvd_host_package_files))
Elliott Hughes8793d7d2019-05-23 18:35:18 -070099 $(hide) rm -rf $@ && tar Scfz $@.tmp -C $(HOST_OUT) $(PRIVATE_FILES)
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -0800100 $(hide) mv $@.tmp $@