summaryrefslogtreecommitdiff
path: root/chromium/components/cdm/browser/BUILD.gn
blob: 4802c3c229c4a4ea294f1d4d1ca6715814d7df60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//media/media_options.gni")

if (enable_media_drm_storage) {
  source_set("browser") {
    sources = [
      "media_drm_storage_impl.cc",
      "media_drm_storage_impl.h",
    ]

    public_deps = [
      "//base",
      "//content/public/browser",
      "//media/mojo/mojom",
      "//url",
    ]

    deps = [
      "//components/cdm/common",
      "//components/prefs",
      "//components/user_prefs",
      "//content/public/common",
      "//ipc",
      "//media",
    ]

    if (is_android) {
      sources += [
        "cdm_message_filter_android.cc",
        "cdm_message_filter_android.h",
      ]
      deps += [ "//third_party/widevine/cdm:headers" ]
    }
  }

  source_set("unit_tests") {
    testonly = true
    sources = [ "media_drm_storage_impl_unittest.cc" ]
    deps = [
      ":browser",
      "//base/test:test_support",
      "//components/prefs:test_support",
      "//content/test:test_support",
      "//media/mojo/services",
      "//testing/gtest",
    ]
  }
}