• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3cvd_host_package_tar := $(HOST_OUT)/cvd-host_package.tar.gz
4
5.PHONY: hosttar
6hosttar: $(cvd_host_package_tar)
7
8.PHONY: cf_local_image
9cf_local_image: bootimage cacheimage hosttar systemimage userdataimage vendorimage
10
11ifeq ($(HOST_OS),linux)
12CVD_TAR_FORMAT := --format=gnu
13endif
14
15# Build and store them on the build server.
16$(call dist-for-goals, dist_files, $(cvd_host_package_tar))
17
18bin_path := $(notdir $(HOST_OUT_EXECUTABLES))
19lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES))
20tests_path := $(notdir $(HOST_OUT_NATIVE_TESTS))
21
22cvd_host_executables := \
23    host_region_e2e_test \
24    launch_cvd \
25    socket_forward_proxy \
26    stop_cvd \
27    vnc_server \
28    wifi_relay \
29    record_audio \
30
31cvd_host_tests := \
32    auto_free_buffer_test \
33    circqueue_test \
34    cuttlefish_thread_test \
35    hald_client_test \
36    lock_test \
37    monotonic_time_test \
38    vsoc_graphics_test \
39
40cvd_host_shared_libraries := \
41    libbase \
42    vsoc_lib \
43    libcuttlefish_fs \
44    cuttlefish_auto_resources \
45    libcuttlefish_strings \
46    cuttlefish_tcp_socket \
47    liblog \
48    libnl \
49    libc++ \
50    libicuuc-host \
51
52cvd_host_configs := \
53    cuttlefish.dtb
54
55cvd_host_packages := \
56    cuttlefish_dtb \
57    $(cvd_host_executables) \
58    $(cvd_host_tests) \
59
60cvd_host_package_files := \
61     $(addprefix config/,$(cvd_host_configs)) \
62     $(addprefix $(bin_path)/,$(cvd_host_executables)) \
63     $(addprefix $(lib_path)/,$(addsuffix .so,$(cvd_host_shared_libraries))) \
64     $(foreach test,$(cvd_host_tests), ${tests_path}/$(test)/$(test)) \
65
66$(cvd_host_package_tar): $(cvd_host_packages)
67	$(hide) rm -rf $@ && tar Scfz $@.tmp -C $(HOST_OUT) $(CVD_TAR_FORMAT) $(cvd_host_package_files)
68	$(hide) mv $@.tmp $@
69