| 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("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 | 7 |
| 8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 9 [ rebase_path("../chrome_renderer.gypi") ], | 9 [ rebase_path("../chrome_renderer.gypi") ], |
| 10 "scope", | 10 "scope", |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 defines += [ "MOBILE_SAFE_BROWSING" ] | 106 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 107 } | 107 } |
| 108 | 108 |
| 109 if (enable_extensions) { | 109 if (enable_extensions) { |
| 110 sources += | 110 sources += |
| 111 rebase_path(gypi_values.chrome_renderer_extensions_sources, ".", "..") | 111 rebase_path(gypi_values.chrome_renderer_extensions_sources, ".", "..") |
| 112 deps += [ | 112 deps += [ |
| 113 # TODO(hclam): See crbug.com/298380 for details. | 113 # TODO(hclam): See crbug.com/298380 for details. |
| 114 # We should isolate the APIs needed by the renderer. | 114 # We should isolate the APIs needed by the renderer. |
| 115 "//chrome/common/extensions/api", | 115 "//chrome/common/extensions/api", |
| 116 "//content/public/renderer", |
| 116 "//extensions:extensions_resources", | 117 "//extensions:extensions_resources", |
| 117 "//extensions/renderer", | 118 "//extensions/renderer", |
| 118 "//media/cast:net", | 119 "//media/cast:net", |
| 120 "//media/cast:receiver", |
| 119 "//media/cast:sender", | 121 "//media/cast:sender", |
| 120 "//media/cast/logging/proto", | 122 "//media/cast/logging/proto", |
| 121 ] | 123 ] |
| 122 if (!enable_webrtc) { | 124 if (!enable_webrtc) { |
| 123 sources -= [ | 125 sources -= [ |
| 124 "media/cast_rtp_stream.cc", | 126 "media/cast_rtp_stream.cc", |
| 125 "media/cast_rtp_stream.h", | 127 "media/cast_rtp_stream.h", |
| 128 "media/cast_receiver_session.cc", |
| 129 "media/cast_receiver_session.h", |
| 126 ] | 130 ] |
| 127 } | 131 } |
| 128 } | 132 } |
| 129 if (enable_webrtc) { | 133 if (enable_webrtc) { |
| 130 sources += | 134 sources += |
| 131 rebase_path(gypi_values.chrome_renderer_webrtc_sources, ".", "..") | 135 rebase_path(gypi_values.chrome_renderer_webrtc_sources, ".", "..") |
| 132 } | 136 } |
| 133 if (enable_extensions && enable_webrtc) { | 137 if (enable_extensions && enable_webrtc) { |
| 134 sources += | 138 sources += |
| 135 rebase_path(gypi_values.chrome_renderer_webrtc_extensions_sources, | 139 rebase_path(gypi_values.chrome_renderer_webrtc_extensions_sources, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 ] | 203 ] |
| 200 } | 204 } |
| 201 | 205 |
| 202 if (enable_webrtc) { | 206 if (enable_webrtc) { |
| 203 sources += [ | 207 sources += [ |
| 204 "media/mock_webrtc_logging_message_filter.cc", | 208 "media/mock_webrtc_logging_message_filter.cc", |
| 205 "media/mock_webrtc_logging_message_filter.h", | 209 "media/mock_webrtc_logging_message_filter.h", |
| 206 ] | 210 ] |
| 207 } | 211 } |
| 208 } | 212 } |
| OLD | NEW |