Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: chrome/BUILD.gn

Issue 2922333002: cros: Run telemetry tests on mojo-cros fyi bot. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/compiler/pgo/pgo.gni") 7 import("//build/config/compiler/pgo/pgo.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 template("chrome_binary") { 129 template("chrome_binary") {
130 executable(target_name) { 130 executable(target_name) {
131 output_name = invoker.output_name 131 output_name = invoker.output_name
132 sources = invoker.sources 132 sources = invoker.sources
133 if (defined(invoker.deps)) { 133 if (defined(invoker.deps)) {
134 deps = invoker.deps 134 deps = invoker.deps
135 } else { 135 } else {
136 deps = [] 136 deps = []
137 } 137 }
138 if (defined(invoker.data)) {
139 data = invoker.data
140 } else {
141 data = []
142 }
138 143
139 if (!is_win || is_clang) { 144 if (!is_win || is_clang) {
140 # Normally, we need to pass specific flags to the linker to 145 # Normally, we need to pass specific flags to the linker to
141 # create an executable that gathers profile data. However, when 146 # create an executable that gathers profile data. However, when
142 # using MSVC, we need to make sure we *don't* pass /GENPROFILE 147 # using MSVC, we need to make sure we *don't* pass /GENPROFILE
143 # when linking without generating any code, or else the linker 148 # when linking without generating any code, or else the linker
144 # will give us fatal error LNK1264. So we add the PGO flags 149 # will give us fatal error LNK1264. So we add the PGO flags
145 # on all configurations, execpt MSVC on Windows. 150 # on all configurations, execpt MSVC on Windows.
146 configs += [ "//build/config/compiler/pgo:default_pgo_flags" ] 151 configs += [ "//build/config/compiler/pgo:default_pgo_flags" ]
147 } 152 }
148 153
149 # Because the sources list varies so significantly per-platform, generally 154 # Because the sources list varies so significantly per-platform, generally
150 # each platform lists its own files rather than relying on filtering or 155 # each platform lists its own files rather than relying on filtering or
151 # removing unused files. 156 # removing unused files.
152 sources += [ "app/chrome_exe_resource.h" ] 157 sources += [ "app/chrome_exe_resource.h" ]
153 defines = [] 158 defines = []
154 public_deps = [] 159 public_deps = []
155 deps += [ 160 deps += [
156 "//build/config:exe_and_shlib_deps", 161 "//build/config:exe_and_shlib_deps",
157 "//printing/features", 162 "//printing/features",
158 ] 163 ]
159 164
160 data = [ 165 data += [ "$root_out_dir/resources.pak" ]
161 "$root_out_dir/resources.pak",
162 ]
163 if (is_linux || is_win) { 166 if (is_linux || is_win) {
164 data += [ 167 data += [
165 "$root_out_dir/chrome_100_percent.pak", 168 "$root_out_dir/chrome_100_percent.pak",
166 "$root_out_dir/locales/en-US.pak", 169 "$root_out_dir/locales/en-US.pak",
167 "$root_out_dir/locales/fr.pak", 170 "$root_out_dir/locales/fr.pak",
168 ] 171 ]
169 } 172 }
170 173
171 data_deps = [] 174 data_deps = []
172 175
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 332
330 if (enable_package_mash_services) { 333 if (enable_package_mash_services) {
331 chrome_binary("chrome_test") { 334 chrome_binary("chrome_test") {
332 # Note that the output name needs to end with "chrome", because that's wha t 335 # Note that the output name needs to end with "chrome", because that's wha t
333 # telemetry test-runner expects. 336 # telemetry test-runner expects.
334 output_name = "test_chrome" 337 output_name = "test_chrome"
335 sources = [] 338 sources = []
336 deps = [ 339 deps = [
337 "//chrome/app/mash:chrome_test_catalog", 340 "//chrome/app/mash:chrome_test_catalog",
338 ] 341 ]
342 data = [
343 "$root_out_dir/chrome_200_percent.pak",
344 ]
339 if (!is_win && use_aura) { 345 if (!is_win && use_aura) {
340 sources += [ "app/chrome_test_exe_main_aura.cc" ] 346 sources += [ "app/chrome_test_exe_main_aura.cc" ]
341 } 347 }
342 } 348 }
343 } 349 }
344 } # !is_android && !is_mac 350 } # !is_android && !is_mac
345 351
346 if (is_win) { 352 if (is_win) {
347 # This target is a forwarding target to compile the necessary DLLs used 353 # This target is a forwarding target to compile the necessary DLLs used
348 # by Chrome. 354 # by Chrome.
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1809 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1804 "//chrome/tools/build/linux/chrome-wrapper", 1810 "//chrome/tools/build/linux/chrome-wrapper",
1805 "//third_party/xdg-utils/scripts/xdg-mime", 1811 "//third_party/xdg-utils/scripts/xdg-mime",
1806 "//third_party/xdg-utils/scripts/xdg-settings", 1812 "//third_party/xdg-utils/scripts/xdg-settings",
1807 ] 1813 ]
1808 outputs = [ 1814 outputs = [
1809 "$root_out_dir/{{source_file_part}}", 1815 "$root_out_dir/{{source_file_part}}",
1810 ] 1816 ]
1811 } 1817 }
1812 } 1818 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698