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

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: retry 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 166
167 if (is_chromeos && !is_official_build) { 167 if (use_cros_fe && !is_official_build) {
168 sources += 168 sources +=
169 rebase_path(gypi_values.chrome_browser_ui_chromeos_non_official_sources, 169 rebase_path(gypi_values.chrome_browser_ui_chromeos_non_official_sources,
170 ".", 170 ".",
171 "//chrome") 171 "//chrome")
172 } 172 }
173 173
174 if (is_chromeos) { 174 if (use_cros_fe) {
175 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources, 175 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources,
176 ".", 176 ".",
177 "//chrome") 177 "//chrome")
178 deps += [ "//chrome/browser/chromeos" ] 178 deps += [ "//chrome/browser/chromeos" ]
179 } else { 179 } else {
180 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources, 180 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources,
181 ".", 181 ".",
182 "//chrome") 182 "//chrome")
183 } 183 }
184 if (use_cups) { 184 if (use_cups) {
185 configs += [ "//printing:cups" ] 185 configs += [ "//printing:cups" ]
186 } 186 }
187 if (use_ash) { 187 if (use_ash) {
188 sources += 188 sources +=
189 rebase_path(gypi_values.chrome_browser_ui_ash_sources, ".", "//chrome") 189 rebase_path(gypi_values.chrome_browser_ui_ash_sources, ".", "//chrome")
190 deps += [ 190 deps += [
191 "//ash", 191 "//ash",
192 "//ash:ash_with_content", 192 "//ash:ash_with_content",
193 "//ash/strings", 193 "//ash/strings",
194 "//components/user_manager", 194 "//components/user_manager",
195 ] 195 ]
196 if (!is_chromeos) { 196 if (!use_cros_fe) {
197 sources += rebase_path(gypi_values.chrome_browser_ui_ash_non_chromeos, 197 sources += rebase_path(gypi_values.chrome_browser_ui_ash_non_chromeos,
198 ".", 198 ".",
199 "//chrome") 199 "//chrome")
200 } 200 }
201 } else { # Not ash. 201 } else { # Not ash.
202 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources, 202 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources,
203 ".", 203 ".",
204 "//chrome") 204 "//chrome")
205 } 205 }
206 if (toolkit_views) { 206 if (toolkit_views) {
207 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources, 207 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources,
208 ".", 208 ".",
209 "//chrome") 209 "//chrome")
210 deps += [ "//components/constrained_window" ] 210 deps += [ "//components/constrained_window" ]
211 211
212 if (enable_extensions) { 212 if (enable_extensions) {
213 deps += [ "//extensions/components/native_app_window" ] 213 deps += [ "//extensions/components/native_app_window" ]
214 } 214 }
215 215
216 if (!is_chromeos && (!is_mac || mac_views_browser)) { 216 if (!use_cros_fe && (!is_mac || mac_views_browser)) {
217 sources += 217 sources +=
218 rebase_path(gypi_values.chrome_browser_ui_views_non_chromeos_sources, 218 rebase_path(gypi_values.chrome_browser_ui_views_non_chromeos_sources,
219 ".", 219 ".",
220 "//chrome") 220 "//chrome")
221 } 221 }
222 if (!is_mac) { 222 if (!is_mac) {
223 sources += 223 sources +=
224 rebase_path(gypi_values.chrome_browser_ui_views_non_mac_sources, 224 rebase_path(gypi_values.chrome_browser_ui_views_non_mac_sources,
225 ".", 225 ".",
226 "//chrome") 226 "//chrome")
(...skipping 28 matching lines...) Expand all
255 sources += 255 sources +=
256 rebase_path(gypi_values.chrome_browser_ui_aura_sources, ".", "//chrome") 256 rebase_path(gypi_values.chrome_browser_ui_aura_sources, ".", "//chrome")
257 deps += [ 257 deps += [
258 # aura uses some of ash resources. 258 # aura uses some of ash resources.
259 "//ash/resources", 259 "//ash/resources",
260 "//ui/aura", 260 "//ui/aura",
261 "//ui/keyboard", 261 "//ui/keyboard",
262 "//ui/keyboard:resources", 262 "//ui/keyboard:resources",
263 "//ui/wm", 263 "//ui/wm",
264 ] 264 ]
265 if (!is_chromeos) { 265 if (!use_cros_fe) {
266 sources += rebase_path(gypi_values.chrome_browser_ui_aura_non_chromeos, 266 sources += rebase_path(gypi_values.chrome_browser_ui_aura_non_chromeos,
267 ".", 267 ".",
268 "//chrome") 268 "//chrome")
269 } 269 }
270 } 270 }
271 if (ui_compositor_image_transport) { 271 if (ui_compositor_image_transport) {
272 deps += [ "//ui/gl" ] 272 deps += [ "//ui/gl" ]
273 } 273 }
274 if (use_nss_certs) { 274 if (use_nss_certs) {
275 sources += 275 sources +=
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 if (use_aura) { 389 if (use_aura) {
390 configs += [ "//build/config/linux:fontconfig" ] 390 configs += [ "//build/config/linux:fontconfig" ]
391 deps += [ "//dbus" ] 391 deps += [ "//dbus" ]
392 } 392 }
393 if (use_x11) { 393 if (use_x11) {
394 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources, 394 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources,
395 ".", 395 ".",
396 "//chrome") 396 "//chrome")
397 configs += [ "//build/config/linux:x11" ] 397 configs += [ "//build/config/linux:x11" ]
398 deps += [ "//ui/events/devices" ] 398 deps += [ "//ui/events/devices" ]
399 if (is_chromeos) { 399 if (use_cros_fe) {
400 sources -= [ "views/tabs/window_finder_x11.cc" ] 400 sources -= [ "views/tabs/window_finder_x11.cc" ]
401 } 401 }
402 } 402 }
403 } 403 }
404 404
405 if (enable_app_list) { 405 if (enable_app_list) {
406 sources += rebase_path(gypi_values.chrome_browser_ui_app_list_sources, 406 sources += rebase_path(gypi_values.chrome_browser_ui_app_list_sources,
407 ".", 407 ".",
408 "//chrome") 408 "//chrome")
409 deps += [ "//ui/app_list" ] 409 deps += [ "//ui/app_list" ]
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 "//chrome/browser", 526 "//chrome/browser",
527 "//content/public/browser", 527 "//content/public/browser",
528 "//content/public/common", 528 "//content/public/common",
529 "//content/test:test_support", 529 "//content/test:test_support",
530 "//net:test_support", 530 "//net:test_support",
531 "//skia", 531 "//skia",
532 "//testing/gtest", 532 "//testing/gtest",
533 "//ui/base", 533 "//ui/base",
534 ] 534 ]
535 } 535 }
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