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

Side by Side Diff: headless/BUILD.gn

Issue 2762593002: Add --headless flag to Windows (Closed)
Patch Set: fix headless_shell build Created 3 years, 9 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
OLDNEW
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
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",
Sami 2017/03/22 19:46:25 Why remove these? Only content/public/child seems
dvallet 2017/03/27 05:59:50 The issue is that chrome in windows has restrictio
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 "public/util/testing/fake_managed_dispatch_url_request_job.h", 347 "public/util/testing/fake_managed_dispatch_url_request_job.h",
350 ] 348 ]
351 349
352 deps = [ 350 deps = [
353 ":headless_lib", 351 ":headless_lib",
354 "//base/test:run_all_unittests", 352 "//base/test:run_all_unittests",
355 "//base/test:test_support", 353 "//base/test:test_support",
356 "//testing/gmock", 354 "//testing/gmock",
357 "//testing/gtest", 355 "//testing/gtest",
358 ] 356 ]
357
358 configs += [ ":headless_implementation" ]
359 } 359 }
360 360
361 mojom("embedder_mojo_for_testing") { 361 mojom("embedder_mojo_for_testing") {
362 sources = [ 362 sources = [
363 "lib/embedder_test.mojom", 363 "lib/embedder_test.mojom",
364 ] 364 ]
365 } 365 }
366 366
367 grit("headless_browsertest_resources_grit") { 367 grit("headless_browsertest_resources_grit") {
368 source = "lib/headless_browsertest_resources.grd" 368 source = "lib/headless_browsertest_resources.grd"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 deps = [ 425 deps = [
426 ":embedder_mojo_for_testing", 426 ":embedder_mojo_for_testing",
427 ":headless_browser_tests_pak", 427 ":headless_browser_tests_pak",
428 "//base", 428 "//base",
429 "//content/test:test_support", 429 "//content/test:test_support",
430 "//headless:headless_lib", 430 "//headless:headless_lib",
431 "//testing/gmock", 431 "//testing/gmock",
432 "//testing/gtest", 432 "//testing/gtest",
433 ] 433 ]
434
435 configs += [ ":headless_implementation" ]
Sami 2017/03/22 19:46:25 I don't think this should be on the testing target
dvallet 2017/03/27 05:59:50 Done
436 }
437
438 static_library("headless_shell_main_lib") {
439 sources = [
440 "app/headless_shell.cc",
441 "app/headless_shell.h",
442 "app/headless_shell_switches.cc",
443 "app/headless_shell_switches.h",
444 "app/shell_navigation_request.cc",
445 "app/shell_navigation_request.h",
446 "public/headless_shell.h",
447 ]
448
449 deps = [
450 ":headless_lib",
451 "//content/public/browser",
452 "//content/public/common",
453 ]
454
455 configs += [ ":headless_implementation" ]
456 }
457
458 static_library("headless_shell_child_lib") {
459 sources = [
460 "app/headless_shell.cc",
461 "app/headless_shell.h",
462 "app/headless_shell_switches.cc",
463 "app/headless_shell_switches.h",
464 "app/shell_navigation_request.cc",
465 "app/shell_navigation_request.h",
466 "public/headless_shell.h",
467 ]
468
469 deps = [
470 ":headless_lib",
471 "//content/public/child:child",
472 ]
434 } 473 }
435 474
436 static_library("headless_shell_lib") { 475 static_library("headless_shell_lib") {
437 sources = [ 476 sources = [
438 "app/headless_shell.cc", 477 "app/headless_shell.cc",
439 "app/headless_shell.h", 478 "app/headless_shell.h",
440 "app/headless_shell_switches.cc", 479 "app/headless_shell_switches.cc",
441 "app/headless_shell_switches.h", 480 "app/headless_shell_switches.h",
442 "app/shell_navigation_request.cc", 481 "app/shell_navigation_request.cc",
443 "app/shell_navigation_request.h", 482 "app/shell_navigation_request.h",
444 "public/headless_shell.h", 483 "public/headless_shell.h",
445 ] 484 ]
446 485
447 deps = [ 486 deps = [
448 "//headless:headless_lib", 487 "//headless:headless_shell_child_lib",
488 "//headless:headless_shell_main_lib",
449 ] 489 ]
450 490
491 if (is_win) {
492 deps += [
493 "//content:sandbox_helper_win",
494 "//sandbox",
495 ]
496 }
497
451 configs += [ ":headless_implementation" ] 498 configs += [ ":headless_implementation" ]
452 } 499 }
453 500
454 executable("headless_shell") { 501 executable("headless_shell") {
455 sources = [ 502 sources = [
456 "app/headless_shell_main.cc", 503 "app/headless_shell_main.cc",
457 ] 504 ]
458 505
459 deps = [ 506 deps = [
460 "//headless:headless_shell_lib", 507 ":headless_shell_lib",
508 "//content/public/app:both",
461 ] 509 ]
462 510
463 if (is_win) { 511 if (is_win) {
464 deps += [ 512 deps += [
465 "//build/win:default_exe_manifest", 513 "//build/win:default_exe_manifest",
466 "//content:sandbox_helper_win",
467 "//sandbox", 514 "//sandbox",
468 ] 515 ]
469 } 516 }
470 517
471 configs += [ ":headless_implementation" ] 518 configs += [ ":headless_implementation" ]
472 } 519 }
473 520
474 process_version("version_header") { 521 process_version("version_header") {
475 template_file = "public/version.h.in" 522 template_file = "public/version.h.in"
476 sources = [ 523 sources = [
477 "//build/util/LASTCHANGE", 524 "//build/util/LASTCHANGE",
478 "//chrome/VERSION", 525 "//chrome/VERSION",
479 ] 526 ]
480 output = "$target_gen_dir/public/version.h" 527 output = "$target_gen_dir/public/version.h"
481 } 528 }
482 529
483 executable("headless_example") { 530 executable("headless_example") {
484 sources = [ 531 sources = [
485 "app/headless_example.cc", 532 "app/headless_example.cc",
486 ] 533 ]
487 534
488 deps = [ 535 deps = [
536 "//content/public/app:both",
489 "//headless:headless_shell_lib", 537 "//headless:headless_shell_lib",
490 ] 538 ]
539
540 if (is_win) {
541 deps += [
542 "//content:sandbox_helper_win",
543 "//sandbox",
544 ]
545 }
546
547 configs += [ ":headless_implementation" ]
Sami 2017/03/22 19:46:25 Also this seems unnecessary -- the example isn't i
dvallet 2017/03/27 05:59:50 Done.
491 } 548 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698