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("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/renderer/renderer.gni") | 7 import("//content/renderer/renderer.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 import("//third_party/webrtc/build/webrtc.gni") |
9 | 10 |
10 source_set("renderer") { | 11 source_set("renderer") { |
11 # Only the public target should depend on this. All other targets (even | 12 # Only the public target should depend on this. All other targets (even |
12 # internal content ones) should depend on the public one. | 13 # internal content ones) should depend on the public one. |
13 visibility = [ "//content/public/renderer:renderer_sources" ] | 14 visibility = [ "//content/public/renderer:renderer_sources" ] |
14 | 15 |
15 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 16 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, |
16 ".", | 17 ".", |
17 "//content") | 18 "//content") |
18 | 19 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 "//third_party/libjingle:libjingle_webrtc", | 164 "//third_party/libjingle:libjingle_webrtc", |
164 "//third_party/libjingle:libpeerconnection", | 165 "//third_party/libjingle:libpeerconnection", |
165 "//third_party/libjingle:libstunprober", | 166 "//third_party/libjingle:libstunprober", |
166 "//third_party/libvpx_new", | 167 "//third_party/libvpx_new", |
167 "//third_party/webrtc/base:rtc_base", | 168 "//third_party/webrtc/base:rtc_base", |
168 "//third_party/webrtc/common_video", | 169 "//third_party/webrtc/common_video", |
169 "//third_party/webrtc/modules/audio_device", | 170 "//third_party/webrtc/modules/audio_device", |
170 "//third_party/webrtc/modules/audio_processing", | 171 "//third_party/webrtc/modules/audio_processing", |
171 "//third_party/webrtc/system_wrappers", | 172 "//third_party/webrtc/system_wrappers", |
172 ] | 173 ] |
| 174 |
| 175 if (rtc_use_h264) { |
| 176 defines += [ "WEBRTC_USE_H264" ] |
| 177 } |
173 } else { | 178 } else { |
174 sources += [ | 179 sources += [ |
175 "media/webrtc_logging.h", | 180 "media/webrtc_logging.h", |
176 "media/webrtc_logging_noop.cc", | 181 "media/webrtc_logging_noop.cc", |
177 ] | 182 ] |
178 } | 183 } |
179 | 184 |
180 if (enable_plugins) { | 185 if (enable_plugins) { |
181 sources += rebase_path( | 186 sources += rebase_path( |
182 content_renderer_gypi_values.private_renderer_plugin_sources, | 187 content_renderer_gypi_values.private_renderer_plugin_sources, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 243 } |
239 | 244 |
240 if (use_seccomp_bpf) { | 245 if (use_seccomp_bpf) { |
241 defines += [ "USE_SECCOMP_BPF" ] | 246 defines += [ "USE_SECCOMP_BPF" ] |
242 } | 247 } |
243 | 248 |
244 if (use_ozone) { | 249 if (use_ozone) { |
245 deps += [ "//ui/ozone" ] | 250 deps += [ "//ui/ozone" ] |
246 } | 251 } |
247 } | 252 } |
OLD | NEW |