Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chromecast / media / base / BUILD.gn
blobaa8e7d235eca801bc6aaf487c2973259ca392a4e
1 # Copyright 2015 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 import("//build/config/crypto.gni")
6 import("//chromecast/chromecast.gni")
8 declare_args() {
9   libcast_media_target = ""
12 # TODO(slan): See if the dependency on //media can be broken.
13 source_set("base") {
14   sources = [
15     "decrypt_context_impl.cc",
16     "decrypt_context_impl.h",
17     "decrypt_context_impl_clearkey.cc",
18     "decrypt_context_impl_clearkey.h",
19     "key_systems_common.cc",
20     "key_systems_common.h",
21     "media_caps.cc",
22     "media_caps.h",
23     "media_codec_support.cc",
24     "media_codec_support.h",
25     "media_message_loop.cc",
26     "media_message_loop.h",
27     "switching_media_renderer.cc",
28     "switching_media_renderer.h",
29   ]
31   public_deps = [
32     "//chromecast/public/media",
33   ]
35   configs += [ "//chromecast:config" ]
37   deps = [
38     ":libcast_media_default",
39     "//base",
40     "//chromecast/public",
41     "//crypto",
42     "//crypto:platform",
43     "//media",
44     "//net",
45     "//third_party/widevine/cdm:version_h",
46   ]
48   if (chromecast_branding == "public") {
49     sources += [ "key_systems_common_simple.cc" ]
50   }
53 shared_library("libcast_media_default") {
54   output_name = "libcast_media_1.0"
56   sources = [
57     "cast_media_default.cc",
58   ]
60   configs += [ "//chromecast:config" ]
62   public_deps = [
63     "//chromecast/public",
64     "//chromecast/public/media",
65   ]
67   deps = [
68     "//build/config/sanitizers:deps",
69     "//chromecast/media/cma/backend",
70   ]