Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / media / base / mac / BUILD.gn
blob2bb7294c401c05d79e588c6928543f01fff2913a
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
3 # found in the LICENSE file.
5 assert(is_mac || is_ios)
7 source_set("mac") {
8   set_sources_assignment_filter([])
9   sources = [
10     "coremedia_glue.h",
11     "coremedia_glue.mm",
12     "corevideo_glue.h",
13     "video_frame_mac.cc",
14     "video_frame_mac.h",
15     "videotoolbox_glue.h",
16     "videotoolbox_glue.mm",
17   ]
18   if (is_mac) {
19     sources += [
20       "avfoundation_glue.h",
21       "avfoundation_glue.mm",
22     ]
23   }
24   set_sources_assignment_filter(sources_assignment_filter)
25   configs += [ "//media:media_config" ]
28 source_set("unittests") {
29   testonly = true
30   sources = [
31     "video_frame_mac_unittests.cc",
32   ]
33   configs += [ "//media:media_config" ]
34   deps = [
35     "//testing/gtest",
36   ]