OLD | NEW |
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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 "//third_party/WebKit/public:test_support", | 259 "//third_party/WebKit/public:test_support", |
260 "//third_party/icu", | 260 "//third_party/icu", |
261 "//ui/base", | 261 "//ui/base", |
262 "//ui/events:events_base", | 262 "//ui/events:events_base", |
263 "//ui/gfx", | 263 "//ui/gfx", |
264 "//ui/gfx/geometry", | 264 "//ui/gfx/geometry", |
265 "//ui/gfx/ipc", | 265 "//ui/gfx/ipc", |
266 "//ui/gl", | 266 "//ui/gl", |
267 "//url", | 267 "//url", |
268 "//v8", | 268 "//v8", |
| 269 |
269 #'copy_test_netscape_plugin', TODO(GYP) | 270 #'copy_test_netscape_plugin', TODO(GYP) |
270 ] | 271 ] |
271 if (enable_plugins) { | 272 if (enable_plugins) { |
272 deps += [ "//content/ppapi_plugin" ] | 273 deps += [ "//content/ppapi_plugin" ] |
273 } | 274 } |
274 | 275 |
275 if (is_win) { | 276 if (is_win) { |
276 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP) | 277 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP) |
277 | 278 |
278 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 279 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
279 cflags = [ "/wd4267" ] | 280 cflags = [ "/wd4267" ] |
280 } | 281 } |
281 | 282 |
282 if (is_linux) { | 283 if (is_linux) { |
283 configs += [ "//build/config/linux:fontconfig" ] | 284 configs += [ "//build/config/linux:fontconfig" ] |
284 } | 285 } |
285 | 286 |
286 if (use_x11) { | 287 if (use_x11) { |
287 # Some tests rely on this tool at runtime. Note: it might be better if | 288 # Some tests rely on this tool at runtime. Note: it might be better if |
288 # the tests that needed it had this as a dep instead of adding it here. | 289 # the tests that needed it had this as a dep instead of adding it here. |
289 datadeps = [ "//tools/xdisplaycheck" ] | 290 datadeps = [ |
| 291 "//tools/xdisplaycheck", |
| 292 ] |
290 | 293 |
291 deps += [ "//ui/events/devices" ] | 294 deps += [ "//ui/events/devices" ] |
292 } | 295 } |
293 | 296 |
294 if (is_android) { | 297 if (is_android) { |
295 deps += [ "//content/shell/android:content_shell_jni_headers" ] | 298 deps += [ "//content/shell/android:content_shell_jni_headers" ] |
296 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP) | 299 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP) |
297 } | 300 } |
298 | 301 |
299 if (is_posix && !is_mac && (!is_android || !is_android_webview_build)) { | 302 if (is_posix && !is_mac && (!is_android || !is_android_webview_build)) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 visibility = [ ":*" ] | 358 visibility = [ ":*" ] |
356 source = "shell_resources.grd" | 359 source = "shell_resources.grd" |
357 outputs = [ | 360 outputs = [ |
358 "grit/shell_resources.h", | 361 "grit/shell_resources.h", |
359 "shell_resources.pak", | 362 "shell_resources.pak", |
360 "shell_resources.rc", | 363 "shell_resources.rc", |
361 ] | 364 ] |
362 } | 365 } |
363 | 366 |
364 copy("copy_shell_resources") { | 367 copy("copy_shell_resources") { |
365 sources = [ "$target_gen_dir/shell_resources.pak" ] | 368 sources = [ |
| 369 "$target_gen_dir/shell_resources.pak", |
| 370 ] |
366 outputs = [ "$root_out_dir/shell_resources.pak" ] | 371 outputs = [ "$root_out_dir/shell_resources.pak" ] |
367 | 372 |
368 public_deps = [ ":content_shell_resources_grit" ] | 373 public_deps = [ |
| 374 ":content_shell_resources_grit", |
| 375 ] |
369 } | 376 } |
370 | 377 |
371 # Font copies. | 378 # Font copies. |
372 if (!is_mac) { | 379 if (!is_mac) { |
373 copy("copy_ahem") { | 380 copy("copy_ahem") { |
374 visibility = [ ":*" ] | 381 visibility = [ ":*" ] |
375 sources = [ "renderer/test_runner/resources/fonts/AHEM____.TTF" ] | 382 sources = [ |
| 383 "renderer/test_runner/resources/fonts/AHEM____.TTF", |
| 384 ] |
376 outputs = [ "$root_out_dir/AHEM____.TTF" ] | 385 outputs = [ "$root_out_dir/AHEM____.TTF" ] |
377 } | 386 } |
378 } | 387 } |
379 if (use_x11) { | 388 if (use_x11) { |
380 copy("copy_x11_fonts") { | 389 copy("copy_x11_fonts") { |
381 visibility = [ ":*" ] | 390 visibility = [ ":*" ] |
382 sources = [ | 391 sources = [ |
383 "renderer/test_runner/resources/fonts/fonts.conf", | 392 "renderer/test_runner/resources/fonts/fonts.conf", |
384 "//third_party/gardiner_mod/GardinerModBug.ttf", | 393 "//third_party/gardiner_mod/GardinerModBug.ttf", |
385 "//third_party/gardiner_mod/GardinerModCat.ttf", | 394 "//third_party/gardiner_mod/GardinerModCat.ttf", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 ] | 463 ] |
455 | 464 |
456 sources += [ "$root_gen_dir/webkit/devtools_resources.pak" ] | 465 sources += [ "$root_gen_dir/webkit/devtools_resources.pak" ] |
457 deps += [ "//content/browser/devtools:resources" ] | 466 deps += [ "//content/browser/devtools:resources" ] |
458 output = "$root_out_dir/content_shell.pak" | 467 output = "$root_out_dir/content_shell.pak" |
459 } | 468 } |
460 | 469 |
461 # TODO(GYP): Figure out what this should be on android | 470 # TODO(GYP): Figure out what this should be on android |
462 # and make linking this work on the Mac. | 471 # and make linking this work on the Mac. |
463 if (!is_android && !is_mac) { | 472 if (!is_android && !is_mac) { |
| 473 executable("content_shell") { |
| 474 testonly = true |
464 | 475 |
465 executable("content_shell") { | 476 # TODO(GYP) mac resource bundle stuff for this target. |
466 testonly = true | 477 # TODO(GYP) Windows content shell settings: |
467 # TODO(GYP) mac resource bundle stuff for this target. | 478 # - Manifest. |
468 # TODO(GYP) Windows content shell settings: | 479 # - RC file. |
469 # - Manifest. | 480 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
470 # - RC file. | 481 sources = [ |
471 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 482 "../app/startup_helper_win.cc", |
472 sources = [ | 483 "app/shell_main.cc", |
473 "../app/startup_helper_win.cc", | 484 ] |
474 "app/shell_main.cc", | |
475 ] | |
476 | 485 |
477 deps = [ | 486 deps = [ |
478 ":content_shell_lib", | 487 ":content_shell_lib", |
479 ":pak", | 488 ":pak", |
480 "//base/allocator", | 489 "//base/allocator", |
481 ] | 490 ] |
482 | 491 |
483 if (is_win) { | 492 if (is_win) { |
484 deps += [ "//sandbox" ] | 493 deps += [ "//sandbox" ] |
485 if (!is_asan) { | 494 if (!is_asan) { |
486 configs -= [ "//build/config/win:console" ] | 495 configs -= [ "//build/config/win:console" ] |
487 configs += [ "//build/config/win:windowed" ] | 496 configs += [ "//build/config/win:windowed" ] |
| 497 } |
| 498 } |
| 499 |
| 500 if (is_mac) { |
| 501 # TODO(GYP) lots of stuff from GYP file here. |
| 502 } |
| 503 |
| 504 if (is_android && !is_android_webview_build) { |
| 505 # Some tests rely on this tool. It might be nicer if these tests relied on |
| 506 # image diff rather than having content shell depend on it. |
| 507 datadeps = [ |
| 508 "//tools/imagediff($host_toolchain)", |
| 509 ] |
488 } | 510 } |
489 } | 511 } |
490 | |
491 if (is_mac) { | |
492 # TODO(GYP) lots of stuff from GYP file here. | |
493 } | |
494 | |
495 if (is_android && !is_android_webview_build) { | |
496 # Some tests rely on this tool. It might be nicer if these tests relied on | |
497 # image diff rather than having content shell depend on it. | |
498 datadeps = [ | |
499 "//tools/imagediff($host_toolchain)", | |
500 ] | |
501 } | |
502 } | 512 } |
503 | |
504 } | |
OLD | NEW |