| 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("//build/buildflag_header.gni") |
| 7 import("//content/renderer/renderer.gni") | 8 import("//content/renderer/renderer.gni") |
| 8 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
| 10 import("//third_party/webrtc/build/webrtc.gni") |
| 9 | 11 |
| 10 source_set("renderer") { | 12 source_set("renderer") { |
| 11 # Only the public target should depend on this. All other targets (even | 13 # Only the public target should depend on this. All other targets (even |
| 12 # internal content ones) should depend on the public one. | 14 # internal content ones) should depend on the public one. |
| 13 visibility = [ "//content/public/renderer:renderer_sources" ] | 15 visibility = [ "//content/public/renderer:renderer_sources" ] |
| 14 | 16 |
| 15 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 17 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, |
| 16 ".", | 18 ".", |
| 17 "//content") | 19 "//content") |
| 18 | 20 |
| 19 configs += [ | 21 configs += [ |
| 20 "//content:content_implementation", | 22 "//content:content_implementation", |
| 21 "//build/config/compiler:no_size_t_to_int_warning", | 23 "//build/config/compiler:no_size_t_to_int_warning", |
| 22 "//content/public/common:mojo_shell_client", | 24 "//content/public/common:mojo_shell_client", |
| 23 ] | 25 ] |
| 24 defines = [] | 26 defines = [] |
| 25 | 27 |
| 26 deps = [ | 28 deps = [ |
| 29 ":renderer_features", |
| 27 "//base:i18n", | 30 "//base:i18n", |
| 28 "//cc", | 31 "//cc", |
| 29 "//cc/blink", | 32 "//cc/blink", |
| 30 "//cc/proto", | 33 "//cc/proto", |
| 31 "//cc/surfaces", | 34 "//cc/surfaces", |
| 32 "//cc/surfaces:surface_id", | 35 "//cc/surfaces:surface_id", |
| 33 "//components/scheduler:scheduler", | 36 "//components/scheduler:scheduler", |
| 34 "//components/url_formatter", | 37 "//components/url_formatter", |
| 35 "//components/webusb", | 38 "//components/webusb", |
| 36 "//content:resources", | 39 "//content:resources", |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 deps += [ | 159 deps += [ |
| 157 "//crypto", | 160 "//crypto", |
| 158 "//third_party/libjingle:libjingle_webrtc", | 161 "//third_party/libjingle:libjingle_webrtc", |
| 159 "//third_party/libjingle:libpeerconnection", | 162 "//third_party/libjingle:libpeerconnection", |
| 160 "//third_party/libjingle:libstunprober", | 163 "//third_party/libjingle:libstunprober", |
| 161 "//third_party/libvpx_new", | 164 "//third_party/libvpx_new", |
| 162 "//third_party/webrtc/base:rtc_base", | 165 "//third_party/webrtc/base:rtc_base", |
| 163 "//third_party/webrtc/common_video", | 166 "//third_party/webrtc/common_video", |
| 164 "//third_party/webrtc/modules/audio_device", | 167 "//third_party/webrtc/modules/audio_device", |
| 165 "//third_party/webrtc/modules/audio_processing", | 168 "//third_party/webrtc/modules/audio_processing", |
| 169 "//third_party/webrtc/modules/video_coding:webrtc_h264", |
| 166 "//third_party/webrtc/system_wrappers", | 170 "//third_party/webrtc/system_wrappers", |
| 167 ] | 171 ] |
| 168 } else { | 172 } else { |
| 169 sources += [ | 173 sources += [ |
| 170 "media/webrtc_logging.h", | 174 "media/webrtc_logging.h", |
| 171 "media/webrtc_logging_noop.cc", | 175 "media/webrtc_logging_noop.cc", |
| 172 ] | 176 ] |
| 173 } | 177 } |
| 174 | 178 |
| 175 if (enable_plugins) { | 179 if (enable_plugins) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 } | 237 } |
| 234 | 238 |
| 235 if (use_seccomp_bpf) { | 239 if (use_seccomp_bpf) { |
| 236 defines += [ "USE_SECCOMP_BPF" ] | 240 defines += [ "USE_SECCOMP_BPF" ] |
| 237 } | 241 } |
| 238 | 242 |
| 239 if (use_ozone) { | 243 if (use_ozone) { |
| 240 deps += [ "//ui/ozone" ] | 244 deps += [ "//ui/ozone" ] |
| 241 } | 245 } |
| 242 } | 246 } |
| 247 |
| 248 buildflag_header("renderer_features") { |
| 249 header = "renderer_features.h" |
| 250 |
| 251 flags = [ "RTC_USE_H264=$rtc_use_h264" ] |
| 252 } |
| OLD | NEW |