Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit71fb387

Browse files
committed
Add new cuttlefish-metrics package
Bug: 450053679
1 parent82d8f49 commit71fb387

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

‎base/cvd/cuttlefish/package/BUILD.bazel‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,12 @@ package_files(
141141
},
142142
visibility= ["//:android_cuttlefish"],
143143
)
144+
145+
package_files(
146+
name="metrics",
147+
executable="cuttlefish-metrics/bin/metrics_transmitter",
148+
package_file_to_src= {
149+
"cuttlefish-metrics/bin/metrics_transmitter":"//cuttlefish/host/commands/metrics:metrics_transmitter",
150+
},
151+
visibility= ["//:android_cuttlefish"],
152+
)

‎base/debian/control‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@ Architecture: any
105105
Depends: cuttlefish-base,
106106
Description: May potentially enable new or experimental cuttlefish
107107
features before being enabled by default.
108+
109+
Package: cuttlefish-metrics
110+
Architecture: any
111+
Depends: cuttlefish-base,
112+
Description: Enables metrics transmissions to Google.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/dh-exec
2+
[amd64] cvd/bazel-out/k8-opt/bin/cuttlefish/package/cuttlefish-metrics /usr/lib
3+
[arm64] cvd/bazel-out/aarch64-opt/bin/cuttlefish/package/cuttlefish-metrics /usr/lib

‎base/debian/rules‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ copts += --copt="-gdwarf-4"
5454
endif
5555

5656
cuttlefish_common := debian/cuttlefish-base/usr/lib/cuttlefish-common
57+
cuttlefish_metrics := debian/cuttlefish-metrics/usr/lib/cuttlefish-metrics
5758

5859
disk_cache_arg :=
5960
ifneq ($(strip ${BAZEL_DISK_CACHE_DIR}),)
@@ -76,7 +77,7 @@ override_dh_installinit:
7677
# the `--workspace_status_command` flag path depends on the current working directory of base/cvd
7778
.PHONY: override_dh_auto_build
7879
override_dh_auto_build:
79-
cd cvd&& bazel build${remote_cache_arg}${disk_cache_arg}${compilation_mode}${conlyopts}${copts}${cxxopts}${linkopts} -c opt'cuttlefish/package:cvd' --spawn_strategy=local --workspace_status_command=../stamp_helper.sh --build_tag_filters=-clang-tidy
80+
cd cvd&& bazel build${remote_cache_arg}${disk_cache_arg}${compilation_mode}${conlyopts}${copts}${cxxopts}${linkopts} -c opt'cuttlefish/package:cvd''cuttlefish/package:metrics'--spawn_strategy=local --workspace_status_command=../stamp_helper.sh --build_tag_filters=-clang-tidy
8081
dh_auto_build
8182

8283
# Only generate optimized DWARF if debug is enabled
@@ -95,6 +96,8 @@ override_dh_install:
9596
dh_install
9697
rm -rf${cuttlefish_common}/bin/cvd.repo_mapping
9798
rm -rf${cuttlefish_common}/bin/cvd.runfiles*
99+
rm -rf${cuttlefish_metrics}/bin/cvd.repo_mapping
100+
rm -rf${cuttlefish_metrics}/bin/cvd.runfiles*
98101

99102
# Repair output files bazel actions made executable
100103
.PHONY: override_dh_fixperms

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp