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