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

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: Abandon (for now) the concice bindings. Add BINDINGS_POLICY_HEADLESS and headless-mojo:// 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
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",
Sami 2016/06/27 11:10:41 Did you mean to drop this?
alex clarke (OOO till 29th) 2016/06/27 11:35:52 Oops no.
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 "public/headless_browser_context.h", 243 "public/headless_browser_context.h",
244 "public/headless_devtools_client.h", 244 "public/headless_devtools_client.h",
245 "public/headless_devtools_host.h", 245 "public/headless_devtools_host.h",
246 "public/headless_devtools_target.h", 246 "public/headless_devtools_target.h",
247 "public/headless_export.h", 247 "public/headless_export.h",
248 "public/headless_web_contents.h", 248 "public/headless_web_contents.h",
249 "public/internal/message_dispatcher.h", 249 "public/internal/message_dispatcher.h",
250 "public/internal/value_conversions.h", 250 "public/internal/value_conversions.h",
251 "public/util/error_reporter.cc", 251 "public/util/error_reporter.cc",
252 "public/util/error_reporter.h", 252 "public/util/error_reporter.h",
253 "public/util/kv_map_protocol_handler.cc",
254 "public/util/kv_map_protocol_handler.h",
255 "public/util/kv_map_request_job.cc",
256 "public/util/kv_map_request_job.h",
253 ] 257 ]
254 258
255 deps = [ 259 deps = [
256 ":gen_devtools_client_api", 260 ":gen_devtools_client_api",
257 ":pak", 261 ":pak",
258 "//base", 262 "//base",
259 "//components/devtools_http_handler", 263 "//components/devtools_http_handler",
260 "//content/public/app:both", 264 "//content/public/app:both",
261 "//content/public/browser", 265 "//content/public/browser",
262 "//content/public/child", 266 "//content/public/child",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 _stamp, 313 _stamp,
310 ] 314 ]
311 315
312 script = "lib/browser/client_api_generator_unittest.py" 316 script = "lib/browser/client_api_generator_unittest.py"
313 args = [ 317 args = [
314 "--stamp", 318 "--stamp",
315 rebase_path(_stamp, root_build_dir), 319 rebase_path(_stamp, root_build_dir),
316 ] 320 ]
317 } 321 }
318 322
323 mojom("embedder_mojo_for_testing") {
324 sources = [
325 "lib/embedder_test.mojom",
326 ]
327 }
328
329 grit("headless_browsertest_resources_grit") {
330 source = "lib/headless_browsertest_resources.grd"
331 outputs = [
332 "grit/headless_browsertest_resources.h",
333 "$root_gen_dir/headless/headless_browsertest_resources.pak",
334 ]
335 grit_flags = [
336 "-E",
337 "mojom_root=" + rebase_path(root_gen_dir),
338 ]
339 deps = [
340 ":embedder_mojo_for_testing__generator",
341 ]
342 resource_ids = "lib/headless_browsertest_resource_ids"
343 }
344
345 repack("headless_browser_tests_pak") {
346 sources = [
347 "$root_gen_dir/headless/headless_browsertest_resources.pak",
348 ]
349 output = "$root_out_dir/headless_browser_tests.pak"
350 deps = [
351 ":headless_browsertest_resources_grit",
352 ]
353 }
354
319 test("headless_browsertests") { 355 test("headless_browsertests") {
320 sources = [ 356 sources = [
357 "lib/embedder_mojo_browsertest.cc",
321 "lib/headless_browser_browsertest.cc", 358 "lib/headless_browser_browsertest.cc",
322 "lib/headless_browser_context_browsertest.cc", 359 "lib/headless_browser_context_browsertest.cc",
323 "lib/headless_devtools_client_browsertest.cc", 360 "lib/headless_devtools_client_browsertest.cc",
324 "lib/headless_web_contents_browsertest.cc", 361 "lib/headless_web_contents_browsertest.cc",
325 "test/headless_browser_test.cc", 362 "test/headless_browser_test.cc",
326 "test/headless_browser_test.h", 363 "test/headless_browser_test.h",
327 "test/headless_test_launcher.cc", 364 "test/headless_test_launcher.cc",
328 "test/test_protocol_handler.cc", 365 "test/test_protocol_handler.cc",
329 "test/test_protocol_handler.h", 366 "test/test_protocol_handler.h",
330 "test/test_url_request_job.cc", 367 "test/test_url_request_job.cc",
331 "test/test_url_request_job.h", 368 "test/test_url_request_job.h",
332 ] 369 ]
333 370
371 data = [
372 "$root_out_dir/headless_browser_tests.pak",
373 ]
374
334 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 375 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
335 376
336 deps = [ 377 deps = [
378 ":embedder_mojo_for_testing",
379 ":headless_browser_tests_pak",
337 "//base", 380 "//base",
338 "//content/test:browsertest_base", 381 "//content/test:browsertest_base",
339 "//content/test:test_support", 382 "//content/test:test_support",
340 "//headless:headless_lib", 383 "//headless:headless_lib",
341 "//testing/gmock", 384 "//testing/gmock",
342 "//testing/gtest", 385 "//testing/gtest",
343 ] 386 ]
344 } 387 }
345 388
346 executable("headless_shell") { 389 executable("headless_shell") {
347 sources = [ 390 sources = [
348 "app/headless_shell.cc", 391 "app/headless_shell.cc",
349 "app/headless_shell_switches.cc", 392 "app/headless_shell_switches.cc",
350 "app/headless_shell_switches.h", 393 "app/headless_shell_switches.h",
351 ] 394 ]
352 395
353 deps = [ 396 deps = [
354 "//headless:headless_lib", 397 "//headless:headless_lib",
355 ] 398 ]
356 } 399 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698