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

Side by Side Diff: remoting/codec/BUILD.gn

Issue 2402623003: Adding encoder and decoder targets inside of //remoting/codec. (Closed)
Patch Set: Adding comment to clarify why //media is removed for iOS. Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 source_set("codec") { 5 source_set("codec") {
6 deps = [
7 ":decoder",
8 ":encoder",
9 ]
10 }
11
12 source_set("encoder") {
6 sources = [ 13 sources = [
7 "audio_decoder.cc",
8 "audio_decoder.h",
9 "audio_decoder_opus.cc",
10 "audio_decoder_opus.h",
11 "audio_encoder.h", 14 "audio_encoder.h",
12 "audio_encoder_opus.cc", 15 "audio_encoder_opus.cc",
13 "audio_encoder_opus.h", 16 "audio_encoder_opus.h",
14 "scoped_vpx_codec.cc",
15 "scoped_vpx_codec.h",
16 "video_decoder.h",
17 "video_decoder_verbatim.cc",
18 "video_decoder_verbatim.h",
19 "video_decoder_vpx.cc",
20 "video_decoder_vpx.h",
21 "video_encoder.cc", 17 "video_encoder.cc",
22 "video_encoder.h", 18 "video_encoder.h",
23 "video_encoder_helper.cc", 19 "video_encoder_helper.cc",
24 "video_encoder_helper.h", 20 "video_encoder_helper.h",
25 "video_encoder_verbatim.cc", 21 "video_encoder_verbatim.cc",
26 "video_encoder_verbatim.h", 22 "video_encoder_verbatim.h",
27 "video_encoder_vpx.cc", 23 "video_encoder_vpx.cc",
28 "video_encoder_vpx.h", 24 "video_encoder_vpx.h",
29 "webrtc_video_encoder_vpx.cc", 25 "webrtc_video_encoder_vpx.cc",
30 "webrtc_video_encoder_vpx.h", 26 "webrtc_video_encoder_vpx.h",
31 ] 27 ]
32 28
33 configs += [ "//build/config/compiler:wexit_time_destructors" ] 29 configs += [ "//build/config/compiler:wexit_time_destructors" ]
34 30
35 deps = [ 31 deps = [
32 ":vpx_codec",
36 "//base/third_party/dynamic_annotations", 33 "//base/third_party/dynamic_annotations",
37 "//media", 34 "//media",
38 "//media:shared_memory_support", 35 "//media:shared_memory_support",
39 "//remoting/proto", 36 "//remoting/proto",
40 "//third_party/libvpx", 37 "//third_party/libvpx",
41 "//third_party/libyuv", 38 "//third_party/libyuv",
42 "//third_party/opus", 39 "//third_party/opus",
43 "//third_party/webrtc/modules/desktop_capture:primitives", 40 "//third_party/webrtc/modules/desktop_capture:primitives",
44 ] 41 ]
45 42
46 if (is_nacl) { 43 if (is_nacl) {
47 deps -= [
48 "//media",
49 "//media:shared_memory_support",
50 ]
51 sources -= [ 44 sources -= [
52 "audio_encoder.h", 45 "audio_encoder.h",
53 "audio_encoder_opus.cc", 46 "audio_encoder_opus.cc",
54 "audio_encoder_opus.h", 47 "audio_encoder_opus.h",
55 "video_encoder.cc", 48 "video_encoder.cc",
56 "video_encoder.h", 49 "video_encoder.h",
57 "video_encoder_helper.cc", 50 "video_encoder_helper.cc",
58 "video_encoder_helper.h", 51 "video_encoder_helper.h",
59 "video_encoder_verbatim.cc", 52 "video_encoder_verbatim.cc",
60 "video_encoder_verbatim.h", 53 "video_encoder_verbatim.h",
61 "video_encoder_vpx.cc", 54 "video_encoder_vpx.cc",
62 "video_encoder_vpx.h", 55 "video_encoder_vpx.h",
63 "webrtc_video_encoder_vpx.cc", 56 "webrtc_video_encoder_vpx.cc",
64 "webrtc_video_encoder_vpx.h", 57 "webrtc_video_encoder_vpx.h",
65 ] 58 ]
59 deps -= [
60 "//media",
61 "//media:shared_memory_support",
62 ]
63 }
64
65 # Opus depends on //media, which is not a supported include for iOS.
66 # Removing Opus for iOS builds.
67 if (is_ios) {
68 sources -= [
69 "audio_encoder_opus.cc",
70 "audio_encoder_opus.h",
71 ]
72 deps -= [
73 "//media",
74 "//media:shared_memory_support",
75 ]
66 } 76 }
67 } 77 }
68 78
79 source_set("decoder") {
80 sources = [
81 "audio_decoder.cc",
82 "audio_decoder.h",
83 "audio_decoder_opus.cc",
84 "audio_decoder_opus.h",
85 "video_decoder.h",
86 "video_decoder_verbatim.cc",
87 "video_decoder_verbatim.h",
88 "video_decoder_vpx.cc",
89 "video_decoder_vpx.h",
90 ]
91
92 configs += [ "//build/config/compiler:wexit_time_destructors" ]
93
94 deps = [
95 ":vpx_codec",
96 "//base/third_party/dynamic_annotations",
97 "//remoting/proto",
98 "//third_party/libvpx",
99 "//third_party/libyuv",
100 "//third_party/opus",
101 "//third_party/webrtc/modules/desktop_capture:primitives",
102 ]
103 }
104
105 source_set("vpx_codec") {
106 sources = [
107 "scoped_vpx_codec.cc",
108 "scoped_vpx_codec.h",
109 ]
110
111 configs += [ "//build/config/compiler:wexit_time_destructors" ]
112
113 public_deps = [
114 "//third_party/libvpx",
115 ]
116
117 deps = [
118 "//base/third_party/dynamic_annotations",
119 "//remoting/proto",
120 "//third_party/libyuv",
121 "//third_party/webrtc/modules/desktop_capture:primitives",
122 ]
123 }
124
69 source_set("unit_tests") { 125 source_set("unit_tests") {
70 testonly = true 126 testonly = true
71 127
72 sources = [ 128 sources = [
73 "audio_encoder_opus_unittest.cc", 129 "audio_encoder_opus_unittest.cc",
74 "codec_test.cc", 130 "codec_test.cc",
75 "codec_test.h", 131 "codec_test.h",
76 "video_decoder_vpx_unittest.cc", 132 "video_decoder_vpx_unittest.cc",
77 "video_encoder_helper_unittest.cc", 133 "video_encoder_helper_unittest.cc",
78 "video_encoder_verbatim_unittest.cc", 134 "video_encoder_verbatim_unittest.cc",
79 "video_encoder_vpx_unittest.cc", 135 "video_encoder_vpx_unittest.cc",
80 ] 136 ]
81 137
82 deps = [ 138 deps = [
83 ":codec", 139 ":codec",
84 "//base", 140 "//base",
85 "//remoting/proto", 141 "//remoting/proto",
86 "//testing/gtest", 142 "//testing/gtest",
87 "//third_party/webrtc/modules/desktop_capture", 143 "//third_party/webrtc/modules/desktop_capture",
88 ] 144 ]
89 } 145 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698