blob: d3128afb651cc15352f8b1897487b2ce848ead6d [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
5ifeq ($(HOST_OS),linux)
6CVD_TAR_FORMAT := --format=gnu
7endif
8
9# Build and store them on the build server.
10$(call dist-for-goals, dist_files, $(cvd_host_package_tar))
11
12bin_path := $(notdir $(HOST_OUT_EXECUTABLES))
13lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES))
14tests_path := $(notdir $(HOST_OUT_NATIVE_TESTS))
15
16cvd_host_executables := \
17 launch_cuttlefish \
18
19cvd_host_tests := \
20 auto_free_buffer_test \
21 circqueue_test \
22 cuttlefish_thread_test \
23 hald_client_test \
24 lock_test \
25 monotonic_time_test \
26 vsoc_graphics_test \
27
28cvd_host_shared_libraries := \
29 libc++ \
30 libicuuc-host \
31
32cvd_host_configs := \
33 vsoc_mem.json
34
35cvd_host_packages := \
36 vsoc_mem_json \
37 $(cvd_host_executables) \
38 $(cvd_host_tests) \
39
40cvd_host_package_files := \
41 $(addprefix config/,$(cvd_host_configs)) \
42 $(addprefix $(bin_path)/,$(cvd_host_executables)) \
43 $(addprefix $(lib_path)/,$(addsuffix .so,$(cvd_host_shared_libraries))) \
44 $(foreach test,$(cvd_host_tests), ${tests_path}/$(test)/$(test)) \
45
46$(cvd_host_package_tar): $(cvd_host_packages)
47 $(hide) rm -rf $@ && tar Scfz $@.tmp -C $(HOST_OUT) $(CVD_TAR_FORMAT) $(cvd_host_package_files)
48 $(hide) mv $@.tmp $@