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("//content/renderer/renderer.gni") | 6 import("//content/renderer/renderer.gni") |
| 7 import("//third_party/webrtc/build/webrtc.gni") |
7 | 8 |
8 # See //content/BUILD.gn for how this works. | 9 # See //content/BUILD.gn for how this works. |
9 group("renderer") { | 10 group("renderer") { |
10 if (is_component_build) { | 11 if (is_component_build) { |
11 public_deps = [ | 12 public_deps = [ |
12 "//content", | 13 "//content", |
13 ] | 14 ] |
14 } else { | 15 } else { |
15 public_deps = [ | 16 public_deps = [ |
16 ":renderer_sources", | 17 ":renderer_sources", |
(...skipping 13 matching lines...) Expand all Loading... |
30 deps = [ | 31 deps = [ |
31 "//content/public/common:common_sources", | 32 "//content/public/common:common_sources", |
32 "//content/renderer", | 33 "//content/renderer", |
33 "//skia", | 34 "//skia", |
34 "//third_party/WebKit/public:blink_headers", | 35 "//third_party/WebKit/public:blink_headers", |
35 "//third_party/libjingle", | 36 "//third_party/libjingle", |
36 "//third_party/widevine/cdm:version_h", | 37 "//third_party/widevine/cdm:version_h", |
37 "//ui/gfx", | 38 "//ui/gfx", |
38 "//v8", | 39 "//v8", |
39 ] | 40 ] |
| 41 defines = [] |
40 | 42 |
41 allow_circular_includes_from = [ | 43 allow_circular_includes_from = [ |
42 # This target is a pair with content/renderer. They always go together and | 44 # This target is a pair with content/renderer. They always go together and |
43 # include headers from each other. | 45 # include headers from each other. |
44 "//content/renderer", | 46 "//content/renderer", |
45 ] | 47 ] |
46 | 48 |
47 if (enable_webrtc) { | 49 if (enable_webrtc) { |
48 sources += | 50 sources += |
49 rebase_path(content_renderer_gypi_values.public_renderer_webrtc_sources, | 51 rebase_path(content_renderer_gypi_values.public_renderer_webrtc_sources, |
50 ".", | 52 ".", |
51 "//content") | 53 "//content") |
52 deps += [ "//third_party/webrtc" ] | 54 deps += [ |
| 55 "//content/public/common:feature_h264_with_openh264_ffmpeg", |
| 56 "//third_party/webrtc", |
| 57 ] |
| 58 if (rtc_use_h264) { |
| 59 defines += [ "BUILDFLAG_RTC_USE_H264" ] |
| 60 } |
53 } | 61 } |
54 | 62 |
55 if (enable_plugins) { | 63 if (enable_plugins) { |
56 sources += | 64 sources += |
57 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, | 65 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, |
58 ".", | 66 ".", |
59 "//content") | 67 "//content") |
60 } | 68 } |
61 } | 69 } |
OLD | NEW |