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