Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Side by Side Diff: content/public/renderer/BUILD.gn

Issue 1673183002: Enable H.264 video WebRTC behind run-time flag and add WebRtcBrowserTest for H.264 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gyp/gn deps Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/buildflag_header.gni")
5 import("//build/config/features.gni") 6 import("//build/config/features.gni")
6 import("//content/renderer/renderer.gni") 7 import("//content/renderer/renderer.gni")
8 import("//third_party/webrtc/build/webrtc.gni")
7 9
8 # See //content/BUILD.gn for how this works. 10 # See //content/BUILD.gn for how this works.
9 group("renderer") { 11 group("renderer") {
10 if (is_component_build) { 12 if (is_component_build) {
11 public_deps = [ 13 public_deps = [
12 "//content", 14 "//content",
13 ] 15 ]
14 } else { 16 } else {
15 public_deps = [ 17 public_deps = [
16 ":renderer_sources", 18 ":renderer_sources",
17 ] 19 ]
18 } 20 }
19 } 21 }
20 22
23 buildflag_header("renderer_features") {
24 header = "renderer_features.h"
25
26 flags = [ "RTC_USE_H264=$rtc_use_h264" ]
27 }
28
21 source_set("renderer_sources") { 29 source_set("renderer_sources") {
22 visibility = [ "//content/*" ] 30 visibility = [ "//content/*" ]
23 31
24 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, 32 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources,
25 ".", 33 ".",
26 "//content") 34 "//content")
27 35
28 configs += [ "//content:content_implementation" ] 36 configs += [ "//content:content_implementation" ]
29 37
30 deps = [ 38 deps = [
(...skipping 11 matching lines...) Expand all
42 # This target is a pair with content/renderer. They always go together and 50 # This target is a pair with content/renderer. They always go together and
43 # include headers from each other. 51 # include headers from each other.
44 "//content/renderer", 52 "//content/renderer",
45 ] 53 ]
46 54
47 if (enable_webrtc) { 55 if (enable_webrtc) {
48 sources += 56 sources +=
49 rebase_path(content_renderer_gypi_values.public_renderer_webrtc_sources, 57 rebase_path(content_renderer_gypi_values.public_renderer_webrtc_sources,
50 ".", 58 ".",
51 "//content") 59 "//content")
52 deps += [ "//third_party/webrtc" ] 60 deps += [
61 "//content/public/renderer/media/webrtc:finch_h264_with_openh264_ffmpeg",
62 "//third_party/webrtc",
63 ]
53 } 64 }
54 65
55 if (enable_plugins) { 66 if (enable_plugins) {
56 sources += 67 sources +=
57 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, 68 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources,
58 ".", 69 ".",
59 "//content") 70 "//content")
60 } 71 }
61 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698