blob: fbe2ec2264cd170fe9c5ec9bcedf9fdd4732a2a0 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2014 The Chromium Authors
[email protected]6e44c302014-07-22 21:51:372# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Piet Schoutenb7347ea2025-05-07 23:42:315import("//components/cdm/common/playready.gni")
Xiaohan Wangf170c732018-09-27 05:45:266import("//third_party/widevine/cdm/widevine.gni")
Byoungkowncbe71ec42018-08-30 18:11:317
Dirk Pranke9c0fc3b2020-08-06 16:01:308static_library("renderer") {
Xiaohan Wangdb7f22f2024-12-05 20:07:559 # See //components/cdm/README.md
10 visibility = [
11 "//android_webview/*",
12 "//chrome/*",
13 "//chromecast/*",
14 "//components/cdm/*",
15 "//content/shell/*",
16 "//fuchsia_web/*",
17 ]
18
[email protected]6e44c302014-07-22 21:51:3719 sources = [
Vikram Pasupathyd2e5386d2022-09-02 17:32:2520 "external_clear_key_key_system_info.cc",
21 "external_clear_key_key_system_info.h",
Xiaohan Wangf170c732018-09-27 05:45:2622 ]
23 deps = [
24 "//base",
Piet Schoutenb7347ea2025-05-07 23:42:3125 "//components/cdm/common:buildflags",
Xiaohan Wangf170c732018-09-27 05:45:2626 "//content/public/renderer",
27 "//media",
28 "//media:media_buildflags",
29 "//third_party/widevine/cdm:buildflags",
[email protected]6e44c302014-07-22 21:51:3730 ]
31
John Rummell984f1d72023-02-15 23:30:3532 if (enable_library_cdms || is_win || is_android) {
33 sources += [
34 "key_system_support_update.cc",
35 "key_system_support_update.h",
36 ]
37 }
38
[email protected]6e44c302014-07-22 21:51:3739 if (is_android) {
40 sources += [
John Rummell598dc642023-01-12 00:48:0541 "android_key_system_info.cc",
42 "android_key_system_info.h",
[email protected]6e44c302014-07-22 21:51:3743 ]
44 }
45
Xiaohan Wangf170c732018-09-27 05:45:2646 if (enable_widevine) {
47 sources += [
Vikram Pasupathyd2e5386d2022-09-02 17:32:2548 "widevine_key_system_info.cc",
49 "widevine_key_system_info.h",
Xiaohan Wangf170c732018-09-27 05:45:2650 ]
Maksim Sisov1cde3322024-12-03 08:23:1751 deps += [ "//third_party/widevine/cdm:headers" ]
Xiaohan Wangf170c732018-09-27 05:45:2652 }
Piet Schoutenb7347ea2025-05-07 23:42:3153
54 if (enable_playready) {
55 sources += [
56 "playready_key_system_info.cc",
57 "playready_key_system_info.h",
58 ]
59 deps += [ "//components/cdm/common" ]
60 }
[email protected]6e44c302014-07-22 21:51:3761}