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

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

Issue 2009983002: Guard dbus component and config with assert(use_dbus) (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Remove unnecessary //dbus when //dbus:test_support exists Created 4 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/ui/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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 assert(enable_extensions) 8 assert(enable_extensions)
9 9
10 gypi_values = 10 gypi_values =
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ".", 92 ".",
93 "//chrome") 93 "//chrome")
94 } 94 }
95 95
96 if (is_chromeos) { 96 if (is_chromeos) {
97 sources += 97 sources +=
98 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources, 98 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources,
99 ".", 99 ".",
100 "//chrome") 100 "//chrome")
101 sources -= [ "api/music_manager_private/device_id_linux.cc" ] 101 sources -= [ "api/music_manager_private/device_id_linux.cc" ]
102 configs += [ "//build/config/linux/dbus" ] 102 if (use_dbus) {
103 configs += [ "//build/config/linux/dbus" ]
104 }
103 deps += [ 105 deps += [
104 "//components/chrome_apps", 106 "//components/chrome_apps",
105 "//remoting/host/it2me:common", 107 "//remoting/host/it2me:common",
106 "//third_party/protobuf:protobuf_lite", 108 "//third_party/protobuf:protobuf_lite",
107 ] 109 ]
108 } else { 110 } else {
109 sources += [ 111 sources += [
110 "default_apps.cc", 112 "default_apps.cc",
111 "default_apps.h'", 113 "default_apps.h'",
112 ] 114 ]
(...skipping 23 matching lines...) Expand all
136 "//ui/keyboard:keyboard_with_content", 138 "//ui/keyboard:keyboard_with_content",
137 "//ui/keyboard:resources", 139 "//ui/keyboard:resources",
138 ] 140 ]
139 } 141 }
140 142
141 if (toolkit_views) { 143 if (toolkit_views) {
142 deps += [ "//ui/views" ] 144 deps += [ "//ui/views" ]
143 } 145 }
144 146
145 if (is_linux) { 147 if (is_linux) {
146 deps += [ 148 deps += [ "//build/linux:fontconfig" ]
147 "//build/linux:fontconfig", 149
148 "//dbus", 150 if (use_dbus) {
149 ] 151 deps += [ "//dbus" ]
152 }
153
150 if (use_x11) { 154 if (use_x11) {
151 configs += [ "//build/config/linux:x11" ] 155 configs += [ "//build/config/linux:x11" ]
152 deps += [ 156 deps += [
153 "//ui/events:events_base", 157 "//ui/events:events_base",
154 "//ui/events/platform", 158 "//ui/events/platform",
155 "//ui/events/platform/x11", 159 "//ui/events/platform/x11",
156 ] 160 ]
157 } 161 }
158 if (!is_chromeos) { 162 if (!is_chromeos) {
159 sources += rebase_path( 163 sources += rebase_path(
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 "//chrome") 222 "//chrome")
219 } 223 }
220 224
221 if (is_chromeos && use_ozone) { 225 if (is_chromeos && use_ozone) {
222 sources -= [ "global_shortcut_listener_chromeos.cc" ] 226 sources -= [ "global_shortcut_listener_chromeos.cc" ]
223 } 227 }
224 if (!use_ozone) { 228 if (!use_ozone) {
225 sources -= [ "global_shortcut_listener_ozone.cc" ] 229 sources -= [ "global_shortcut_listener_ozone.cc" ]
226 } 230 }
227 } 231 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698