| 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") | |
| 8 import("//content/renderer/renderer.gni") | 7 import("//content/renderer/renderer.gni") |
| 9 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 10 import("//third_party/webrtc/build/webrtc.gni") | 9 import("//third_party/webrtc/build/webrtc.gni") |
| 11 | 10 |
| 12 source_set("renderer") { | 11 source_set("renderer") { |
| 13 # 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 |
| 14 # internal content ones) should depend on the public one. | 13 # internal content ones) should depend on the public one. |
| 15 visibility = [ "//content/public/renderer:renderer_sources" ] | 14 visibility = [ "//content/public/renderer:renderer_sources" ] |
| 16 | 15 |
| 17 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 16 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, |
| 18 ".", | 17 ".", |
| 19 "//content") | 18 "//content") |
| 20 | 19 |
| 21 configs += [ | 20 configs += [ |
| 22 "//content:content_implementation", | 21 "//content:content_implementation", |
| 23 "//build/config/compiler:no_size_t_to_int_warning", | 22 "//build/config/compiler:no_size_t_to_int_warning", |
| 24 "//content/public/common:mojo_shell_client", | 23 "//content/public/common:mojo_shell_client", |
| 25 ] | 24 ] |
| 26 defines = [] | 25 defines = [] |
| 27 | 26 |
| 28 deps = [ | 27 deps = [ |
| 29 ":renderer_features", | |
| 30 "//base:i18n", | 28 "//base:i18n", |
| 31 "//cc", | 29 "//cc", |
| 32 "//cc/blink", | 30 "//cc/blink", |
| 33 "//cc/proto", | 31 "//cc/proto", |
| 34 "//cc/surfaces", | 32 "//cc/surfaces", |
| 35 "//cc/surfaces:surface_id", | 33 "//cc/surfaces:surface_id", |
| 36 "//components/scheduler:scheduler", | 34 "//components/scheduler:scheduler", |
| 37 "//components/url_formatter", | 35 "//components/url_formatter", |
| 38 "//components/webusb", | 36 "//components/webusb", |
| 39 "//content:resources", | 37 "//content:resources", |
| 40 "//content/common:mojo_bindings", | 38 "//content/common:mojo_bindings", |
| 41 "//content/public/child:child_sources", | 39 "//content/public/child:child_sources", |
| 42 "//content/public/common:common_sources", | 40 "//content/public/common:common_sources", |
| 41 "//content/public/common:feature_h264_with_openh264_ffmpeg", |
| 43 "//content/public/common:mojo_bindings", | 42 "//content/public/common:mojo_bindings", |
| 44 "//crypto:platform", | 43 "//crypto:platform", |
| 45 "//device/battery:mojo_bindings", | 44 "//device/battery:mojo_bindings", |
| 46 "//device/bluetooth", | 45 "//device/bluetooth", |
| 47 "//device/usb/public/interfaces", | 46 "//device/usb/public/interfaces", |
| 48 "//device/vibration:mojo_bindings", | 47 "//device/vibration:mojo_bindings", |
| 49 "//gin", | 48 "//gin", |
| 50 "//gpu", | 49 "//gpu", |
| 51 "//gpu/blink", | 50 "//gpu/blink", |
| 52 "//gpu/command_buffer/client:gles2_interface", | 51 "//gpu/command_buffer/client:gles2_interface", |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 "//third_party/webrtc/modules/audio_processing", | 167 "//third_party/webrtc/modules/audio_processing", |
| 169 "//third_party/webrtc/modules/video_coding:webrtc_h264", | 168 "//third_party/webrtc/modules/video_coding:webrtc_h264", |
| 170 "//third_party/webrtc/system_wrappers", | 169 "//third_party/webrtc/system_wrappers", |
| 171 ] | 170 ] |
| 172 } else { | 171 } else { |
| 173 sources += [ | 172 sources += [ |
| 174 "media/webrtc_logging.h", | 173 "media/webrtc_logging.h", |
| 175 "media/webrtc_logging_noop.cc", | 174 "media/webrtc_logging_noop.cc", |
| 176 ] | 175 ] |
| 177 } | 176 } |
| 177 if (rtc_use_h264) { |
| 178 defines += [ "BUILDFLAG_RTC_USE_H264" ] |
| 179 } |
| 178 | 180 |
| 179 if (enable_plugins) { | 181 if (enable_plugins) { |
| 180 sources += rebase_path( | 182 sources += rebase_path( |
| 181 content_renderer_gypi_values.private_renderer_plugin_sources, | 183 content_renderer_gypi_values.private_renderer_plugin_sources, |
| 182 ".", | 184 ".", |
| 183 "//content") | 185 "//content") |
| 184 deps += [ | 186 deps += [ |
| 185 "//ppapi/host", | 187 "//ppapi/host", |
| 186 "//ppapi/proxy", | 188 "//ppapi/proxy", |
| 187 "//ppapi/shared_impl", | 189 "//ppapi/shared_impl", |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 239 } |
| 238 | 240 |
| 239 if (use_seccomp_bpf) { | 241 if (use_seccomp_bpf) { |
| 240 defines += [ "USE_SECCOMP_BPF" ] | 242 defines += [ "USE_SECCOMP_BPF" ] |
| 241 } | 243 } |
| 242 | 244 |
| 243 if (use_ozone) { | 245 if (use_ozone) { |
| 244 deps += [ "//ui/ozone" ] | 246 deps += [ "//ui/ozone" ] |
| 245 } | 247 } |
| 246 } | 248 } |
| 247 | |
| 248 buildflag_header("renderer_features") { | |
| 249 header = "renderer_features.h" | |
| 250 | |
| 251 flags = [ "RTC_USE_H264=$rtc_use_h264" ] | |
| 252 } | |
| OLD | NEW |