Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | cvd_host_package_tar := $(HOST_OUT)/cvd-host_package.tar.gz |
| 4 | |
Greg Hartman | 257abd3 | 2017-12-20 22:16:24 -0800 | [diff] [blame] | 5 | .PHONY: hosttar |
| 6 | hosttar: $(cvd_host_package_tar) |
| 7 | |
Greg Hartman | 0e88a5d | 2019-02-20 10:45:42 -0800 | [diff] [blame] | 8 | # Build this by default when a developer types make |
| 9 | droidcore: $(cvd_host_package_tar) |
| 10 | |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 11 | # Build and store them on the build server. |
| 12 | $(call dist-for-goals, dist_files, $(cvd_host_package_tar)) |
| 13 | |
| 14 | bin_path := $(notdir $(HOST_OUT_EXECUTABLES)) |
| 15 | lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES)) |
| 16 | tests_path := $(notdir $(HOST_OUT_NATIVE_TESTS)) |
Jorge E. Moreira | 1f65a4a | 2019-11-08 15:23:32 -0800 | [diff] [blame] | 17 | webrtc_files_path := usr/share/webrtc |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 18 | |
| 19 | cvd_host_executables := \ |
Greg Hartman | 7a97b15 | 2018-08-29 22:51:56 -0700 | [diff] [blame] | 20 | adb \ |
Ryan Haining | b411f04 | 2018-07-13 14:05:49 -0700 | [diff] [blame] | 21 | adbshell \ |
Greg Hartman | 6e78bf5 | 2017-11-11 12:03:39 -0800 | [diff] [blame] | 22 | launch_cvd \ |
Isaac Chen | 5ca6310 | 2019-06-05 13:58:49 +0800 | [diff] [blame] | 23 | lpmake \ |
| 24 | lpunpack \ |
Cody Schuffelen | 4a58ddc | 2018-12-17 18:55:19 -0800 | [diff] [blame] | 25 | socket_vsock_proxy \ |
Ryan Haining | 8ffc080 | 2018-06-29 19:02:49 -0700 | [diff] [blame] | 26 | adb_connector \ |
Jorge E. Moreira | 0aa6140 | 2018-04-25 18:18:43 -0700 | [diff] [blame] | 27 | stop_cvd \ |
Jorge E. Moreira | 20a6b1a | 2018-01-25 17:15:26 -0800 | [diff] [blame] | 28 | vnc_server \ |
Jorge E. Moreira | a635a26 | 2018-06-13 14:51:10 -0700 | [diff] [blame] | 29 | cf_qemu.sh \ |
Cody Schuffelen | 31fb1b7 | 2019-05-29 18:55:31 -0700 | [diff] [blame] | 30 | cf_bpttool \ |
Jorge E. Moreira | 3acf00e | 2018-07-26 16:40:29 -0700 | [diff] [blame] | 31 | kernel_log_monitor \ |
Jorge E. Moreira | 760857b | 2019-02-01 11:25:34 -0800 | [diff] [blame] | 32 | extract-vmlinux \ |
Jorge E. Moreira | e43220f | 2019-01-29 16:29:24 -0800 | [diff] [blame] | 33 | crosvm \ |
Greg Hartman | ab7954f | 2019-05-02 20:37:17 -0700 | [diff] [blame] | 34 | aarch64-linux-gnu/crosvm \ |
| 35 | aarch64-linux-gnu/libepoxy.so.0 \ |
| 36 | aarch64-linux-gnu/libgbm.so.1 \ |
| 37 | aarch64-linux-gnu/libminijail.so \ |
Iliyan Malchev | d86434b | 2020-01-30 22:50:56 -0800 | [diff] [blame] | 38 | aarch64-linux-gnu/libvirglrenderer.so.1 \ |
Greg Hartman | ab7954f | 2019-05-02 20:37:17 -0700 | [diff] [blame] | 39 | x86_64-linux-gnu/crosvm \ |
| 40 | x86_64-linux-gnu/libepoxy.so.0 \ |
| 41 | x86_64-linux-gnu/libgbm.so.1 \ |
| 42 | x86_64-linux-gnu/libminijail.so \ |
Jason Macnak | e781b43 | 2019-12-18 12:29:17 -0800 | [diff] [blame] | 43 | x86_64-linux-gnu/libvirglrenderer.so.1 \ |
Cody Schuffelen | c423e5d | 2019-09-16 19:49:45 +0000 | [diff] [blame] | 44 | logcat_receiver \ |
Jorge E. Moreira | f732009 | 2019-04-15 18:37:14 -0700 | [diff] [blame] | 45 | config_server \ |
Ram Muthiah | 3c1cc13 | 2019-04-24 16:23:14 -0700 | [diff] [blame] | 46 | tombstone_receiver \ |
Jorge E. Moreira | 90aa8cd | 2019-06-06 16:13:59 -0700 | [diff] [blame] | 47 | console_forwarder \ |
Cody Schuffelen | 411ee85 | 2019-08-27 13:08:54 -0700 | [diff] [blame] | 48 | assemble_cvd \ |
| 49 | run_cvd \ |
Cody Schuffelen | 7578be0 | 2019-10-23 11:20:32 -0700 | [diff] [blame] | 50 | cvd_status \ |
Jorge E. Moreira | e049b79 | 2019-12-18 18:17:48 -0800 | [diff] [blame] | 51 | webRTC \ |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 52 | |
| 53 | cvd_host_tests := \ |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 54 | monotonic_time_test \ |
Cody Schuffelen | b5f655d | 2018-07-27 19:10:04 -0700 | [diff] [blame] | 55 | cuttlefish_net_tests \ |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 56 | |
| 57 | cvd_host_shared_libraries := \ |
Greg Hartman | f272ff6 | 2019-03-18 23:12:23 -0700 | [diff] [blame] | 58 | libbase.so \ |
Greg Hartman | f272ff6 | 2019-03-18 23:12:23 -0700 | [diff] [blame] | 59 | libcuttlefish_fs.so \ |
Greg Hartman | f272ff6 | 2019-03-18 23:12:23 -0700 | [diff] [blame] | 60 | libcuttlefish_utils.so \ |
| 61 | cuttlefish_tcp_socket.so \ |
| 62 | cuttlefish_net.so \ |
| 63 | liblog.so \ |
| 64 | libnl.so \ |
| 65 | libc++.so \ |
Isaac Chen | 5ca6310 | 2019-06-05 13:58:49 +0800 | [diff] [blame] | 66 | liblp.so \ |
| 67 | libsparse-host.so \ |
| 68 | libcrypto-host.so \ |
| 69 | libcrypto_utils.so \ |
| 70 | libext4_utils.so \ |
| 71 | libz-host.so \ |
Greg Hartman | f272ff6 | 2019-03-18 23:12:23 -0700 | [diff] [blame] | 72 | libicuuc-host.so \ |
| 73 | libicui18n-host.so \ |
| 74 | libandroidicu-host.so \ |
Jorge E. Moreira | f732009 | 2019-04-15 18:37:14 -0700 | [diff] [blame] | 75 | libcuttlefish_device_config.so \ |
Cody Schuffelen | 87e9d40 | 2019-09-18 19:14:33 -0700 | [diff] [blame] | 76 | cdisk_spec.so \ |
| 77 | libprotobuf-cpp-full.so \ |
Cody Schuffelen | bd0b9bc | 2019-09-25 14:54:06 -0700 | [diff] [blame] | 78 | libziparchive.so \ |
Jorge E. Moreira | e049b79 | 2019-12-18 18:17:48 -0800 | [diff] [blame] | 79 | libvpx.so \ |
| 80 | libssl-host.so \ |
| 81 | libopus.so \ |
| 82 | libyuv.so \ |
Jorge E. Moreira | e049b79 | 2019-12-18 18:17:48 -0800 | [diff] [blame] | 83 | libjpeg.so \ |
Jorge E. Moreira | a0d64b4 | 2018-10-10 12:54:40 -0700 | [diff] [blame] | 84 | |
Jorge E. Moreira | 1f65a4a | 2019-11-08 15:23:32 -0800 | [diff] [blame] | 85 | webrtc_assets := \ |
| 86 | index.html \ |
| 87 | style.css \ |
| 88 | js/receive.js \ |
| 89 | js/logcat.js \ |
| 90 | |
| 91 | webrtc_certs := \ |
| 92 | server.crt \ |
| 93 | server.key \ |
| 94 | server.p12 \ |
| 95 | trusted.pem \ |
| 96 | |
| 97 | cvd_host_webrtc_files := \ |
| 98 | $(addprefix assets/,$(webrtc_assets)) \ |
| 99 | $(addprefix certs/,$(webrtc_certs)) \ |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 100 | |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 101 | cvd_host_package_files := \ |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 102 | $(addprefix $(bin_path)/,$(cvd_host_executables)) \ |
Greg Hartman | f272ff6 | 2019-03-18 23:12:23 -0700 | [diff] [blame] | 103 | $(addprefix $(lib_path)/,$(cvd_host_shared_libraries)) \ |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 104 | $(foreach test,$(cvd_host_tests), ${tests_path}/$(test)/$(test)) \ |
Jorge E. Moreira | 1f65a4a | 2019-11-08 15:23:32 -0800 | [diff] [blame] | 105 | $(addprefix $(webrtc_files_path)/,$(cvd_host_webrtc_files)) \ |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 106 | |
Dan Willemsen | 0a4f58a | 2018-06-18 21:55:38 -0700 | [diff] [blame] | 107 | $(cvd_host_package_tar): PRIVATE_FILES := $(cvd_host_package_files) |
| 108 | $(cvd_host_package_tar): $(addprefix $(HOST_OUT)/,$(cvd_host_package_files)) |
Elliott Hughes | 8793d7d | 2019-05-23 18:35:18 -0700 | [diff] [blame] | 109 | $(hide) rm -rf $@ && tar Scfz $@.tmp -C $(HOST_OUT) $(PRIVATE_FILES) |
Ping-Hao Wu | 9e231ee | 2017-11-09 20:29:34 -0800 | [diff] [blame] | 110 | $(hide) mv $@.tmp $@ |