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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 "//net", | 292 "//net", |
293 "//services/service_manager/public/cpp", | 293 "//services/service_manager/public/cpp", |
294 "//third_party/mesa:osmesa", | 294 "//third_party/mesa:osmesa", |
295 "//ui/base", | 295 "//ui/base", |
296 "//ui/compositor", | 296 "//ui/compositor", |
297 "//ui/display", | 297 "//ui/display", |
298 "//ui/events/devices", | 298 "//ui/events/devices", |
299 "//url", | 299 "//url", |
300 ] | 300 ] |
301 | 301 |
302 if (is_win) { | |
303 deps += [ | |
304 "//build/win:default_exe_manifest", | |
305 "//content:sandbox_helper_win", | |
306 "//sandbox", | |
307 ] | |
308 } | |
309 | |
310 if (!is_mac) { | 302 if (!is_mac) { |
311 deps += [ "//ui/aura" ] | 303 deps += [ "//ui/aura" ] |
312 } | 304 } |
313 | 305 |
314 if (headless_use_embedded_resources) { | 306 if (headless_use_embedded_resources) { |
315 deps += [ ":embed_resources" ] | 307 deps += [ ":embed_resources" ] |
316 sources += [ | 308 sources += [ |
317 "$root_gen_dir/headless/embedded_resource_pak.cc", | 309 "$root_gen_dir/headless/embedded_resource_pak.cc", |
318 "$root_gen_dir/headless/embedded_resource_pak.h", | 310 "$root_gen_dir/headless/embedded_resource_pak.h", |
319 ] | 311 ] |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 444 |
453 executable("headless_shell") { | 445 executable("headless_shell") { |
454 sources = [ | 446 sources = [ |
455 "app/headless_shell_main.cc", | 447 "app/headless_shell_main.cc", |
456 ] | 448 ] |
457 | 449 |
458 deps = [ | 450 deps = [ |
459 "//headless:headless_shell_lib", | 451 "//headless:headless_shell_lib", |
460 ] | 452 ] |
461 | 453 |
| 454 if (is_win) { |
| 455 deps += [ |
| 456 "//build/win:default_exe_manifest", |
| 457 "//content:sandbox_helper_win", |
| 458 "//sandbox", |
| 459 ] |
| 460 } |
| 461 |
462 configs += [ ":headless_implementation" ] | 462 configs += [ ":headless_implementation" ] |
463 } | 463 } |
464 | 464 |
465 process_version("version_header") { | 465 process_version("version_header") { |
466 template_file = "public/version.h.in" | 466 template_file = "public/version.h.in" |
467 sources = [ | 467 sources = [ |
468 "//build/util/LASTCHANGE", | 468 "//build/util/LASTCHANGE", |
469 "//chrome/VERSION", | 469 "//chrome/VERSION", |
470 ] | 470 ] |
471 output = "$target_gen_dir/public/version.h" | 471 output = "$target_gen_dir/public/version.h" |
472 } | 472 } |
473 | 473 |
474 executable("headless_example") { | 474 executable("headless_example") { |
475 sources = [ | 475 sources = [ |
476 "app/headless_example.cc", | 476 "app/headless_example.cc", |
477 ] | 477 ] |
478 | 478 |
479 deps = [ | 479 deps = [ |
480 "//headless:headless_shell_lib", | 480 "//headless:headless_shell_lib", |
481 ] | 481 ] |
482 } | 482 } |
OLD | NEW |