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 import("//remoting/remoting_srcs.gni") | 5 import("//remoting/remoting_srcs.gni") |
6 | 6 |
7 source_set("codec") { | 7 source_set("codec") { |
8 sources = rebase_path(remoting_srcs_gypi_values.remoting_codec_sources, | 8 sources = rebase_path(remoting_srcs_gypi_values.remoting_codec_sources, |
9 ".", | 9 ".", |
10 "//remoting") | 10 "//remoting") |
11 | 11 |
12 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 12 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
13 | 13 |
14 deps = [ | 14 deps = [ |
15 "//base/third_party/dynamic_annotations", | 15 "//base/third_party/dynamic_annotations", |
16 "//media", | 16 "//media", |
17 "//media:shared_memory_support", | 17 "//media:shared_memory_support", |
18 "//remoting/proto", | 18 "//remoting/proto", |
19 "//remoting/resources", | |
20 "//third_party/libvpx", | 19 "//third_party/libvpx", |
21 "//third_party/libyuv", | 20 "//third_party/libyuv", |
22 "//third_party/opus", | 21 "//third_party/opus", |
23 "//third_party/webrtc/modules/desktop_capture", | 22 "//third_party/webrtc/modules/desktop_capture:primitives", |
24 ] | 23 ] |
| 24 |
| 25 if (is_nacl) { |
| 26 deps -= [ |
| 27 "//media", |
| 28 "//media:shared_memory_support", |
| 29 ] |
| 30 sources -= [ |
| 31 "audio_encoder.h", |
| 32 "audio_encoder_opus.cc", |
| 33 "audio_encoder_opus.h", |
| 34 "audio_encoder_verbatim.cc", |
| 35 "audio_encoder_verbatim.h", |
| 36 "video_encoder.h", |
| 37 "video_encoder_helper.cc", |
| 38 "video_encoder_helper.h", |
| 39 "video_encoder_verbatim.cc", |
| 40 "video_encoder_verbatim.h", |
| 41 "video_encoder_vpx.cc", |
| 42 "video_encoder_vpx.h", |
| 43 ] |
| 44 } |
25 } | 45 } |
26 | 46 |
27 source_set("unit_tests") { | 47 source_set("unit_tests") { |
28 testonly = true | 48 testonly = true |
29 | 49 |
30 sources = [ | 50 sources = [ |
31 "audio_encoder_opus_unittest.cc", | 51 "audio_encoder_opus_unittest.cc", |
32 "codec_test.cc", | 52 "codec_test.cc", |
33 "codec_test.h", | 53 "codec_test.h", |
34 "video_decoder_vpx_unittest.cc", | 54 "video_decoder_vpx_unittest.cc", |
35 "video_encoder_helper_unittest.cc", | 55 "video_encoder_helper_unittest.cc", |
36 "video_encoder_verbatim_unittest.cc", | 56 "video_encoder_verbatim_unittest.cc", |
37 "video_encoder_vpx_unittest.cc", | 57 "video_encoder_vpx_unittest.cc", |
38 ] | 58 ] |
39 | 59 |
40 deps = [ | 60 deps = [ |
41 ":codec", | 61 ":codec", |
42 "//base", | 62 "//base", |
43 "//remoting/proto", | 63 "//remoting/proto", |
44 "//testing/gtest", | 64 "//testing/gtest", |
45 "//third_party/webrtc/modules/desktop_capture", | 65 "//third_party/webrtc/modules/desktop_capture", |
46 ] | 66 ] |
47 } | 67 } |
OLD | NEW |