| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
| 7 import("//ppapi/features/features.gni") | 7 import("//ppapi/features/features.gni") |
| 8 import("//content/content.gni") |
| 8 | 9 |
| 9 # See //content/BUILD.gn for how this works. | 10 # See //content/BUILD.gn for how this works. |
| 10 group("renderer") { | 11 group("renderer") { |
| 11 if (is_component_build) { | 12 if (is_component_build) { |
| 12 public_deps = [ | 13 public_deps = [ |
| 13 "//content", | 14 "//content", |
| 14 ] | 15 ] |
| 15 } else { | 16 } else { |
| 16 public_deps = [ | 17 public_deps = [ |
| 17 ":renderer_sources", | 18 ":renderer_sources", |
| 18 ] | 19 ] |
| 19 } | 20 } |
| 20 } | 21 } |
| 21 | 22 |
| 22 if (is_component_build) { | 23 content_component("renderer_sources") { |
| 23 link_target_type = "source_set" | |
| 24 } else { | |
| 25 link_target_type = "static_library" | |
| 26 } | |
| 27 target(link_target_type, "renderer_sources") { | |
| 28 # External code should depend on via ":renderer" above. | 24 # External code should depend on via ":renderer" above. |
| 29 visibility = [ "//content/*" ] | 25 visibility = [ "//content/*" ] |
| 30 | |
| 31 sources = [ | 26 sources = [ |
| 32 "associated_resource_fetcher.h", | 27 "associated_resource_fetcher.h", |
| 33 "browser_plugin_delegate.cc", | 28 "browser_plugin_delegate.cc", |
| 34 "browser_plugin_delegate.h", | 29 "browser_plugin_delegate.h", |
| 35 "chrome_object_extensions_utils.cc", | 30 "chrome_object_extensions_utils.cc", |
| 36 "chrome_object_extensions_utils.h", | 31 "chrome_object_extensions_utils.h", |
| 37 "content_renderer_client.cc", | 32 "content_renderer_client.cc", |
| 38 "content_renderer_client.h", | 33 "content_renderer_client.h", |
| 39 "context_menu_client.h", | 34 "context_menu_client.h", |
| 40 "document_state.cc", | 35 "document_state.cc", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 61 "render_view_visitor.h", | 56 "render_view_visitor.h", |
| 62 "renderer_gamepad_provider.h", | 57 "renderer_gamepad_provider.h", |
| 63 "renderer_ppapi_host.h", | 58 "renderer_ppapi_host.h", |
| 64 "resource_fetcher.h", | 59 "resource_fetcher.h", |
| 65 "seccomp_sandbox_status_android.h", | 60 "seccomp_sandbox_status_android.h", |
| 66 "video_encode_accelerator.cc", | 61 "video_encode_accelerator.cc", |
| 67 "video_encode_accelerator.h", | 62 "video_encode_accelerator.h", |
| 68 "window_features_converter.cc", | 63 "window_features_converter.cc", |
| 69 "window_features_converter.h", | 64 "window_features_converter.h", |
| 70 ] | 65 ] |
| 71 | |
| 72 configs += [ "//content:content_implementation" ] | 66 configs += [ "//content:content_implementation" ] |
| 73 | 67 |
| 74 public_deps = [ | 68 public_deps = [ |
| 75 "//media", | 69 "//media", |
| 76 ] | 70 ] |
| 77 | 71 |
| 78 deps = [ | 72 deps = [ |
| 79 "//content/public/child:child_sources", | 73 "//content/public/child:child_sources", |
| 80 "//content/public/common:common_sources", | 74 "//content/public/common:common_sources", |
| 81 "//content/renderer", | 75 "//content/renderer", |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 deps += [ | 117 deps += [ |
| 124 "//content/public/common:feature_h264_with_openh264_ffmpeg", | 118 "//content/public/common:feature_h264_with_openh264_ffmpeg", |
| 125 "//content/public/common:features", | 119 "//content/public/common:features", |
| 126 ] | 120 ] |
| 127 } | 121 } |
| 128 | 122 |
| 129 if (enable_plugins) { | 123 if (enable_plugins) { |
| 130 sources += [ "plugin_instance_throttler.h" ] | 124 sources += [ "plugin_instance_throttler.h" ] |
| 131 } | 125 } |
| 132 } | 126 } |
| OLD | NEW |