Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//headless/headless.gni") | 6 import("//headless/headless.gni") |
| 7 import("//build/util/process_version.gni") | 7 import("//build/util/process_version.gni") |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 "lib/browser/headless_window_parenting_client.h", | 282 "lib/browser/headless_window_parenting_client.h", |
| 283 "lib/browser/headless_window_tree_host.cc", | 283 "lib/browser/headless_window_tree_host.cc", |
| 284 "lib/browser/headless_window_tree_host.h", | 284 "lib/browser/headless_window_tree_host.h", |
| 285 ] | 285 ] |
| 286 } | 286 } |
| 287 | 287 |
| 288 deps = [ | 288 deps = [ |
| 289 ":gen_devtools_client_api", | 289 ":gen_devtools_client_api", |
| 290 ":version_header", | 290 ":version_header", |
| 291 "//base", | 291 "//base", |
| 292 "//components/crash/content/app:app", | |
| 292 "//components/crash/content/browser", | 293 "//components/crash/content/browser", |
| 293 "//components/security_state/content", | 294 "//components/security_state/content", |
| 294 "//components/security_state/core", | 295 "//components/security_state/core", |
| 295 "//content/public/app:both", | |
| 296 "//content/public/browser", | |
| 297 "//content/public/child:child", | |
| 298 "//content/public/common", | 296 "//content/public/common", |
| 299 "//content/public/common:service_names", | 297 "//content/public/common:service_names", |
| 300 "//net", | 298 "//net", |
| 301 "//services/service_manager/public/cpp", | 299 "//services/service_manager/public/cpp", |
| 302 "//third_party/mesa:osmesa", | 300 "//third_party/mesa:osmesa", |
| 303 "//ui/base", | 301 "//ui/base", |
| 304 "//ui/compositor", | 302 "//ui/compositor", |
| 305 "//ui/display", | 303 "//ui/display", |
| 306 "//ui/events/devices", | 304 "//ui/events/devices", |
| 307 "//url", | 305 "//url", |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 426 ":embedder_mojo_for_testing", | 424 ":embedder_mojo_for_testing", |
| 427 ":headless_browser_tests_pak", | 425 ":headless_browser_tests_pak", |
| 428 "//base", | 426 "//base", |
| 429 "//content/test:test_support", | 427 "//content/test:test_support", |
| 430 "//headless:headless_lib", | 428 "//headless:headless_lib", |
| 431 "//testing/gmock", | 429 "//testing/gmock", |
| 432 "//testing/gtest", | 430 "//testing/gtest", |
| 433 ] | 431 ] |
| 434 } | 432 } |
| 435 | 433 |
| 436 static_library("headless_shell_lib") { | 434 static_library("headless_shell_main_lib") { |
| 437 sources = [ | 435 sources = [ |
| 438 "app/headless_shell.cc", | 436 "app/headless_shell.cc", |
| 439 "app/headless_shell.h", | 437 "app/headless_shell.h", |
| 440 "app/headless_shell_switches.cc", | 438 "app/headless_shell_switches.cc", |
| 441 "app/headless_shell_switches.h", | 439 "app/headless_shell_switches.h", |
| 442 "app/shell_navigation_request.cc", | 440 "app/shell_navigation_request.cc", |
| 443 "app/shell_navigation_request.h", | 441 "app/shell_navigation_request.h", |
| 444 "public/headless_shell.h", | 442 "public/headless_shell.h", |
| 445 ] | 443 ] |
| 446 | 444 |
| 447 deps = [ | 445 deps = [ |
| 448 "//headless:headless_lib", | 446 ":headless_lib", |
| 447 "//content/public/browser", | |
| 448 "//content/public/common", | |
| 449 ] | 449 ] |
| 450 | 450 |
| 451 configs += [ ":headless_implementation" ] | 451 configs += [ ":headless_implementation" ] |
| 452 } | 452 } |
| 453 | 453 |
| 454 static_library("headless_shell_child_lib") { | |
| 455 sources = [ | |
| 456 "app/headless_shell.cc", | |
| 457 "app/headless_shell.h", | |
| 458 "app/headless_shell_switches.cc", | |
| 459 "app/headless_shell_switches.h", | |
| 460 "app/shell_navigation_request.cc", | |
| 461 "app/shell_navigation_request.h", | |
| 462 "public/headless_shell.h", | |
| 463 ] | |
| 464 | |
| 465 deps = [ | |
| 466 ":headless_lib", | |
| 467 "//content/public/child:child", | |
| 468 ] | |
| 469 } | |
| 470 | |
| 471 static_library("headless_shell_lib") { | |
| 472 sources = [ | |
| 473 "app/headless_shell.cc", | |
| 474 "app/headless_shell.h", | |
| 475 "app/headless_shell_switches.cc", | |
| 476 "app/headless_shell_switches.h", | |
| 477 "app/shell_navigation_request.cc", | |
| 478 "app/shell_navigation_request.h", | |
| 479 "public/headless_shell.h", | |
| 480 ] | |
| 481 | |
| 482 deps = [ | |
| 483 "//headless:headless_shell_child_lib", | |
|
alex clarke (OOO till 29th)
2017/03/20 08:41:29
Does the linker not complain about this? app/headl
dvallet
2017/03/22 07:14:17
It doesn't. I was thinking of adding all the depen
| |
| 484 "//headless:headless_shell_main_lib", | |
| 485 ] | |
| 486 | |
| 487 if (is_win) { | |
| 488 deps += [ | |
| 489 "//content:sandbox_helper_win", | |
| 490 "//sandbox", | |
| 491 ] | |
| 492 } | |
| 493 } | |
| 494 | |
| 454 executable("headless_shell") { | 495 executable("headless_shell") { |
| 455 sources = [ | 496 sources = [ |
| 456 "app/headless_shell_main.cc", | 497 "app/headless_shell_main.cc", |
| 457 ] | 498 ] |
| 458 | 499 |
| 459 deps = [ | 500 deps = [ |
| 460 "//headless:headless_shell_lib", | 501 ":headless_shell_lib", |
| 502 "//content/public/app:both", | |
| 461 ] | 503 ] |
| 462 | 504 |
| 463 if (is_win) { | 505 if (is_win) { |
| 464 deps += [ | 506 deps += [ |
| 465 "//build/win:default_exe_manifest", | 507 "//build/win:default_exe_manifest", |
| 466 "//content:sandbox_helper_win", | |
| 467 "//sandbox", | 508 "//sandbox", |
| 468 ] | 509 ] |
| 469 } | 510 } |
| 470 | 511 |
| 471 configs += [ ":headless_implementation" ] | 512 configs += [ ":headless_implementation" ] |
| 472 } | 513 } |
| 473 | 514 |
| 474 process_version("version_header") { | 515 process_version("version_header") { |
| 475 template_file = "public/version.h.in" | 516 template_file = "public/version.h.in" |
| 476 sources = [ | 517 sources = [ |
| 477 "//build/util/LASTCHANGE", | 518 "//build/util/LASTCHANGE", |
| 478 "//chrome/VERSION", | 519 "//chrome/VERSION", |
| 479 ] | 520 ] |
| 480 output = "$target_gen_dir/public/version.h" | 521 output = "$target_gen_dir/public/version.h" |
| 481 } | 522 } |
| 482 | 523 |
| 483 executable("headless_example") { | 524 executable("headless_example") { |
| 484 sources = [ | 525 sources = [ |
| 485 "app/headless_example.cc", | 526 "app/headless_example.cc", |
| 486 ] | 527 ] |
| 487 | 528 |
| 488 deps = [ | 529 deps = [ |
| 530 "//content/public/app:both", | |
| 489 "//headless:headless_shell_lib", | 531 "//headless:headless_shell_lib", |
| 490 ] | 532 ] |
| 533 | |
| 534 if (is_win) { | |
| 535 deps += [ | |
| 536 "//content:sandbox_helper_win", | |
| 537 "//sandbox", | |
| 538 ] | |
| 539 } | |
| 491 } | 540 } |
| OLD | NEW |