OLD | NEW |
---|---|
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") { | |
nicholss
2017/01/20 23:05:22
why delete this? A dep on :encoder :decoder was :
Sergey Ulanov
2017/01/20 23:41:41
It's to ensure that we don't have any targets that
| |
6 deps = [ | |
7 ":decoder", | |
8 ":encoder", | |
9 ] | |
10 } | |
11 | |
12 source_set("encoder") { | 5 source_set("encoder") { |
13 sources = [ | 6 sources = [ |
14 "audio_encoder.h", | 7 "audio_encoder.h", |
15 "audio_encoder_opus.cc", | 8 "audio_encoder_opus.cc", |
16 "audio_encoder_opus.h", | 9 "audio_encoder_opus.h", |
17 "video_encoder.cc", | 10 "video_encoder.cc", |
18 "video_encoder.h", | 11 "video_encoder.h", |
19 "video_encoder_helper.cc", | 12 "video_encoder_helper.cc", |
20 "video_encoder_helper.h", | 13 "video_encoder_helper.h", |
21 "video_encoder_verbatim.cc", | 14 "video_encoder_verbatim.cc", |
(...skipping 12 matching lines...) Expand all Loading... | |
34 "//media", | 27 "//media", |
35 "//media:shared_memory_support", | 28 "//media:shared_memory_support", |
36 "//remoting/proto", | 29 "//remoting/proto", |
37 "//third_party/libvpx", | 30 "//third_party/libvpx", |
38 "//third_party/libyuv", | 31 "//third_party/libyuv", |
39 "//third_party/opus", | 32 "//third_party/opus", |
40 "//third_party/webrtc/modules/desktop_capture:primitives", | 33 "//third_party/webrtc/modules/desktop_capture:primitives", |
41 "//ui/gfx:color_space", | 34 "//ui/gfx:color_space", |
42 ] | 35 ] |
43 | 36 |
44 if (is_nacl) { | |
45 sources -= [ | |
46 "audio_encoder.h", | |
47 "audio_encoder_opus.cc", | |
48 "audio_encoder_opus.h", | |
49 "video_encoder.cc", | |
50 "video_encoder.h", | |
51 "video_encoder_helper.cc", | |
52 "video_encoder_helper.h", | |
53 "video_encoder_verbatim.cc", | |
54 "video_encoder_verbatim.h", | |
55 "video_encoder_vpx.cc", | |
56 "video_encoder_vpx.h", | |
57 "webrtc_video_encoder_vpx.cc", | |
58 "webrtc_video_encoder_vpx.h", | |
59 ] | |
60 deps -= [ | |
61 "//media", | |
62 "//media:shared_memory_support", | |
63 "//ui/gfx:color_space", | |
64 ] | |
65 } | |
66 | |
67 # Opus depends on //media, which is not a supported include for iOS. | 37 # Opus depends on //media, which is not a supported include for iOS. |
68 # Also disabled it on Android, to avoid dependency on //media. | 38 # Also disabled it on Android, to avoid dependency on //media. |
69 # TODO(sergeyu): Cleanup host-only deps in client targets. | 39 # TODO(sergeyu): Cleanup host-only deps in client targets. |
70 if (is_ios || is_android) { | 40 if (is_ios || is_android) { |
71 sources -= [ | 41 sources -= [ |
72 "audio_encoder_opus.cc", | 42 "audio_encoder_opus.cc", |
73 "audio_encoder_opus.h", | 43 "audio_encoder_opus.h", |
74 ] | 44 ] |
75 deps -= [ | 45 deps -= [ |
76 "//media", | 46 "//media", |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 "audio_encoder_opus_unittest.cc", | 102 "audio_encoder_opus_unittest.cc", |
133 "codec_test.cc", | 103 "codec_test.cc", |
134 "codec_test.h", | 104 "codec_test.h", |
135 "video_decoder_vpx_unittest.cc", | 105 "video_decoder_vpx_unittest.cc", |
136 "video_encoder_helper_unittest.cc", | 106 "video_encoder_helper_unittest.cc", |
137 "video_encoder_verbatim_unittest.cc", | 107 "video_encoder_verbatim_unittest.cc", |
138 "video_encoder_vpx_unittest.cc", | 108 "video_encoder_vpx_unittest.cc", |
139 ] | 109 ] |
140 | 110 |
141 deps = [ | 111 deps = [ |
142 ":codec", | 112 ":decoder", |
113 ":encoder", | |
143 "//base", | 114 "//base", |
144 "//remoting/proto", | 115 "//remoting/proto", |
145 "//testing/gtest", | 116 "//testing/gtest", |
146 "//third_party/webrtc/modules/desktop_capture", | 117 "//third_party/webrtc/modules/desktop_capture", |
147 "//ui/gfx:color_space", | 118 "//ui/gfx:color_space", |
148 ] | 119 ] |
149 | 120 |
150 if (is_ios || is_android) { | 121 if (is_ios || is_android) { |
151 sources -= [ "audio_encoder_opus_unittest.cc" ] | 122 sources -= [ "audio_encoder_opus_unittest.cc" ] |
152 } | 123 } |
153 } | 124 } |
OLD | NEW |