blob: e9316e5a73829ab521472e1fdc14ee6729749ba6 [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 \
Cody Schuffelen31fb1b72019-05-29 18:55:31 -070032 cf_bpttool \
Jorge E. Moreira31d7bc02018-06-22 18:17:34 -070033 ivserver \
Jorge E. Moreira26a633e2018-07-22 23:04:04 -070034 virtual_usb_manager \
Jorge E. Moreira3acf00e2018-07-26 16:40:29 -070035 kernel_log_monitor \
Jorge E. Moreira760857b2019-02-01 11:25:34 -080036 extract-vmlinux \
Jorge E. Moreirae43220f2019-01-29 16:29:24 -080037 crosvm \
Greg Hartmanab7954f2019-05-02 20:37:17 -070038 aarch64-linux-gnu/crosvm \
39 aarch64-linux-gnu/libepoxy.so.0 \
40 aarch64-linux-gnu/libgbm.so.1 \
41 aarch64-linux-gnu/libminijail.so \
42 aarch64-linux-gnu/libvirglrenderer.so.0 \
43 x86_64-linux-gnu/crosvm \
44 x86_64-linux-gnu/libepoxy.so.0 \
45 x86_64-linux-gnu/libgbm.so.1 \
46 x86_64-linux-gnu/libminijail.so \
47 x86_64-linux-gnu/libvirglrenderer.so.0 \
Jorge E. Moreira0cb7cac2019-02-15 17:05:20 -080048 logcat_receiver \
Jorge E. Moreiraf7320092019-04-15 18:37:14 -070049 config_server \
Ram Muthiah3c1cc132019-04-24 16:23:14 -070050 tombstone_receiver \
Jorge E. Moreira90aa8cd2019-06-06 16:13:59 -070051 console_forwarder \
Cody Schuffelen411ee852019-08-27 13:08:54 -070052 assemble_cvd \
53 run_cvd \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080054
55cvd_host_tests := \
56 auto_free_buffer_test \
57 circqueue_test \
58 cuttlefish_thread_test \
59 hald_client_test \
60 lock_test \
61 monotonic_time_test \
62 vsoc_graphics_test \
Cody Schuffelenb5f655d2018-07-27 19:10:04 -070063 cuttlefish_net_tests \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080064
65cvd_host_shared_libraries := \
Greg Hartmanf272ff62019-03-18 23:12:23 -070066 libbase.so \
67 vsoc_lib.so \
68 libcuttlefish_fs.so \
69 cuttlefish_auto_resources.so \
70 libcuttlefish_strings.so \
71 libcuttlefish_utils.so \
72 cuttlefish_tcp_socket.so \
73 cuttlefish_net.so \
74 liblog.so \
75 libnl.so \
76 libc++.so \
Isaac Chen5ca63102019-06-05 13:58:49 +080077 liblp.so \
78 libsparse-host.so \
79 libcrypto-host.so \
80 libcrypto_utils.so \
81 libext4_utils.so \
82 libz-host.so \
Greg Hartmanf272ff62019-03-18 23:12:23 -070083 libicuuc-host.so \
84 libicui18n-host.so \
85 libandroidicu-host.so \
Jorge E. Moreiraf7320092019-04-15 18:37:14 -070086 libcuttlefish_device_config.so \
Jorge E. Moreiraa0d64b42018-10-10 12:54:40 -070087
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080088
89cvd_host_configs := \
Greg Hartman512dad92018-06-21 23:52:56 -070090 system-root.dtb \
Cody Schuffelen709fa0a2019-06-03 12:13:05 -070091 composite-system-root.dtb \
Tristan Muntsinger2eeae632019-01-18 16:46:54 -080092 initrd-root.dtb \
Tristan Muntsinger1231b6d2019-01-17 15:42:14 -080093 gsi.fstab \
Cody Schuffelen31fb1b72019-05-29 18:55:31 -070094 composite-gsi.fstab \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080095
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080096cvd_host_package_files := \
97 $(addprefix config/,$(cvd_host_configs)) \
98 $(addprefix $(bin_path)/,$(cvd_host_executables)) \
Greg Hartmanf272ff62019-03-18 23:12:23 -070099 $(addprefix $(lib_path)/,$(cvd_host_shared_libraries)) \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -0800100 $(foreach test,$(cvd_host_tests), ${tests_path}/$(test)/$(test)) \
101
Dan Willemsen0a4f58a2018-06-18 21:55:38 -0700102$(cvd_host_package_tar): PRIVATE_FILES := $(cvd_host_package_files)
103$(cvd_host_package_tar): $(addprefix $(HOST_OUT)/,$(cvd_host_package_files))
Elliott Hughes8793d7d2019-05-23 18:35:18 -0700104 $(hide) rm -rf $@ && tar Scfz $@.tmp -C $(HOST_OUT) $(PRIVATE_FILES)
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -0800105 $(hide) mv $@.tmp $@