blob: bad615536ec8e447436e9b6ea9d14b7cde179a00 [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
Dan Willemsen0a4f58a2018-06-18 21:55:38 -07008$(cvd_host_package_tar): PRIVATE_TAR_FORMAT :=
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -08009ifeq ($(HOST_OS),linux)
Dan Willemsen0a4f58a2018-06-18 21:55:38 -070010$(cvd_host_package_tar): PRIVATE_TAR_FORMAT := --format=gnu
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080011endif
12
Greg Hartman0e88a5d2019-02-20 10:45:42 -080013# Build this by default when a developer types make
14droidcore: $(cvd_host_package_tar)
15
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080016# Build and store them on the build server.
17$(call dist-for-goals, dist_files, $(cvd_host_package_tar))
18
19bin_path := $(notdir $(HOST_OUT_EXECUTABLES))
20lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES))
21tests_path := $(notdir $(HOST_OUT_NATIVE_TESTS))
22
23cvd_host_executables := \
Greg Hartman7a97b152018-08-29 22:51:56 -070024 adb \
Ryan Hainingb411f042018-07-13 14:05:49 -070025 adbshell \
Greg Hartman004fb182018-05-02 18:48:53 -070026 host_region_e2e_test \
Greg Hartman6e78bf52017-11-11 12:03:39 -080027 launch_cvd \
Ryan Hainingb2cfce22018-02-05 08:58:19 -080028 socket_forward_proxy \
Cody Schuffelen4a58ddc2018-12-17 18:55:19 -080029 socket_vsock_proxy \
Ryan Haining8ffc0802018-06-29 19:02:49 -070030 adb_connector \
Jorge E. Moreira0aa61402018-04-25 18:18:43 -070031 stop_cvd \
Ryan Haining38247512018-11-27 17:03:22 -080032 stream_audio \
Jorge E. Moreira20a6b1a2018-01-25 17:15:26 -080033 vnc_server \
Andreas Huber5a6d7b72018-03-09 10:32:42 -080034 record_audio \
Jorge E. Moreiraa635a262018-06-13 14:51:10 -070035 cf_qemu.sh \
Jorge E. Moreira31d7bc02018-06-22 18:17:34 -070036 ivserver \
Jorge E. Moreira26a633e2018-07-22 23:04:04 -070037 virtual_usb_manager \
Jorge E. Moreira3acf00e2018-07-26 16:40:29 -070038 kernel_log_monitor \
Jorge E. Moreira760857b2019-02-01 11:25:34 -080039 extract-vmlinux \
Jorge E. Moreirae43220f2019-01-29 16:29:24 -080040 crosvm \
Jorge E. Moreira0cb7cac2019-02-15 17:05:20 -080041 logcat_receiver \
Jorge E. Moreiraf7320092019-04-15 18:37:14 -070042 config_server \
Ram Muthiah3c1cc132019-04-24 16:23:14 -070043 tombstone_receiver \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080044
45cvd_host_tests := \
46 auto_free_buffer_test \
47 circqueue_test \
48 cuttlefish_thread_test \
49 hald_client_test \
50 lock_test \
51 monotonic_time_test \
52 vsoc_graphics_test \
Cody Schuffelenb5f655d2018-07-27 19:10:04 -070053 cuttlefish_net_tests \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080054
55cvd_host_shared_libraries := \
Greg Hartmanf272ff62019-03-18 23:12:23 -070056 libbase.so \
57 vsoc_lib.so \
58 libcuttlefish_fs.so \
59 cuttlefish_auto_resources.so \
60 libcuttlefish_strings.so \
61 libcuttlefish_utils.so \
62 cuttlefish_tcp_socket.so \
63 cuttlefish_net.so \
64 liblog.so \
65 libnl.so \
66 libc++.so \
67 libicuuc-host.so \
68 libicui18n-host.so \
69 libandroidicu-host.so \
70 libopus.so \
71 libvirglrenderer_cuttlefish.so \
72 libEGL_swiftshader.so \
73 libGLESv1_CM_swiftshader.so \
74 libGLESv2_swiftshader.so \
75 crosvm/libepoxy.so.0 \
76 crosvm/libgbm.so.1 \
77 crosvm/libminijail.so \
78 crosvm/libvirglrenderer.so.0 \
Jorge E. Moreiraf7320092019-04-15 18:37:14 -070079 libcuttlefish_device_config.so \
Jorge E. Moreiraa0d64b42018-10-10 12:54:40 -070080
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080081
82cvd_host_configs := \
Greg Hartman512dad92018-06-21 23:52:56 -070083 system-root.dtb \
Tristan Muntsinger2eeae632019-01-18 16:46:54 -080084 initrd-root.dtb \
Tristan Muntsinger1231b6d2019-01-17 15:42:14 -080085 gsi.fstab \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080086
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080087cvd_host_package_files := \
88 $(addprefix config/,$(cvd_host_configs)) \
89 $(addprefix $(bin_path)/,$(cvd_host_executables)) \
Greg Hartmanf272ff62019-03-18 23:12:23 -070090 $(addprefix $(lib_path)/,$(cvd_host_shared_libraries)) \
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080091 $(foreach test,$(cvd_host_tests), ${tests_path}/$(test)/$(test)) \
92
Dan Willemsen0a4f58a2018-06-18 21:55:38 -070093$(cvd_host_package_tar): PRIVATE_FILES := $(cvd_host_package_files)
94$(cvd_host_package_tar): $(addprefix $(HOST_OUT)/,$(cvd_host_package_files))
95 $(hide) rm -rf $@ && tar Scfz $@.tmp -C $(HOST_OUT) $(PRIVATE_TAR_FORMAT) $(PRIVATE_FILES)
Ping-Hao Wu9e231ee2017-11-09 20:29:34 -080096 $(hide) mv $@.tmp $@