Removed more build targets from being built in embedded Chrome builds by default
Bug: 76169489
Change-Id: Iacae69758a0e20509cab00b33ec2c71dc21565a9
diff --git a/BUILD.gn b/BUILD.gn
index ce1eba4..39a4946 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -26,18 +26,15 @@
testonly = true # allow to build also test targets
deps = [
":perfetto_unittests",
- "src/ipc/protoc_plugin:ipc_plugin($host_toolchain)",
"src/protozero/protoc_plugin($host_toolchain)",
- "tools/proto_to_cpp",
]
- if (is_linux || is_android) {
- deps += [ "tools/ftrace_proto_gen:ftrace_proto_gen" ]
- }
if (!build_with_chromium) {
deps += [
"protos/perfetto/config:merged_config", # For syntax-checking the proto.
+ "src/ipc/protoc_plugin:ipc_plugin($host_toolchain)",
"test/configs",
"tools:protoc_helper",
+ "tools/proto_to_cpp",
"tools/trace_to_text",
]
if (is_linux || is_android) {
@@ -47,6 +44,7 @@
":perfetto_integrationtests",
":traced",
":traced_probes",
+ "tools/ftrace_proto_gen:ftrace_proto_gen",
"tools/skippy",
]
}
@@ -59,21 +57,24 @@
"gn:default_deps",
"gn:gtest_main",
"src/base:unittests",
- "src/ipc:unittests",
- "src/perfetto_cmd:unittests",
"src/protozero:unittests",
- "src/traced/probes/filesystem:unittests",
"src/tracing:unittests",
]
- if (is_linux || is_android) {
- deps += [
- "src/ftrace_reader:unittests",
- "src/traced/probes:unittests",
- "tools/ftrace_proto_gen:unittests",
- ]
- }
if (!build_with_chromium) {
- deps += [ "tools/sanitizers_unittests" ]
+ if (is_linux || is_android) {
+ deps += [
+ "src/ftrace_reader:unittests",
+ "src/traced/probes:unittests",
+ "tools/ftrace_proto_gen:unittests",
+ ]
+ }
+
+ deps += [
+ "src/ipc:unittests",
+ "src/perfetto_cmd:unittests",
+ "src/traced/probes/filesystem:unittests",
+ "tools/sanitizers_unittests",
+ ]
}
}