| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 "//extensions:extensions_resources", | 116 "//extensions:extensions_resources", |
| 117 "//extensions/renderer", | 117 "//extensions/renderer", |
| 118 "//media/cast:net", | 118 "//media/cast:net", |
| 119 "//media/cast:sender", | 119 "//media/cast:sender", |
| 120 "//media/cast/logging/proto", | 120 "//media/cast/logging/proto", |
| 121 ] | 121 ] |
| 122 if (!enable_webrtc) { |
| 123 sources -= [ |
| 124 "media/cast_rtp_stream.cc", |
| 125 "media/cast_rtp_stream.h", |
| 126 ] |
| 127 } |
| 122 } | 128 } |
| 123 if (enable_webrtc) { | 129 if (enable_webrtc) { |
| 124 sources += | 130 sources += |
| 125 rebase_path(gypi_values.chrome_renderer_webrtc_sources, ".", "..") | 131 rebase_path(gypi_values.chrome_renderer_webrtc_sources, ".", "..") |
| 126 } | 132 } |
| 127 if (enable_extensions && enable_webrtc) { | 133 if (enable_extensions && enable_webrtc) { |
| 128 sources += | 134 sources += |
| 129 rebase_path(gypi_values.chrome_renderer_webrtc_extensions_sources, | 135 rebase_path(gypi_values.chrome_renderer_webrtc_extensions_sources, |
| 130 ".", | 136 ".", |
| 131 "..") | 137 "..") |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 ] | 199 ] |
| 194 } | 200 } |
| 195 | 201 |
| 196 if (enable_webrtc) { | 202 if (enable_webrtc) { |
| 197 sources += [ | 203 sources += [ |
| 198 "media/mock_webrtc_logging_message_filter.cc", | 204 "media/mock_webrtc_logging_message_filter.cc", |
| 199 "media/mock_webrtc_logging_message_filter.h", | 205 "media/mock_webrtc_logging_message_filter.h", |
| 200 ] | 206 ] |
| 201 } | 207 } |
| 202 } | 208 } |
| OLD | NEW |