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

Side by Side Diff: chrome/browser/ui/BUILD.gn

Issue 598353003: Handle the "debug_devtools" build arg in GN builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make use of the "debug_devtools" config added on the Blink side Created 6 years, 2 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 | « chrome/browser/devtools/BUILD.gn ('k') | no next file » | 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/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 8
9 gypi_values = exec_script( 9 gypi_values = exec_script(
10 "//build/gypi_to_gn.py", 10 "//build/gypi_to_gn.py",
11 [ rebase_path("../../chrome_browser_ui.gypi") ], 11 [ rebase_path("../../chrome_browser_ui.gypi") ],
12 "scope", 12 "scope",
13 [ "../../chrome_browser_ui.gypi" ]) 13 [ "../../chrome_browser_ui.gypi" ])
14 14
15 static_library("ui") { 15 static_library("ui") {
16 output_name = "browser_ui" 16 output_name = "browser_ui"
17 17
18 sources = [] 18 sources = []
19 defines = [] 19 defines = []
20 libs = [] 20 libs = []
21 21
22 configs += [ "//build/config/compiler:wexit_time_destructors" ] 22 configs += [
23 "//build/config/compiler:wexit_time_destructors",
24 "//third_party/WebKit/public:debug_devtools",
25 ]
23 26
24 # Since browser and browser_ui actually depend on each other, 27 # Since browser and browser_ui actually depend on each other,
25 # we must omit the dependency from browser_ui to browser. 28 # we must omit the dependency from browser_ui to browser.
26 # However, this means browser_ui and browser should more or less 29 # However, this means browser_ui and browser should more or less
27 # have the same dependencies. Once browser_ui is untangled from 30 # have the same dependencies. Once browser_ui is untangled from
28 # browser, then we can clean up these dependencies. 31 # browser, then we can clean up these dependencies.
29 public_deps = [ 32 public_deps = [
30 "//components/dom_distiller/core", 33 "//components/dom_distiller/core",
31 "//sync", 34 "//sync",
32 ] 35 ]
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 sources -= [ "views/task_manager_view.cc" ] 138 sources -= [ "views/task_manager_view.cc" ]
136 } 139 }
137 } 140 }
138 if (!enable_nacl) { 141 if (!enable_nacl) {
139 sources += rebase_path(gypi_values.chrome_browser_ui_nacl_sources, 142 sources += rebase_path(gypi_values.chrome_browser_ui_nacl_sources,
140 ".", "//chrome") 143 ".", "//chrome")
141 deps += [ 144 deps += [
142 #"//native_client/src/trusted/service_runtime/service_runtime.gyp:sel", T ODO(GYP) 145 #"//native_client/src/trusted/service_runtime/service_runtime.gyp:sel", T ODO(GYP)
143 ] 146 ]
144 } 147 }
145 if (debug_devtools) {
146 defines += [ "DEBUG_DEVTOOLS=1" ]
147 }
148 if (enable_configuration_policy) { 148 if (enable_configuration_policy) {
149 sources += rebase_path(gypi_values.chrome_browser_ui_policy_sources, 149 sources += rebase_path(gypi_values.chrome_browser_ui_policy_sources,
150 ".", "//chrome") 150 ".", "//chrome")
151 deps += [ "//components/policy" ] 151 deps += [ "//components/policy" ]
152 } 152 }
153 if (enable_plugins) { 153 if (enable_plugins) {
154 sources += rebase_path(gypi_values.chrome_browser_ui_plugin_sources, 154 sources += rebase_path(gypi_values.chrome_browser_ui_plugin_sources,
155 ".", "//chrome") 155 ".", "//chrome")
156 deps += [ "//ppapi:ppapi_ipc" ] 156 deps += [ "//ppapi:ppapi_ipc" ]
157 } 157 }
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 "//chrome/browser", 452 "//chrome/browser",
453 "//content/public/browser", 453 "//content/public/browser",
454 "//content/public/common", 454 "//content/public/common",
455 "//content/test:test_support", 455 "//content/test:test_support",
456 "//net:test_support", 456 "//net:test_support",
457 "//skia", 457 "//skia",
458 "//testing/gtest", 458 "//testing/gtest",
459 "//ui/base", 459 "//ui/base",
460 ] 460 ]
461 } 461 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698