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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 "//net", | 316 "//net", |
317 "//services/service_manager/public/cpp", | 317 "//services/service_manager/public/cpp", |
318 "//third_party/mesa:osmesa", | 318 "//third_party/mesa:osmesa", |
319 "//ui/base", | 319 "//ui/base", |
320 "//ui/compositor", | 320 "//ui/compositor", |
321 "//ui/display", | 321 "//ui/display", |
322 "//ui/events/devices", | 322 "//ui/events/devices", |
323 "//url", | 323 "//url", |
324 ] | 324 ] |
325 | 325 |
326 if (!is_mac) { | 326 if (is_mac) { |
| 327 deps += [ ":mac_helpers" ] |
| 328 } else { |
327 deps += [ "//ui/aura" ] | 329 deps += [ "//ui/aura" ] |
328 } | 330 } |
329 | 331 |
330 if (enable_basic_printing) { | 332 if (enable_basic_printing) { |
331 deps += [ | 333 deps += [ |
332 "//components/printing/browser", | 334 "//components/printing/browser", |
333 "//components/printing/renderer", | 335 "//components/printing/renderer", |
334 ] | 336 ] |
335 } | 337 } |
336 | 338 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 repack("headless_browser_tests_pak") { | 408 repack("headless_browser_tests_pak") { |
407 sources = [ | 409 sources = [ |
408 "$root_gen_dir/headless/headless_browsertest_resources.pak", | 410 "$root_gen_dir/headless/headless_browsertest_resources.pak", |
409 ] | 411 ] |
410 output = "$root_out_dir/headless_browser_tests.pak" | 412 output = "$root_out_dir/headless_browser_tests.pak" |
411 deps = [ | 413 deps = [ |
412 ":headless_browsertest_resources_grit", | 414 ":headless_browsertest_resources_grit", |
413 ] | 415 ] |
414 } | 416 } |
415 | 417 |
| 418 if (is_mac) { |
| 419 copy("mac_helpers") { |
| 420 sources = [ |
| 421 "$root_out_dir/crashpad_handler", |
| 422 ] |
| 423 |
| 424 deps = [ |
| 425 "//third_party/crashpad/crashpad/handler:crashpad_handler", |
| 426 ] |
| 427 |
| 428 outputs = [ |
| 429 "$root_out_dir/Helpers/{{source_file_part}}", |
| 430 ] |
| 431 } |
| 432 } |
| 433 |
416 test("headless_browsertests") { | 434 test("headless_browsertests") { |
417 sources = [ | 435 sources = [ |
418 "lib/embedder_mojo_browsertest.cc", | 436 "lib/embedder_mojo_browsertest.cc", |
419 "lib/headless_browser_browsertest.cc", | 437 "lib/headless_browser_browsertest.cc", |
420 "lib/headless_browser_context_browsertest.cc", | 438 "lib/headless_browser_context_browsertest.cc", |
421 "lib/headless_devtools_client_browsertest.cc", | 439 "lib/headless_devtools_client_browsertest.cc", |
422 "lib/headless_web_contents_browsertest.cc", | 440 "lib/headless_web_contents_browsertest.cc", |
423 "public/util/dom_tree_extractor_browsertest.cc", | 441 "public/util/dom_tree_extractor_browsertest.cc", |
424 "public/util/flat_dom_tree_extractor_browsertest.cc", | 442 "public/util/flat_dom_tree_extractor_browsertest.cc", |
425 "public/util/protocol_handler_request_id_browsertest.cc", | 443 "public/util/protocol_handler_request_id_browsertest.cc", |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 | 523 |
506 executable("headless_example") { | 524 executable("headless_example") { |
507 sources = [ | 525 sources = [ |
508 "app/headless_example.cc", | 526 "app/headless_example.cc", |
509 ] | 527 ] |
510 | 528 |
511 deps = [ | 529 deps = [ |
512 "//headless:headless_shell_lib", | 530 "//headless:headless_shell_lib", |
513 ] | 531 ] |
514 } | 532 } |
OLD | NEW |