From 080afedc49089a7566e1691722b044d96d5753fc Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Tue, 18 Sep 2018 13:39:37 +0200 Subject: [PATCH] Do not compile frame_analyzer_host during Chromium builds. Bug: webrtc:9665 Change-Id: I42ff7a02664c3552ea31972a84f1d7d18cab13ac No-Try: True Reviewed-on: https://webrtc-review.googlesource.com/100805 Commit-Queue: Mirko Bonadei Reviewed-by: Oleh Prypin Cr-Commit-Position: refs/heads/master@{#24765} --- rtc_tools/BUILD.gn | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/rtc_tools/BUILD.gn b/rtc_tools/BUILD.gn index dcee868856..ae80585964 100644 --- a/rtc_tools/BUILD.gn +++ b/rtc_tools/BUILD.gn @@ -107,15 +107,17 @@ rtc_executable("frame_analyzer") { ] } -action("frame_analyzer_host") { - script = "//tools_webrtc/executable_host_build.py" - outputs = [ - "${root_out_dir}/frame_analyzer_host", - ] - args = [ - "--executable_name", - "frame_analyzer", - ] +if (!build_with_chromium && !build_with_mozilla) { + action("frame_analyzer_host") { + script = "//tools_webrtc/executable_host_build.py" + outputs = [ + "${root_out_dir}/frame_analyzer_host", + ] + args = [ + "--executable_name", + "frame_analyzer", + ] + } } # Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid