Chromium Code Reviews| 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") { | 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 if (is_ios) { | |
|
Sergey Ulanov
2016/10/10 17:31:27
Add a comment here that audio_encoder_opus.cc depe
nicholss
2016/10/10 20:04:25
Done.
| |
| 66 sources -= [ | |
| 67 "audio_encoder_opus.cc", | |
| 68 "audio_encoder_opus.h", | |
| 69 ] | |
| 70 deps -= [ | |
| 71 "//media", | |
| 72 "//media:shared_memory_support", | |
| 73 ] | |
| 66 } | 74 } |
| 67 } | 75 } |
| 68 | 76 |
| 77 source_set("decoder") { | |
| 78 sources = [ | |
| 79 "audio_decoder.cc", | |
| 80 "audio_decoder.h", | |
| 81 "audio_decoder_opus.cc", | |
| 82 "audio_decoder_opus.h", | |
| 83 "video_decoder.h", | |
| 84 "video_decoder_verbatim.cc", | |
| 85 "video_decoder_verbatim.h", | |
| 86 "video_decoder_vpx.cc", | |
| 87 "video_decoder_vpx.h", | |
| 88 ] | |
| 89 | |
| 90 configs += [ "//build/config/compiler:wexit_time_destructors" ] | |
| 91 | |
| 92 deps = [ | |
| 93 ":vpx_codec", | |
| 94 "//base/third_party/dynamic_annotations", | |
| 95 "//remoting/proto", | |
| 96 "//third_party/libvpx", | |
| 97 "//third_party/libyuv", | |
| 98 "//third_party/opus", | |
| 99 "//third_party/webrtc/modules/desktop_capture:primitives", | |
| 100 ] | |
| 101 } | |
| 102 | |
| 103 source_set("vpx_codec") { | |
| 104 sources = [ | |
| 105 "scoped_vpx_codec.cc", | |
| 106 "scoped_vpx_codec.h", | |
| 107 ] | |
| 108 | |
| 109 configs += [ "//build/config/compiler:wexit_time_destructors" ] | |
| 110 | |
| 111 public_deps = [ | |
| 112 "//third_party/libvpx", | |
| 113 ] | |
| 114 | |
| 115 deps = [ | |
| 116 "//base/third_party/dynamic_annotations", | |
| 117 "//remoting/proto", | |
| 118 "//third_party/libyuv", | |
| 119 "//third_party/webrtc/modules/desktop_capture:primitives", | |
| 120 ] | |
| 121 } | |
| 122 | |
| 69 source_set("unit_tests") { | 123 source_set("unit_tests") { |
| 70 testonly = true | 124 testonly = true |
| 71 | 125 |
| 72 sources = [ | 126 sources = [ |
| 73 "audio_encoder_opus_unittest.cc", | 127 "audio_encoder_opus_unittest.cc", |
| 74 "codec_test.cc", | 128 "codec_test.cc", |
| 75 "codec_test.h", | 129 "codec_test.h", |
| 76 "video_decoder_vpx_unittest.cc", | 130 "video_decoder_vpx_unittest.cc", |
| 77 "video_encoder_helper_unittest.cc", | 131 "video_encoder_helper_unittest.cc", |
| 78 "video_encoder_verbatim_unittest.cc", | 132 "video_encoder_verbatim_unittest.cc", |
| 79 "video_encoder_vpx_unittest.cc", | 133 "video_encoder_vpx_unittest.cc", |
| 80 ] | 134 ] |
| 81 | 135 |
| 82 deps = [ | 136 deps = [ |
| 83 ":codec", | 137 ":codec", |
| 84 "//base", | 138 "//base", |
| 85 "//remoting/proto", | 139 "//remoting/proto", |
| 86 "//testing/gtest", | 140 "//testing/gtest", |
| 87 "//third_party/webrtc/modules/desktop_capture", | 141 "//third_party/webrtc/modules/desktop_capture", |
| 88 ] | 142 ] |
| 89 } | 143 } |
| OLD | NEW |