Chromium Code Reviews| 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 # Note: This source_set is depended on only by //media. In the component build, | |
| 8 # if other component targets also depend on it, multiple copies of the ObjC | |
| 9 # classes declared in the files below will cause warnings at run-time. | |
|
Dirk Pranke
2016/05/06 22:10:07
You can/should use the `visibility` variable to en
Robert Sesek
2016/05/06 22:20:49
Done.
| |
| 7 source_set("mac") { | 10 source_set("mac") { |
| 8 set_sources_assignment_filter([]) | 11 set_sources_assignment_filter([]) |
| 9 sources = [ | 12 sources = [ |
| 10 "coremedia_glue.h", | 13 "coremedia_glue.h", |
| 11 "coremedia_glue.mm", | 14 "coremedia_glue.mm", |
| 12 "corevideo_glue.h", | 15 "corevideo_glue.h", |
| 13 "video_frame_mac.cc", | 16 "video_frame_mac.cc", |
| 14 "video_frame_mac.h", | 17 "video_frame_mac.h", |
| 15 "videotoolbox_glue.h", | 18 "videotoolbox_glue.h", |
| 16 "videotoolbox_glue.mm", | 19 "videotoolbox_glue.mm", |
| 17 "videotoolbox_helpers.cc", | 20 "videotoolbox_helpers.cc", |
| 18 "videotoolbox_helpers.h", | 21 "videotoolbox_helpers.h", |
| 19 ] | 22 ] |
| 20 if (is_mac) { | 23 if (is_mac) { |
| 21 sources += [ | 24 sources += [ |
| 22 "avfoundation_glue.h", | 25 "avfoundation_glue.h", |
| 23 "avfoundation_glue.mm", | 26 "avfoundation_glue.mm", |
| 24 ] | 27 ] |
| 25 libs = [ | 28 libs = [ |
| 26 "AVFoundation.framework", | 29 "AVFoundation.framework", |
| 27 | 30 "CoreVideo.framework", # Required by video_frame_mac.cc. |
| 28 # Required by video_frame_mac.cc. | |
| 29 "CoreVideo.framework", | |
| 30 ] | 31 ] |
| 31 } | 32 } |
| 32 set_sources_assignment_filter(sources_assignment_filter) | 33 set_sources_assignment_filter(sources_assignment_filter) |
| 33 configs += [ "//media:media_config" ] | 34 configs += [ |
| 35 "//media:media_config", | |
| 36 "//media:media_implementation", | |
| 37 ] | |
| 34 } | 38 } |
| 35 | 39 |
| 36 source_set("unittests") { | 40 source_set("unittests") { |
| 37 testonly = true | 41 testonly = true |
| 38 sources = [ | 42 sources = [ |
| 39 "video_frame_mac_unittests.cc", | 43 "video_frame_mac_unittests.cc", |
| 40 ] | 44 ] |
| 41 configs += [ "//media:media_config" ] | 45 configs += [ "//media:media_config" ] |
| 42 deps = [ | 46 deps = [ |
| 43 "//testing/gtest", | 47 "//testing/gtest", |
| 44 ] | 48 ] |
| 45 } | 49 } |
| OLD | NEW |