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

Side by Side Diff: content/shell/BUILD.gn

Issue 561623002: GN: Enable blink and (nearly) all of content in android build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « content/renderer/BUILD.gn ('k') | content/test/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 import("//tools/grit/repack.gni") 7 import("//tools/grit/repack.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 configs += [ "//build/config/linux:fontconfig" ] 257 configs += [ "//build/config/linux:fontconfig" ]
258 } 258 }
259 259
260 if (use_x11) { 260 if (use_x11) {
261 # Some tests rely on this tool at runtime. Note: it might be better if 261 # Some tests rely on this tool at runtime. Note: it might be better if
262 # the tests that needed it had this as a dep instead of adding it here. 262 # the tests that needed it had this as a dep instead of adding it here.
263 datadeps = [ "//tools/xdisplaycheck" ] 263 datadeps = [ "//tools/xdisplaycheck" ]
264 } 264 }
265 265
266 if (is_android) { 266 if (is_android) {
267 deps += [ ":content_shell_jni_headers" ] 267 deps += [ "//content/shell/android:content_shell_jni_headers" ]
268 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP) 268 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP)
269 } 269 }
270 270
271 if (is_posix && !is_mac && (!is_android || !is_android_webview_build)) { 271 if (is_posix && !is_mac && (!is_android || !is_android_webview_build)) {
272 deps += [ "//components/crash/browser" ] 272 deps += [ "//components/crash/browser" ]
273 } 273 }
274 274
275 if (use_aura) { 275 if (use_aura) {
276 deps += [ 276 deps += [
277 "//ui/aura", 277 "//ui/aura",
278 "//ui/aura:test_support", 278 "//ui/aura:test_support",
279 "//ui/events", 279 "//ui/events",
280 "//ui/strings", 280 "//ui/strings",
281 "//ui/wm", 281 "//ui/wm",
282 ] 282 ]
283 283
284 if (toolkit_views) { 284 if (toolkit_views) {
285 sources += [ "browser/shell_views.cc" ] 285 sources += [ "browser/shell_views.cc" ]
286 deps += [ 286 deps += [
287 "//ui/resources", 287 "//ui/resources",
288 "//ui/views/controls/webview", 288 "//ui/views/controls/webview",
289 "//ui/views", 289 "//ui/views",
290 "//ui/views:test_support", 290 "//ui/views:test_support",
291 ] 291 ]
292 } else { 292 } else {
293 sources += [ "browser/shell_aura.cc" ] 293 sources += [ "browser/shell_aura.cc" ]
294 } 294 }
295 } else {
296 sources -= [
297 "browser/shell_platform_data_aura.cc",
298 "browser/shell_platform_data_aura.h",
299 ]
295 } 300 }
296 301
297 # The test plugin relies on X11. 302 # The test plugin relies on X11.
298 if (is_linux && !use_x11) { 303 if (is_linux && !use_x11) {
299 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP) 304 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP)
300 } 305 }
301 306
302 if (is_chromeos) { 307 if (is_chromeos) {
303 deps += [ 308 deps += [
304 "//ui/wm:test_support", 309 "//ui/wm:test_support",
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 428
424 if (is_android) { 429 if (is_android) {
425 output = "$root_out_dir/content_shell/assets/content_shell.pak" 430 output = "$root_out_dir/content_shell/assets/content_shell.pak"
426 } else { 431 } else {
427 sources += [ "$root_gen_dir/webkit/devtools_resources.pak" ] 432 sources += [ "$root_gen_dir/webkit/devtools_resources.pak" ]
428 deps += [ "//content/browser/devtools:resources" ] 433 deps += [ "//content/browser/devtools:resources" ]
429 output = "$root_out_dir/content_shell.pak" 434 output = "$root_out_dir/content_shell.pak"
430 } 435 }
431 } 436 }
432 437
438 # TODO(GYP): Figure out what this should be on android
439 if (!is_android) {
440
433 executable("content_shell") { 441 executable("content_shell") {
434 testonly = true 442 testonly = true
435 # TODO(GYP) mac resource bundle stuff for this target. 443 # TODO(GYP) mac resource bundle stuff for this target.
436 # TODO(GYP) Windows content shell settings: 444 # TODO(GYP) Windows content shell settings:
437 # - Manifest. 445 # - Manifest.
438 # - RC file. 446 # - RC file.
439 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 447 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
440 sources = [ 448 sources = [
441 "../app/startup_helper_win.cc", 449 "../app/startup_helper_win.cc",
442 "app/shell_main.cc", 450 "app/shell_main.cc",
443 ] 451 ]
444 452
445 deps = [ 453 deps = [
446 ":content_shell_lib", 454 ":content_shell_lib",
447 ":pak", 455 ":pak",
448 "//base/allocator", 456 "//base/allocator",
449 "//third_party/mesa:osmesa",
450 ] 457 ]
451 458
452 if (is_win) { 459 if (is_win) {
453 deps += [ "//sandbox" ] 460 deps += [ "//sandbox" ]
454 if (!is_asan) { 461 if (!is_asan) {
455 configs -= [ "//build/config/win:console" ] 462 configs -= [ "//build/config/win:console" ]
456 configs += [ "//build/config/win:windowed" ] 463 configs += [ "//build/config/win:windowed" ]
457 } 464 }
458 } 465 }
459 466
460 if (is_mac) { 467 if (is_mac) {
461 # TODO(GYP) lots of stuff from GYP file here. 468 # TODO(GYP) lots of stuff from GYP file here.
462 } 469 }
463 470
464 if (!is_android || !is_android_webview_build) { 471 if (is_android && !is_android_webview_build) {
465 # Some tests rely on this tool. It might be nicer if these tests relied on 472 # Some tests rely on this tool. It might be nicer if these tests relied on
466 # image diff rather than having content shell depend on it. 473 # image diff rather than having content shell depend on it.
467 datadeps = [ 474 datadeps = [
468 "//tools/imagediff($host_toolchain)", 475 "//tools/imagediff($host_toolchain)",
469 ] 476 ]
470 } 477 }
471 } 478 }
479
480 }
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698