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

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: Rebase Created 4 years, 4 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 | « content/renderer/render_frame_impl.cc ('k') | headless/DEPS » ('j') | no next file with comments »
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 = [
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 "public/headless_browser.cc", 252 "public/headless_browser.cc",
252 "public/headless_browser.h", 253 "public/headless_browser.h",
253 "public/headless_browser_context.h", 254 "public/headless_browser_context.h",
254 "public/headless_devtools_client.h", 255 "public/headless_devtools_client.h",
255 "public/headless_devtools_host.h", 256 "public/headless_devtools_host.h",
256 "public/headless_devtools_target.h", 257 "public/headless_devtools_target.h",
257 "public/headless_export.h", 258 "public/headless_export.h",
258 "public/headless_web_contents.h", 259 "public/headless_web_contents.h",
259 "public/internal/message_dispatcher.h", 260 "public/internal/message_dispatcher.h",
260 "public/internal/value_conversions.h", 261 "public/internal/value_conversions.h",
262 "public/util/black_hole_protocol_handler.cc",
263 "public/util/black_hole_protocol_handler.h",
261 "public/util/error_reporter.cc", 264 "public/util/error_reporter.cc",
262 "public/util/error_reporter.h", 265 "public/util/error_reporter.h",
266 "public/util/in_memory_protocol_handler.cc",
267 "public/util/in_memory_protocol_handler.h",
268 "public/util/in_memory_request_job.cc",
269 "public/util/in_memory_request_job.h",
263 "public/util/user_agent.cc", 270 "public/util/user_agent.cc",
264 "public/util/user_agent.h", 271 "public/util/user_agent.h",
265 ] 272 ]
266 273
267 deps = [ 274 deps = [
268 ":gen_devtools_client_api", 275 ":gen_devtools_client_api",
269 ":pak", 276 ":pak",
270 "//base", 277 "//base",
271 "//components/devtools_http_handler", 278 "//components/devtools_http_handler",
272 "//content/public/app:both", 279 "//content/public/app:both",
273 "//content/public/browser", 280 "//content/public/browser",
274 "//content/public/child", 281 "//content/public/child",
275 "//content/public/common", 282 "//content/public/common",
276 "//content/public/renderer", 283 "//content/public/renderer",
277 "//content/public/utility", 284 "//content/public/utility",
278 "//net", 285 "//net",
286 "//services/shell/public/cpp",
279 "//third_party/mesa:osmesa", 287 "//third_party/mesa:osmesa",
280 "//ui/aura", 288 "//ui/aura",
281 "//ui/base", 289 "//ui/base",
282 "//ui/compositor", 290 "//ui/compositor",
283 "//ui/display", 291 "//ui/display",
284 "//ui/ozone", 292 "//ui/ozone",
285 "//url", 293 "//url",
286 ] 294 ]
287 295
288 configs += [ ":headless_implementation" ] 296 configs += [ ":headless_implementation" ]
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 _stamp, 330 _stamp,
323 ] 331 ]
324 332
325 script = "lib/browser/client_api_generator_unittest.py" 333 script = "lib/browser/client_api_generator_unittest.py"
326 args = [ 334 args = [
327 "--stamp", 335 "--stamp",
328 rebase_path(_stamp, root_build_dir), 336 rebase_path(_stamp, root_build_dir),
329 ] 337 ]
330 } 338 }
331 339
340 mojom("embedder_mojo_for_testing") {
341 sources = [
342 "lib/embedder_test.mojom",
343 ]
344 }
345
346 grit("headless_browsertest_resources_grit") {
347 source = "lib/headless_browsertest_resources.grd"
348 outputs = [
349 "grit/headless_browsertest_resources.h",
350 "$root_gen_dir/headless/headless_browsertest_resources.pak",
351 ]
352 grit_flags = [
353 "-E",
354 "mojom_root=" + rebase_path(root_gen_dir),
355 ]
356 deps = [
357 ":embedder_mojo_for_testing__generator",
358 ]
359 resource_ids = "lib/headless_browsertest_resource_ids"
360 }
361
362 repack("headless_browser_tests_pak") {
363 sources = [
364 "$root_gen_dir/headless/headless_browsertest_resources.pak",
365 ]
366 output = "$root_out_dir/headless_browser_tests.pak"
367 deps = [
368 ":headless_browsertest_resources_grit",
369 ]
370 }
371
332 test("headless_browsertests") { 372 test("headless_browsertests") {
333 sources = [ 373 sources = [
374 "lib/embedder_mojo_browsertest.cc",
334 "lib/headless_browser_browsertest.cc", 375 "lib/headless_browser_browsertest.cc",
335 "lib/headless_browser_context_browsertest.cc", 376 "lib/headless_browser_context_browsertest.cc",
336 "lib/headless_devtools_client_browsertest.cc", 377 "lib/headless_devtools_client_browsertest.cc",
337 "lib/headless_web_contents_browsertest.cc", 378 "lib/headless_web_contents_browsertest.cc",
338 "test/headless_browser_test.cc", 379 "test/headless_browser_test.cc",
339 "test/headless_browser_test.h", 380 "test/headless_browser_test.h",
340 "test/headless_test_launcher.cc", 381 "test/headless_test_launcher.cc",
341 "test/test_protocol_handler.cc", 382 "test/test_protocol_handler.cc",
342 "test/test_protocol_handler.h", 383 "test/test_protocol_handler.h",
343 "test/test_url_request_job.cc", 384 "test/test_url_request_job.cc",
344 "test/test_url_request_job.h", 385 "test/test_url_request_job.h",
345 ] 386 ]
346 387
388 data = [
389 "$root_out_dir/headless_browser_tests.pak",
390 ]
391
347 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 392 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
348 393
349 deps = [ 394 deps = [
395 ":embedder_mojo_for_testing",
396 ":headless_browser_tests_pak",
350 "//base", 397 "//base",
351 "//content/test:test_support", 398 "//content/test:test_support",
352 "//headless:headless_lib", 399 "//headless:headless_lib",
353 "//testing/gmock", 400 "//testing/gmock",
354 "//testing/gtest", 401 "//testing/gtest",
355 ] 402 ]
356 } 403 }
357 404
358 executable("headless_shell") { 405 executable("headless_shell") {
359 sources = [ 406 sources = [
360 "app/headless_shell.cc", 407 "app/headless_shell.cc",
361 "app/headless_shell_switches.cc", 408 "app/headless_shell_switches.cc",
362 "app/headless_shell_switches.h", 409 "app/headless_shell_switches.h",
363 ] 410 ]
364 411
365 deps = [ 412 deps = [
366 "//headless:headless_lib", 413 "//headless:headless_lib",
367 ] 414 ]
368 } 415 }
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | headless/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698