cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chromecast / media / base / BUILD.gn
blob4f22bca8948d3b98697410a14d0d3b87094f55f4
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_impl.cc",
15     "decrypt_context_impl.h",
16     "decrypt_context_impl_clearkey.cc",
17     "decrypt_context_impl_clearkey.h",
18     "key_systems_common.cc",
19     "key_systems_common.h",
20     "media_caps.cc",
21     "media_caps.h",
22     "media_codec_support.cc",
23     "media_codec_support.h",
24     "media_message_loop.cc",
25     "media_message_loop.h",
26     "switching_media_renderer.cc",
27     "switching_media_renderer.h",
28   ]
30   public_deps = [
31     "//chromecast/public/media",
32   ]
34   configs += [ "//chromecast:config" ]
36   deps = [
37     "//base",
38     "//chromecast/public",
39     "//crypto",
40     "//crypto:platform",
41     "//media",
42     "//net",
43     "//third_party/widevine/cdm:version_h",
44   ]
46   if (chromecast_branding != "public") {
47     deps += [
48       "${libcast_media_target}",
49       # TODO(gyp): add dependency on internal/chromecast_internal:media_base_internal
50     ]
51   } else {
52     sources += [ "key_systems_common_simple.cc" ]
54     deps += [ ":libcast_media_default" ]
55   }
58 shared_library("libcast_media_default") {
59   output_name = "libcast_media_1.0"
61   sources = [
62     "cast_media_default.cc",
63   ]
65   configs += [ "//chromecast:config" ]
67   deps = [
68     "//build/config/sanitizers:deps",
69     "//chromecast/media/cma/backend",
70     "//chromecast/public",
71     "//chromecast/public/media",
72   ]