126 lines
3.7 KiB
Python
126 lines
3.7 KiB
Python
################################################################################
|
|
# Copyright 2017 Google LLC.
|
|
#
|
|
# This software is licensed under the terms defined in the Widevine Master
|
|
# License Agreement. For a copy of this agreement, please contact
|
|
# widevine-licensing@google.com.
|
|
################################################################################
|
|
|
|
# The public interface of Widevine Proxy SDK for content providers.
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "binary_release_files",
|
|
srcs = glob(["*.h"]),
|
|
)
|
|
|
|
cc_library(
|
|
name = "wvpl_types",
|
|
hdrs = [
|
|
"wvpl_types.h",
|
|
],
|
|
deps = [
|
|
"//common:status",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "wvpl_sdk_session",
|
|
srcs = [
|
|
"wvpl_sdk_session.cc",
|
|
],
|
|
hdrs = [
|
|
"wvpl_sdk_environment.h",
|
|
"wvpl_sdk_session.h",
|
|
],
|
|
deps = [
|
|
# TODO(user): Refactor these deps as classes that derive from WvPLSDKSession may not rely on license SDK(s).
|
|
":wvpl_types",
|
|
"//base",
|
|
"@abseil_repo//absl/memory",
|
|
"//common:client_cert",
|
|
"//common:drm_root_certificate",
|
|
"//common:drm_service_certificate",
|
|
"//common:error_space",
|
|
"//common:remote_attestation_verifier",
|
|
"//common:status",
|
|
"//common:verified_media_pipeline",
|
|
"//license_server_sdk/internal:sdk",
|
|
"//protos/public:client_identification_proto",
|
|
"//protos/public:device_certificate_status_proto",
|
|
"//protos/public:errors_proto",
|
|
"//protos/public:license_protocol_proto",
|
|
"//protos/public:license_server_sdk_proto",
|
|
"//protos/public:provisioned_device_info_proto",
|
|
"//protos/public:widevine_pssh_proto",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "wvpl_sdk_environment",
|
|
srcs = [
|
|
"wvpl_sdk_environment.cc",
|
|
],
|
|
hdrs = [
|
|
"wvpl_sdk_environment.h",
|
|
],
|
|
deps = [
|
|
# TODO(user): Refactor these deps as classes that derive from WvPLSDKEnvironment may not rely on license SDK(s).
|
|
":wvpl_types",
|
|
"//base",
|
|
"@abseil_repo//absl/strings",
|
|
"@abseil_repo//absl/synchronization",
|
|
"//common:aes_cbc_util",
|
|
"//common:device_status_list",
|
|
"//common:drm_root_certificate",
|
|
"//common:error_space",
|
|
"//common:drm_service_certificate",
|
|
"//common:sha_util",
|
|
"//common:status",
|
|
"//common:vmp_checker",
|
|
"//license_server_sdk/internal:sdk",
|
|
"//protos/public:device_certificate_status_proto",
|
|
"//protos/public:errors_proto",
|
|
"//protos/public:provisioned_device_info_proto",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "sdk",
|
|
srcs = glob(
|
|
["*.cc"],
|
|
),
|
|
hdrs = glob(
|
|
["*.h"],
|
|
),
|
|
deps = [
|
|
":wvpl_types",
|
|
"//base",
|
|
"@abseil_repo//absl/memory",
|
|
"@abseil_repo//absl/strings",
|
|
"@abseil_repo//absl/synchronization",
|
|
"//common:aes_cbc_util",
|
|
"//common:client_cert",
|
|
"//common:device_status_list",
|
|
"//common:drm_root_certificate",
|
|
"//common:drm_service_certificate",
|
|
"//common:error_space",
|
|
"//common:remote_attestation_verifier",
|
|
"//common:sha_util",
|
|
"//common:status",
|
|
"//common:verified_media_pipeline",
|
|
"//common:vmp_checker",
|
|
"//license_server_sdk/internal:sdk",
|
|
"//protos/public:client_identification_proto",
|
|
"//protos/public:device_certificate_status_proto",
|
|
"//protos/public:errors_proto",
|
|
"//protos/public:license_protocol_proto",
|
|
"//protos/public:license_server_sdk_proto",
|
|
"//protos/public:provisioned_device_info_proto",
|
|
"//protos/public:widevine_pssh_proto",
|
|
],
|
|
)
|