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

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: Seems we need a new OWNERS file 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",
28 "$root_gen_dir/headless/headless_lib_resources.pak",
29 "$root_gen_dir/net/net_resources.pak", 29 "$root_gen_dir/net/net_resources.pak",
30 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", 30 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
31 "$root_gen_dir/ui/resources/webui_resources.pak", 31 "$root_gen_dir/ui/resources/webui_resources.pak",
32 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", 32 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
33 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", 33 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
34 ] 34 ]
35 35
36 deps = [ 36 deps = [
37 ":headless_lib_resources_grit", 37 ":headless_lib_resources_grit",
38 "//content:resources", 38 "//content:resources",
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 _stamp, 309 _stamp,
310 ] 310 ]
311 311
312 script = "lib/browser/client_api_generator_unittest.py" 312 script = "lib/browser/client_api_generator_unittest.py"
313 args = [ 313 args = [
314 "--stamp", 314 "--stamp",
315 rebase_path(_stamp, root_build_dir), 315 rebase_path(_stamp, root_build_dir),
316 ] 316 ]
317 } 317 }
318 318
319 mojom("embedder_mojo_for_testing") {
320 sources = [
321 "lib/embedder_test.mojom",
322 ]
323 }
324
325 grit("headless_browsertest_resources_grit") {
326 source = "lib/headless_browsertest_resources.grd"
327 outputs = [
328 "grit/headless_browsertest_resources.h",
329 "$root_gen_dir/headless/headless_browsertest_resources.pak",
330 ]
331 grit_flags = [
332 "-E",
333 "mojom_root=" + rebase_path(root_gen_dir),
334 ]
335 deps = [
336 ":embedder_mojo_for_testing__generator",
337 ]
338 resource_ids = "lib/headless_browsertest_resource_ids"
339 }
340
341 repack("headless_browser_tests_pak") {
342 sources = [
343 "$root_gen_dir/headless/headless_browsertest_resources.pak",
344 ]
345 output = "$root_out_dir/headless_browser_tests.pak"
346 deps = [
347 ":headless_browsertest_resources_grit",
348 ]
349 }
350
319 test("headless_browsertests") { 351 test("headless_browsertests") {
320 sources = [ 352 sources = [
353 "lib/embedder_mojo_browsertest.cc",
321 "lib/headless_browser_browsertest.cc", 354 "lib/headless_browser_browsertest.cc",
322 "lib/headless_devtools_client_browsertest.cc", 355 "lib/headless_devtools_client_browsertest.cc",
323 "lib/headless_web_contents_browsertest.cc", 356 "lib/headless_web_contents_browsertest.cc",
324 "test/headless_browser_test.cc", 357 "test/headless_browser_test.cc",
325 "test/headless_browser_test.h", 358 "test/headless_browser_test.h",
326 "test/headless_test_launcher.cc", 359 "test/headless_test_launcher.cc",
327 ] 360 ]
328 361
362 data = [
363 "$root_out_dir/headless_browser_tests.pak",
364 ]
365
329 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 366 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
330 367
331 deps = [ 368 deps = [
369 ":embedder_mojo_for_testing",
370 ":headless_browser_tests_pak",
332 "//base", 371 "//base",
333 "//content/test:browsertest_base", 372 "//content/test:browsertest_base",
334 "//content/test:test_support", 373 "//content/test:test_support",
335 "//headless:headless_lib", 374 "//headless:headless_lib",
336 "//testing/gmock", 375 "//testing/gmock",
337 "//testing/gtest", 376 "//testing/gtest",
338 ] 377 ]
339 } 378 }
340 379
341 executable("headless_shell") { 380 executable("headless_shell") {
342 sources = [ 381 sources = [
343 "app/headless_shell.cc", 382 "app/headless_shell.cc",
344 "app/headless_shell_switches.cc", 383 "app/headless_shell_switches.cc",
345 "app/headless_shell_switches.h", 384 "app/headless_shell_switches.h",
346 ] 385 ]
347 386
348 deps = [ 387 deps = [
349 "//headless:headless_lib", 388 "//headless:headless_lib",
350 ] 389 ]
351 } 390 }
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