| 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("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 ] | 344 ] |
| 345 | 345 |
| 346 if (enable_basic_printing) { | 346 if (enable_basic_printing) { |
| 347 deps += [ | 347 deps += [ |
| 348 "//components/printing/browser", | 348 "//components/printing/browser", |
| 349 "//components/printing/renderer", | 349 "//components/printing/renderer", |
| 350 ] | 350 ] |
| 351 } | 351 } |
| 352 } | 352 } |
| 353 | 353 |
| 354 if (!is_mac) { | 354 if (is_mac) { |
| 355 deps += [ ":mac_helpers" ] |
| 356 } else { |
| 355 deps += [ "//ui/aura" ] | 357 deps += [ "//ui/aura" ] |
| 356 } | 358 } |
| 357 | 359 |
| 358 if (headless_use_embedded_resources) { | 360 if (headless_use_embedded_resources) { |
| 359 deps += [ ":embed_resources" ] | 361 deps += [ ":embed_resources" ] |
| 360 sources += [ | 362 sources += [ |
| 361 "$root_gen_dir/headless/embedded_resource_pak.cc", | 363 "$root_gen_dir/headless/embedded_resource_pak.cc", |
| 362 "$root_gen_dir/headless/embedded_resource_pak.h", | 364 "$root_gen_dir/headless/embedded_resource_pak.h", |
| 363 ] | 365 ] |
| 364 } else { | 366 } else { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 repack("headless_browser_tests_pak") { | 453 repack("headless_browser_tests_pak") { |
| 452 sources = [ | 454 sources = [ |
| 453 "$root_gen_dir/headless/headless_browsertest_resources.pak", | 455 "$root_gen_dir/headless/headless_browsertest_resources.pak", |
| 454 ] | 456 ] |
| 455 output = "$root_out_dir/headless_browser_tests.pak" | 457 output = "$root_out_dir/headless_browser_tests.pak" |
| 456 deps = [ | 458 deps = [ |
| 457 ":headless_browsertest_resources_grit", | 459 ":headless_browsertest_resources_grit", |
| 458 ] | 460 ] |
| 459 } | 461 } |
| 460 | 462 |
| 463 if (is_mac) { |
| 464 copy("mac_helpers") { |
| 465 sources = [ |
| 466 "$root_out_dir/crashpad_handler", |
| 467 ] |
| 468 |
| 469 deps = [ |
| 470 "//third_party/crashpad/crashpad/handler:crashpad_handler", |
| 471 ] |
| 472 |
| 473 outputs = [ |
| 474 "$root_out_dir/Helpers/{{source_file_part}}", |
| 475 ] |
| 476 } |
| 477 } |
| 478 |
| 461 test("headless_browsertests") { | 479 test("headless_browsertests") { |
| 462 sources = [ | 480 sources = [ |
| 463 "lib/embedder_mojo_browsertest.cc", | 481 "lib/embedder_mojo_browsertest.cc", |
| 464 "lib/headless_browser_browsertest.cc", | 482 "lib/headless_browser_browsertest.cc", |
| 465 "lib/headless_browser_context_browsertest.cc", | 483 "lib/headless_browser_context_browsertest.cc", |
| 466 "lib/headless_devtools_client_browsertest.cc", | 484 "lib/headless_devtools_client_browsertest.cc", |
| 467 "lib/headless_web_contents_browsertest.cc", | 485 "lib/headless_web_contents_browsertest.cc", |
| 468 "public/util/dom_tree_extractor_browsertest.cc", | 486 "public/util/dom_tree_extractor_browsertest.cc", |
| 469 "public/util/flat_dom_tree_extractor_browsertest.cc", | 487 "public/util/flat_dom_tree_extractor_browsertest.cc", |
| 470 "test/headless_browser_test.cc", | 488 "test/headless_browser_test.cc", |
| 471 "test/headless_browser_test.h", | 489 "test/headless_browser_test.h", |
| 472 "test/headless_test_launcher.cc", | 490 "test/headless_test_launcher.cc", |
| 473 "test/test_protocol_handler.cc", | 491 "test/test_protocol_handler.cc", |
| 474 "test/test_protocol_handler.h", | 492 "test/test_protocol_handler.h", |
| 475 "test/test_url_request_job.cc", | 493 "test/test_url_request_job.cc", |
| 476 "test/test_url_request_job.h", | 494 "test/test_url_request_job.h", |
| 477 ] | 495 ] |
| 478 | 496 |
| 479 data = [ | 497 data = [ |
| 480 "$root_out_dir/headless_browser_tests.pak", | 498 "$root_out_dir/headless_browser_tests.pak", |
| 481 "$root_out_dir/headless_lib.pak", | 499 "$root_out_dir/headless_lib.pak", |
| 482 "//net/tools/testserver/", | 500 "//net/tools/testserver/", |
| 483 "//third_party/pyftpdlib/", | 501 "//third_party/pyftpdlib/", |
| 484 "//third_party/pywebsocket/", | 502 "//third_party/pywebsocket/", |
| 485 "//third_party/skia/", | 503 "//third_party/skia/", |
| 486 "//third_party/tlslite/", | 504 "//third_party/tlslite/", |
| 487 "test/data/", | 505 "test/data/", |
| 488 ] | 506 ] |
| 489 | 507 |
| 508 if (is_mac) { |
| 509 data += [ "$root_out_dir/Helpers/crashpad_handler" ] |
| 510 } |
| 511 |
| 490 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 512 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 491 | 513 |
| 492 deps = [ | 514 deps = [ |
| 493 ":embedder_mojo_for_testing", | 515 ":embedder_mojo_for_testing", |
| 494 ":headless_browser_tests_pak", | 516 ":headless_browser_tests_pak", |
| 495 ":headless_renderer", | 517 ":headless_renderer", |
| 496 "//base", | 518 "//base", |
| 497 "//content/test:test_support", | 519 "//content/test:test_support", |
| 498 "//testing/gmock", | 520 "//testing/gmock", |
| 499 "//testing/gtest", | 521 "//testing/gtest", |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 | 636 |
| 615 executable("headless_example") { | 637 executable("headless_example") { |
| 616 sources = [ | 638 sources = [ |
| 617 "app/headless_example.cc", | 639 "app/headless_example.cc", |
| 618 ] | 640 ] |
| 619 | 641 |
| 620 deps = [ | 642 deps = [ |
| 621 ":headless_shell_lib", | 643 ":headless_shell_lib", |
| 622 ] | 644 ] |
| 623 } | 645 } |
| OLD | NEW |