| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//chrome/common/features.gni") | 6 import("//chrome/common/features.gni") |
| 7 import("//ppapi/features/features.gni") | 7 import("//ppapi/features/features.gni") |
| 8 import("//printing/features/features.gni") | 8 import("//printing/features/features.gni") |
| 9 import("//services/catalog/public/tools/catalog.gni") |
| 9 import("//services/service_manager/public/service_manifest.gni") | 10 import("//services/service_manager/public/service_manifest.gni") |
| 10 import("//tools/grit/grit_rule.gni") | 11 import("//tools/grit/grit_rule.gni") |
| 11 | 12 |
| 12 # This target is for dependency tracking for the command ID header. | 13 # This target is for dependency tracking for the command ID header. |
| 13 source_set("command_ids") { | 14 source_set("command_ids") { |
| 14 sources = [ | 15 sources = [ |
| 15 "chrome_command_ids.h", | 16 "chrome_command_ids.h", |
| 16 ] | 17 ] |
| 17 } | 18 } |
| 18 | 19 |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 347 } |
| 347 | 348 |
| 348 if (enable_plugins && enable_nacl) { | 349 if (enable_plugins && enable_nacl) { |
| 349 deps += [ | 350 deps += [ |
| 350 "//components/nacl/browser", | 351 "//components/nacl/browser", |
| 351 "//components/nacl/renderer/plugin:nacl_trusted_plugin", | 352 "//components/nacl/renderer/plugin:nacl_trusted_plugin", |
| 352 ] | 353 ] |
| 353 } | 354 } |
| 354 } | 355 } |
| 355 | 356 |
| 356 service_manifest_overlay("chrome_content_browser_manifest_overlay") { | 357 service_manifest("chrome_content_browser_manifest_overlay") { |
| 357 source = "//chrome/browser/chrome_content_browser_manifest_overlay.json" | 358 source = "//chrome/browser/chrome_content_browser_manifest_overlay.json" |
| 358 packaged_services = [ | 359 packaged_services = [ |
| 359 "image_decoder", | |
| 360 "preferences", | |
| 361 ] | |
| 362 deps = [ | |
| 363 "//chrome/browser:preferences_manifest", | 360 "//chrome/browser:preferences_manifest", |
| 364 "//services/image_decoder:manifest", | 361 "//services/image_decoder:manifest", |
| 365 ] | 362 ] |
| 366 } | 363 } |
| 367 | 364 |
| 365 service_manifest("chrome_content_gpu_manifest_overlay") { |
| 366 source = "//chrome/browser/chrome_content_gpu_manifest_overlay.json" |
| 367 } |
| 368 |
| 369 service_manifest("chrome_content_plugin_manifest_overlay") { |
| 370 source = "//chrome/browser/chrome_content_plugin_manifest_overlay.json" |
| 371 } |
| 372 |
| 373 service_manifest("chrome_content_renderer_manifest_overlay") { |
| 374 source = "//chrome/browser/chrome_content_renderer_manifest_overlay.json" |
| 375 } |
| 376 |
| 377 service_manifest("chrome_content_utility_manifest_overlay") { |
| 378 source = "//chrome/browser/chrome_content_utility_manifest_overlay.json" |
| 379 } |
| 380 |
| 381 group("chrome_content_manifest_overlays") { |
| 382 deps = [ |
| 383 ":chrome_content_browser_manifest_overlay", |
| 384 ":chrome_content_gpu_manifest_overlay", |
| 385 ":chrome_content_plugin_manifest_overlay", |
| 386 ":chrome_content_renderer_manifest_overlay", |
| 387 ":chrome_content_utility_manifest_overlay", |
| 388 ] |
| 389 } |
| 390 |
| 368 if (use_aura) { | 391 if (use_aura) { |
| 369 # NOTE: These rules generate compiled versions of the content service | 392 # NOTE: These rules generate compiled versions of the content service |
| 370 # manifests with Chrome's overlays applied. These are only used at run-time, | 393 # manifests with Chrome's overlays applied. These are only used at run-time, |
| 371 # and only when running Chrome inside the Mash environment. In production | 394 # and only when running Chrome inside the Mash environment. In production |
| 372 # Chrome, the content manifests and Chrome's overlays are baked into browser | 395 # Chrome, the content manifests and Chrome's overlays are baked into browser |
| 373 # resources and merged at runtime. | 396 # resources and merged at runtime. |
| 374 | 397 |
| 375 service_manifest("chrome_content_browser_manifest") { | 398 service_manifest("chrome_content_browser_manifest") { |
| 376 name = "content_browser" | 399 source_manifest = "//content/public/app:browser_manifest" |
| 377 output_name = "chrome_content_browser" | 400 overlays = [ ":chrome_content_browser_manifest_overlay" ] |
| 378 source = "${root_out_dir}/Packages/content_browser/manifest.json" | |
| 379 overlays = | |
| 380 [ "${root_gen_dir}/chrome_content_browser_manifest_overlay.json" ] | |
| 381 deps = [ | |
| 382 ":chrome_content_browser_manifest_overlay", | |
| 383 "//content/public/app:browser_manifest", | |
| 384 ] | |
| 385 } | 401 } |
| 386 | 402 |
| 387 service_manifest("chrome_content_gpu_manifest") { | 403 service_manifest("chrome_content_gpu_manifest") { |
| 388 name = "content_gpu" | 404 source_manifest = "//content/public/app:gpu_manifest" |
| 389 output_name = "chrome_content_gpu" | 405 overlays = [ ":chrome_content_gpu_manifest_overlay" ] |
| 390 source = "${root_out_dir}/Packages/content_gpu/manifest.json" | |
| 391 overlays = [ "//chrome/browser/chrome_content_gpu_manifest_overlay.json" ] | |
| 392 deps = [ | |
| 393 "//content/public/app:gpu_manifest", | |
| 394 ] | |
| 395 } | 406 } |
| 396 | 407 |
| 397 service_manifest("chrome_content_plugin_manifest") { | 408 service_manifest("chrome_content_plugin_manifest") { |
| 398 name = "content_plugin" | 409 source_manifest = "//content/public/app:plugin_manifest" |
| 399 output_name = "chrome_content_plugin" | 410 overlays = [ ":chrome_content_plugin_manifest_overlay" ] |
| 400 source = "${root_out_dir}/Packages/content_plugin/manifest.json" | |
| 401 overlays = | |
| 402 [ "//chrome/browser/chrome_content_plugin_manifest_overlay.json" ] | |
| 403 deps = [ | |
| 404 "//content/public/app:plugin_manifest", | |
| 405 ] | |
| 406 } | 411 } |
| 407 | 412 |
| 408 service_manifest("chrome_content_renderer_manifest") { | 413 service_manifest("chrome_content_renderer_manifest") { |
| 409 name = "content_renderer" | 414 source_manifest = "//content/public/app:renderer_manifest" |
| 410 output_name = "chrome_content_renderer" | 415 overlays = [ ":chrome_content_renderer_manifest_overlay" ] |
| 411 source = "${root_out_dir}/Packages/content_renderer/manifest.json" | |
| 412 overlays = | |
| 413 [ "//chrome/browser/chrome_content_renderer_manifest_overlay.json" ] | |
| 414 deps = [ | |
| 415 "//content/public/app:renderer_manifest", | |
| 416 ] | |
| 417 } | 416 } |
| 418 | 417 |
| 419 service_manifest("chrome_content_utility_manifest") { | 418 service_manifest("chrome_content_utility_manifest") { |
| 420 name = "content_utility" | 419 source_manifest = "//content/public/app:utility_manifest" |
| 421 output_name = "chrome_content_utility" | 420 overlays = [ ":chrome_content_utility_manifest_overlay" ] |
| 422 source = "${root_out_dir}/Packages/content_utility/manifest.json" | |
| 423 overlays = | |
| 424 [ "//chrome/browser/chrome_content_utility_manifest_overlay.json" ] | |
| 425 deps = [ | |
| 426 "//content/public/app:utility_manifest", | |
| 427 ] | |
| 428 } | 421 } |
| 429 | 422 |
| 430 group("service_manifests") { | 423 group("service_manifests") { |
| 431 data_deps = [ | 424 data_deps = [ |
| 432 ":chrome_content_browser_manifest", | 425 ":chrome_content_browser_manifest", |
| 433 ":chrome_content_gpu_manifest", | 426 ":chrome_content_gpu_manifest", |
| 434 ":chrome_content_plugin_manifest", | 427 ":chrome_content_plugin_manifest", |
| 435 ":chrome_content_renderer_manifest", | 428 ":chrome_content_renderer_manifest", |
| 436 ":chrome_content_utility_manifest", | 429 ":chrome_content_utility_manifest", |
| 437 ] | 430 ] |
| 438 } | 431 } |
| 432 |
| 433 catalog("catalog") { |
| 434 embedded_services = [ |
| 435 ":chrome_content_browser_manifest", |
| 436 ":chrome_content_gpu_manifest", |
| 437 ":chrome_content_plugin_manifest", |
| 438 ":chrome_content_renderer_manifest", |
| 439 ":chrome_content_utility_manifest", |
| 440 ] |
| 441 } |
| 439 } | 442 } |
| OLD | NEW |