Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / chromecast / media / base / BUILD.gn
blob47f116ac183237698d9a61dc15770c873cfb8e4e
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 source_set("base") {
13   sources = [
14     "decrypt_context.cc",
15     "decrypt_context.h",
16     "decrypt_context_clearkey.cc",
17     "decrypt_context_clearkey.h",
18     "key_systems_common.cc",
19     "key_systems_common.h",
20     "media_caps.cc",
21     "media_caps.h",
22     "media_message_loop.cc",
23     "media_message_loop.h",
24     "switching_media_renderer.cc",
25     "switching_media_renderer.h",
26   ]
28   configs += [ "//chromecast:config" ]
30   deps = [
31     "//base",
32     "//crypto",
33     "//crypto:platform",
34     "//media",
35     "//third_party/widevine/cdm:version_h",
36   ]
38   if (chromecast_branding != "public") {
39     deps += [
40       "${libcast_media_target}",
41       # TODO(gyp): add dependency on internal/chromecast_internal:media_base_internal
42     ]
43   } else {
44     sources += [ "key_systems_common_simple.cc" ]
46     deps += [ ":libcast_media_default" ]
47   }
50 shared_library("libcast_media_default") {
51   output_name = "libcast_media_1.0"
53   sources = [
54     "cast_media_default.cc",
55   ]
57   configs += [ "//chromecast:config" ]
59   deps = [
60     "//chromecast/public",
61   ]