OLD | NEW |
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 assert(is_mac || is_ios) | 5 assert(is_mac || is_ios) |
6 | 6 |
7 source_set("mac") { | 7 source_set("mac") { |
8 set_sources_assignment_filter([]) | 8 set_sources_assignment_filter([]) |
9 sources = [ | 9 sources = [ |
10 "coremedia_glue.h", | 10 "coremedia_glue.h", |
11 "coremedia_glue.mm", | 11 "coremedia_glue.mm", |
12 "corevideo_glue.h", | 12 "corevideo_glue.h", |
13 "video_frame_mac.cc", | 13 "video_frame_mac.cc", |
14 "video_frame_mac.h", | 14 "video_frame_mac.h", |
15 "videotoolbox_glue.h", | 15 "videotoolbox_glue.h", |
16 "videotoolbox_glue.mm", | 16 "videotoolbox_glue.mm", |
| 17 "videotoolbox_helpers.cc", |
| 18 "videotoolbox_helpers.h", |
17 ] | 19 ] |
18 if (is_mac) { | 20 if (is_mac) { |
19 sources += [ | 21 sources += [ |
20 "avfoundation_glue.h", | 22 "avfoundation_glue.h", |
21 "avfoundation_glue.mm", | 23 "avfoundation_glue.mm", |
22 ] | 24 ] |
23 libs = [ | 25 libs = [ |
24 "AVFoundation.framework", | 26 "AVFoundation.framework", |
25 | 27 |
26 # Required by video_frame_mac.cc. | 28 # Required by video_frame_mac.cc. |
27 "CoreVideo.framework", | 29 "CoreVideo.framework", |
28 ] | 30 ] |
29 } | 31 } |
30 set_sources_assignment_filter(sources_assignment_filter) | 32 set_sources_assignment_filter(sources_assignment_filter) |
31 configs += [ "//media:media_config" ] | 33 configs += [ "//media:media_config" ] |
32 } | 34 } |
33 | 35 |
34 source_set("unittests") { | 36 source_set("unittests") { |
35 testonly = true | 37 testonly = true |
36 sources = [ | 38 sources = [ |
37 "video_frame_mac_unittests.cc", | 39 "video_frame_mac_unittests.cc", |
38 ] | 40 ] |
39 configs += [ "//media:media_config" ] | 41 configs += [ "//media:media_config" ] |
40 deps = [ | 42 deps = [ |
41 "//testing/gtest", | 43 "//testing/gtest", |
42 ] | 44 ] |
43 } | 45 } |
OLD | NEW |