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

Side by Side Diff: chrome/BUILD.gn

Issue 1825603003: Reland of move configuration policy from chrome build files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy_chrome_defines
Patch Set: Created 4 years, 9 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/android/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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 if (is_win) { 306 if (is_win) {
307 output_name = "chrome" 307 output_name = "chrome"
308 308
309 deps += [ 309 deps += [
310 ":chrome_dll_manifest", 310 ":chrome_dll_manifest",
311 ":chrome_dll_version", 311 ":chrome_dll_version",
312 "//base/trace_event/etw_manifest:chrome_events_win", 312 "//base/trace_event/etw_manifest:chrome_events_win",
313 "//chrome/app/theme:chrome_unscaled_resources", 313 "//chrome/app/theme:chrome_unscaled_resources",
314 "//chrome_elf", 314 "//chrome_elf",
315 "//components/crash/content/app", 315 "//components/crash/content/app",
316 "//components/policy",
316 "//content/app/resources", 317 "//content/app/resources",
317 "//crypto", 318 "//crypto",
318 "//net:net_resources", 319 "//net:net_resources",
319 "//third_party/wtl", 320 "//third_party/wtl",
320 "//ui/views", 321 "//ui/views",
321 ] 322 ]
322 if (enable_configuration_policy) {
323 deps += [ "//components/policy" ]
324 }
325 if (current_cpu == "x86") { 323 if (current_cpu == "x86") {
326 # TODO(GYP) bug 512861: Lots of VCLinkerTool stuff on Windows. 324 # TODO(GYP) bug 512861: Lots of VCLinkerTool stuff on Windows.
327 #deps += [ 'chrome_user32_delay_imports' ] TODO(GYP) 325 #deps += [ 'chrome_user32_delay_imports' ] TODO(GYP)
328 } 326 }
329 327
330 if (!is_component_build) { 328 if (!is_component_build) {
331 # This is a large module that can't do incremental linking in some cases . 329 # This is a large module that can't do incremental linking in some cases .
332 configs -= [ "//build/config/win:default_incremental_linking" ] 330 configs -= [ "//build/config/win:default_incremental_linking" ]
333 configs += 331 configs +=
334 [ "//build/config/win:default_large_module_incremental_linking" ] 332 [ "//build/config/win:default_large_module_incremental_linking" ]
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 if (chrome_pgo_phase == 1) { 434 if (chrome_pgo_phase == 1) {
437 ldflags = [ 435 ldflags = [
438 "/LTCG:PGINSTRUMENT", 436 "/LTCG:PGINSTRUMENT",
439 "/PogoSafeMode", 437 "/PogoSafeMode",
440 ] 438 ]
441 } else if (chrome_pgo_phase == 2) { 439 } else if (chrome_pgo_phase == 2) {
442 ldflags = [ "/LTCG:PGOPTIMIZE" ] 440 ldflags = [ "/LTCG:PGOPTIMIZE" ]
443 } 441 }
444 } 442 }
445 443
446 if (enable_configuration_policy) { 444 deps += [ "//chrome/browser/policy:path_parser" ]
447 deps += [ "//chrome/browser/policy:path_parser" ]
448 }
449 445
450 if (enable_plugins && enable_pdf) { 446 if (enable_plugins && enable_pdf) {
451 deps += [ "//pdf" ] 447 deps += [ "//pdf" ]
452 } 448 }
453 } 449 }
454 } 450 }
455 } 451 }
456 452
457 # GYP version: chromium_browser_dependencies variable in chrome.gyp 453 # GYP version: chromium_browser_dependencies variable in chrome.gyp
458 group("browser_dependencies") { 454 group("browser_dependencies") {
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1104 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1109 "//chrome/tools/build/linux/chrome-wrapper", 1105 "//chrome/tools/build/linux/chrome-wrapper",
1110 "//third_party/xdg-utils/scripts/xdg-mime", 1106 "//third_party/xdg-utils/scripts/xdg-mime",
1111 "//third_party/xdg-utils/scripts/xdg-settings", 1107 "//third_party/xdg-utils/scripts/xdg-settings",
1112 ] 1108 ]
1113 outputs = [ 1109 outputs = [
1114 "$root_out_dir/{{source_file_part}}", 1110 "$root_out_dir/{{source_file_part}}",
1115 ] 1111 ]
1116 } 1112 }
1117 } 1113 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698