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

Side by Side Diff: headless/BUILD.gn

Issue 2049363003: Adds support for headless chrome embedder mojo services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored the JS for clarity Created 4 years, 6 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
« no previous file with comments | « no previous file | headless/DEPS » ('j') | headless/lib/browser/headless_web_contents_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//mojo/public/tools/bindings/mojom.gni")
5 import("//testing/test.gni") 6 import("//testing/test.gni")
6 import("//tools/grit/grit_rule.gni") 7 import("//tools/grit/grit_rule.gni")
7 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
8 9
9 config("headless_implementation") { 10 config("headless_implementation") {
10 defines = [ "HEADLESS_IMPLEMENTATION" ] 11 defines = [ "HEADLESS_IMPLEMENTATION" ]
11 } 12 }
12 13
13 group("headless") { 14 group("headless") {
14 deps = [ 15 deps = [
15 "//headless:headless_lib", 16 "//headless:headless_lib",
16 ] 17 ]
17 } 18 }
18 19
19 repack("pak") { 20 repack("pak") {
20 sources = [ 21 sources = [
21 "$root_gen_dir/blink/devtools_resources.pak", 22 "$root_gen_dir/blink/devtools_resources.pak",
22 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" , 23 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" ,
23 "$root_gen_dir/blink/public/resources/blink_resources.pak", 24 "$root_gen_dir/blink/public/resources/blink_resources.pak",
24 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", 25 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
25 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", 26 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
26 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", 27 "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
27 "$root_gen_dir/content/content_resources.pak", 28 "$root_gen_dir/content/content_resources.pak",
29 "$root_gen_dir/headless/headless_browsertest_resources.pak",
Sami 2016/06/20 16:58:16 Could we avoid packing this in to the release pak
alex clarke (OOO till 29th) 2016/06/20 23:19:13 Done.
28 "$root_gen_dir/headless/headless_lib_resources.pak", 30 "$root_gen_dir/headless/headless_lib_resources.pak",
29 "$root_gen_dir/net/net_resources.pak", 31 "$root_gen_dir/net/net_resources.pak",
30 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", 32 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
31 "$root_gen_dir/ui/resources/webui_resources.pak", 33 "$root_gen_dir/ui/resources/webui_resources.pak",
32 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", 34 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
33 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", 35 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
34 ] 36 ]
35 37
36 deps = [ 38 deps = [
39 ":headless_browsertest_resources_grit",
37 ":headless_lib_resources_grit", 40 ":headless_lib_resources_grit",
38 "//content:resources", 41 "//content:resources",
39 "//content/app/resources", 42 "//content/app/resources",
40 "//content/app/strings", 43 "//content/app/strings",
41 "//content/browser/devtools:resources", 44 "//content/browser/devtools:resources",
42 "//content/browser/tracing:resources", 45 "//content/browser/tracing:resources",
43 "//net:net_resources", 46 "//net:net_resources",
44 "//third_party/WebKit/public:image_resources", 47 "//third_party/WebKit/public:image_resources",
45 "//third_party/WebKit/public:resources", 48 "//third_party/WebKit/public:resources",
46 "//ui/resources", 49 "//ui/resources",
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 _stamp, 312 _stamp,
310 ] 313 ]
311 314
312 script = "lib/browser/client_api_generator_unittest.py" 315 script = "lib/browser/client_api_generator_unittest.py"
313 args = [ 316 args = [
314 "--stamp", 317 "--stamp",
315 rebase_path(_stamp, root_build_dir), 318 rebase_path(_stamp, root_build_dir),
316 ] 319 ]
317 } 320 }
318 321
322 mojom("embedder_mojo_for_testing") {
323 sources = [
324 "lib/embedder_test.mojom",
325 ]
326 }
327
328 grit("headless_browsertest_resources_grit") {
329 source = "lib/headless_browsertest_resources.grd"
330 outputs = [
331 "grit/headless_browsertest_resources.h",
332 "$root_gen_dir/headless/headless_browsertest_resources.pak",
333 ]
334 grit_flags = [
335 "-E",
336 "mojom_root=" + rebase_path(root_gen_dir),
337 ]
338 deps = [
339 ":embedder_mojo_for_testing__generator",
340 ]
341 resource_ids = "lib/headless_browsertest_resource_ids"
342 }
343
319 test("headless_browsertests") { 344 test("headless_browsertests") {
320 sources = [ 345 sources = [
346 "lib/embedder_mojo_browsertest.cc",
321 "lib/headless_browser_browsertest.cc", 347 "lib/headless_browser_browsertest.cc",
322 "lib/headless_devtools_client_browsertest.cc", 348 "lib/headless_devtools_client_browsertest.cc",
323 "lib/headless_web_contents_browsertest.cc", 349 "lib/headless_web_contents_browsertest.cc",
324 "test/headless_browser_test.cc", 350 "test/headless_browser_test.cc",
325 "test/headless_browser_test.h", 351 "test/headless_browser_test.h",
326 "test/headless_test_launcher.cc", 352 "test/headless_test_launcher.cc",
327 ] 353 ]
328 354
329 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 355 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
330 356
331 deps = [ 357 deps = [
358 ":embedder_mojo_for_testing",
332 "//base", 359 "//base",
333 "//content/test:browsertest_base", 360 "//content/test:browsertest_base",
334 "//content/test:test_support", 361 "//content/test:test_support",
335 "//headless:headless_lib", 362 "//headless:headless_lib",
336 "//testing/gmock", 363 "//testing/gmock",
337 "//testing/gtest", 364 "//testing/gtest",
338 ] 365 ]
339 } 366 }
340 367
341 executable("headless_shell") { 368 executable("headless_shell") {
342 sources = [ 369 sources = [
343 "app/headless_shell.cc", 370 "app/headless_shell.cc",
344 "app/headless_shell_switches.cc", 371 "app/headless_shell_switches.cc",
345 "app/headless_shell_switches.h", 372 "app/headless_shell_switches.h",
346 ] 373 ]
347 374
348 deps = [ 375 deps = [
349 "//headless:headless_lib", 376 "//headless:headless_lib",
350 ] 377 ]
351 } 378 }
OLDNEW
« no previous file with comments | « no previous file | headless/DEPS » ('j') | headless/lib/browser/headless_web_contents_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698