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

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

Issue 1291703008: Rename is_chromeos in chrome/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("../../chrome_browser_ui.gypi") ], 10 [ rebase_path("../../chrome_browser_ui.gypi") ],
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 "//chrome") 156 "//chrome")
157 deps += [ "//ppapi/proxy:ipc" ] 157 deps += [ "//ppapi/proxy:ipc" ]
158 } 158 }
159 if (safe_browsing_mode == 1) { 159 if (safe_browsing_mode == 1) {
160 deps += [ 160 deps += [
161 "//chrome/browser/safe_browsing:chunk_proto", 161 "//chrome/browser/safe_browsing:chunk_proto",
162 "//chrome/common/safe_browsing:proto", 162 "//chrome/common/safe_browsing:proto",
163 "//chrome/browser/safe_browsing:report_proto", 163 "//chrome/browser/safe_browsing:report_proto",
164 ] 164 ]
165 } 165 }
166 if (is_chromeos) { 166 if (is_chromeos_ui) {
167 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources, 167 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources,
168 ".", 168 ".",
169 "//chrome") 169 "//chrome")
170 deps += [ "//chrome/browser/chromeos" ] 170 deps += [ "//chrome/browser/chromeos" ]
171 } else { 171 } else {
172 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources, 172 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources,
173 ".", 173 ".",
174 "//chrome") 174 "//chrome")
175 } 175 }
176 if (use_cups) { 176 if (use_cups) {
177 configs += [ "//printing:cups" ] 177 configs += [ "//printing:cups" ]
178 } 178 }
179 if (use_ash) { 179 if (use_ash) {
180 sources += 180 sources +=
181 rebase_path(gypi_values.chrome_browser_ui_ash_sources, ".", "//chrome") 181 rebase_path(gypi_values.chrome_browser_ui_ash_sources, ".", "//chrome")
182 deps += [ 182 deps += [
183 "//ash", 183 "//ash",
184 "//ash:ash_with_content", 184 "//ash:ash_with_content",
185 "//ash/strings", 185 "//ash/strings",
186 "//components/user_manager", 186 "//components/user_manager",
187 ] 187 ]
188 if (!is_chromeos) { 188 if (!is_chromeos_ui) {
189 sources += rebase_path(gypi_values.chrome_browser_ui_ash_non_chromeos, 189 sources += rebase_path(gypi_values.chrome_browser_ui_ash_non_chromeos,
190 ".", 190 ".",
191 "//chrome") 191 "//chrome")
192 } 192 }
193 } else { # Not ash. 193 } else { # Not ash.
194 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources, 194 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources,
195 ".", 195 ".",
196 "//chrome") 196 "//chrome")
197 } 197 }
198 if (toolkit_views) { 198 if (toolkit_views) {
199 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources, 199 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources,
200 ".", 200 ".",
201 "//chrome") 201 "//chrome")
202 deps += [ "//components/constrained_window" ] 202 deps += [ "//components/constrained_window" ]
203 203
204 if (enable_extensions) { 204 if (enable_extensions) {
205 deps += [ "//extensions/components/native_app_window" ] 205 deps += [ "//extensions/components/native_app_window" ]
206 } 206 }
207 207
208 if (!is_chromeos && (!is_mac || mac_views_browser)) { 208 if (!is_chromeos_ui && (!is_mac || mac_views_browser)) {
209 sources += 209 sources +=
210 rebase_path(gypi_values.chrome_browser_ui_views_non_chromeos_sources, 210 rebase_path(gypi_values.chrome_browser_ui_views_non_chromeos_sources,
211 ".", 211 ".",
212 "//chrome") 212 "//chrome")
213 } 213 }
214 if (!is_mac) { 214 if (!is_mac) {
215 sources += 215 sources +=
216 rebase_path(gypi_values.chrome_browser_ui_views_non_mac_sources, 216 rebase_path(gypi_values.chrome_browser_ui_views_non_mac_sources,
217 ".", 217 ".",
218 "//chrome") 218 "//chrome")
219 if (enable_extensions) { 219 if (enable_extensions) {
220 sources += rebase_path( 220 sources += rebase_path(
221 gypi_values.chrome_browser_ui_views_extensions_non_mac_sources, 221 gypi_values.chrome_browser_ui_views_extensions_non_mac_sources,
222 ".", 222 ".",
223 "//chrome") 223 "//chrome")
224 } 224 }
225 if (is_chromeos) { 225 if (is_chromeos_ui) {
226 # TODO(GYP): crbug.com/481629. These files should probably not be 226 # TODO(GYP): crbug.com/481629. These files should probably not be
227 # a part of ui_views_non_mac_sources at all. 227 # a part of ui_views_non_mac_sources at all.
228 sources -= [ 228 sources -= [
229 "views/frame/opaque_browser_frame_view.cc", 229 "views/frame/opaque_browser_frame_view.cc",
230 "views/frame/opaque_browser_frame_view.h", 230 "views/frame/opaque_browser_frame_view.h",
231 "views/frame/opaque_browser_frame_view_linux.cc", 231 "views/frame/opaque_browser_frame_view_linux.cc",
232 "views/frame/opaque_browser_frame_view_linux.h", 232 "views/frame/opaque_browser_frame_view_linux.h",
233 ] 233 ]
234 } 234 }
235 } 235 }
(...skipping 21 matching lines...) Expand all
257 sources += 257 sources +=
258 rebase_path(gypi_values.chrome_browser_ui_aura_sources, ".", "//chrome") 258 rebase_path(gypi_values.chrome_browser_ui_aura_sources, ".", "//chrome")
259 deps += [ 259 deps += [
260 # aura uses some of ash resources. 260 # aura uses some of ash resources.
261 "//ash/resources", 261 "//ash/resources",
262 "//ui/aura", 262 "//ui/aura",
263 "//ui/keyboard", 263 "//ui/keyboard",
264 "//ui/keyboard:resources", 264 "//ui/keyboard:resources",
265 "//ui/wm", 265 "//ui/wm",
266 ] 266 ]
267 if (!is_chromeos) { 267 if (!is_chromeos_ui) {
268 sources += rebase_path(gypi_values.chrome_browser_ui_aura_non_chromeos, 268 sources += rebase_path(gypi_values.chrome_browser_ui_aura_non_chromeos,
269 ".", 269 ".",
270 "//chrome") 270 "//chrome")
271 } 271 }
272 } 272 }
273 if (ui_compositor_image_transport) { 273 if (ui_compositor_image_transport) {
274 deps += [ "//ui/gl" ] 274 deps += [ "//ui/gl" ]
275 } 275 }
276 if (use_nss_certs) { 276 if (use_nss_certs) {
277 sources += 277 sources +=
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 if (use_aura) { 391 if (use_aura) {
392 configs += [ "//build/config/linux:fontconfig" ] 392 configs += [ "//build/config/linux:fontconfig" ]
393 deps += [ "//dbus" ] 393 deps += [ "//dbus" ]
394 } 394 }
395 if (use_x11) { 395 if (use_x11) {
396 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources, 396 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources,
397 ".", 397 ".",
398 "//chrome") 398 "//chrome")
399 configs += [ "//build/config/linux:x11" ] 399 configs += [ "//build/config/linux:x11" ]
400 deps += [ "//ui/events/devices" ] 400 deps += [ "//ui/events/devices" ]
401 if (is_chromeos) { 401 if (is_chromeos_ui) {
402 sources -= [ "views/tabs/window_finder_x11.cc" ] 402 sources -= [ "views/tabs/window_finder_x11.cc" ]
403 } 403 }
404 } 404 }
405 } 405 }
406 406
407 if (enable_app_list) { 407 if (enable_app_list) {
408 sources += rebase_path(gypi_values.chrome_browser_ui_app_list_sources, 408 sources += rebase_path(gypi_values.chrome_browser_ui_app_list_sources,
409 ".", 409 ".",
410 "//chrome") 410 "//chrome")
411 deps += [ "//ui/app_list" ] 411 deps += [ "//ui/app_list" ]
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 "//chrome/browser", 528 "//chrome/browser",
529 "//content/public/browser", 529 "//content/public/browser",
530 "//content/public/common", 530 "//content/public/common",
531 "//content/test:test_support", 531 "//content/test:test_support",
532 "//net:test_support", 532 "//net:test_support",
533 "//skia", 533 "//skia",
534 "//testing/gtest", 534 "//testing/gtest",
535 "//ui/base", 535 "//ui/base",
536 ] 536 ]
537 } 537 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox.gni ('k') | chrome/chrome_repack_locales.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698