Fix media_cas_proxy_sdk build issue.
Add example binary for testing building the SDK after 'git clone' from our repo. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=227583629
This commit is contained in:
56
common/BUILD
56
common/BUILD
@@ -16,6 +16,8 @@ filegroup(
|
||||
name = "binary_release_files",
|
||||
srcs = [
|
||||
"certificate_type.h",
|
||||
"drm_root_certificate.h",
|
||||
"status.h",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -31,6 +33,27 @@ cc_library(
|
||||
hdrs = ["certificate_type.h"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "status",
|
||||
srcs = ["status.cc"],
|
||||
hdrs = ["status.h"],
|
||||
deps = [
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"@abseil_repo//absl/strings",
|
||||
"//util:error_space",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "status_test",
|
||||
srcs = ["status_test.cc"],
|
||||
deps = [
|
||||
":status",
|
||||
"//testing:gunit_main",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "client_cert",
|
||||
srcs = ["client_cert.cc"],
|
||||
@@ -41,7 +64,9 @@ cc_library(
|
||||
":error_space",
|
||||
":random_util",
|
||||
":rsa_key",
|
||||
":sha_util",
|
||||
":signing_key_util",
|
||||
":status",
|
||||
":wvm_token_handler",
|
||||
"//base",
|
||||
"//strings",
|
||||
@@ -49,7 +74,6 @@ cc_library(
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"@abseil_repo//absl/time",
|
||||
"//util/gtl:map_util",
|
||||
"//util:status",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:drm_certificate_proto",
|
||||
"//protos/public:errors_proto",
|
||||
@@ -65,6 +89,8 @@ cc_test(
|
||||
":client_cert",
|
||||
":drm_root_certificate",
|
||||
":error_space",
|
||||
":sha_util",
|
||||
":test_drm_certificates",
|
||||
":wvm_test_keys",
|
||||
"//base",
|
||||
"//strings",
|
||||
@@ -88,15 +114,16 @@ cc_library(
|
||||
":client_cert",
|
||||
":crypto_util",
|
||||
":drm_root_certificate",
|
||||
":drm_service_certificate",
|
||||
":error_space",
|
||||
":random_util",
|
||||
":rsa_key",
|
||||
":signing_key_util",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//util/gtl:map_util",
|
||||
"//util:status",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:device_certificate_status_proto",
|
||||
"//protos/public:errors_proto",
|
||||
@@ -132,12 +159,12 @@ cc_library(
|
||||
":error_space",
|
||||
":rsa_key",
|
||||
":sha_util",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/memory",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//external:openssl",
|
||||
"//util:status",
|
||||
"//protos/public:drm_certificate_proto",
|
||||
"//protos/public:errors_proto",
|
||||
"//protos/public:signed_drm_certificate_proto",
|
||||
@@ -171,9 +198,9 @@ cc_library(
|
||||
":aes_cbc_util",
|
||||
":drm_service_certificate",
|
||||
":error_space",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"//util:status",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:errors_proto",
|
||||
],
|
||||
@@ -393,8 +420,8 @@ cc_library(
|
||||
":aes_cbc_util",
|
||||
":rsa_key",
|
||||
":sha_util",
|
||||
":status",
|
||||
"//base",
|
||||
"//util:status",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -442,12 +469,12 @@ cc_library(
|
||||
":aes_cbc_util",
|
||||
":ecb_util",
|
||||
":sha_util",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//util/endian",
|
||||
"//util/gtl:map_util",
|
||||
"//util:status",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -481,7 +508,7 @@ cc_library(
|
||||
srcs = ["error_space.cc"],
|
||||
hdrs = ["error_space.h"],
|
||||
deps = [
|
||||
"//util:status",
|
||||
"//util:error_space",
|
||||
"//util:proto_status",
|
||||
"//protos/public:errors_proto",
|
||||
],
|
||||
@@ -496,11 +523,11 @@ cc_library(
|
||||
":drm_service_certificate",
|
||||
":error_space",
|
||||
":rsa_key",
|
||||
":status",
|
||||
":x509_cert",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//util:status",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:errors_proto",
|
||||
"//protos/public:remote_attestation_proto",
|
||||
@@ -518,11 +545,11 @@ cc_library(
|
||||
":error_space",
|
||||
":rsa_key",
|
||||
":rsa_util",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//util/gtl:map_util",
|
||||
"//util:status",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:drm_certificate_proto",
|
||||
"//protos/public:errors_proto",
|
||||
@@ -559,10 +586,10 @@ cc_library(
|
||||
srcs = ["verified_media_pipeline.cc"],
|
||||
hdrs = ["verified_media_pipeline.h"],
|
||||
deps = [
|
||||
":status",
|
||||
":vmp_checker",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"//util:status",
|
||||
"//protos/public:license_protocol_proto",
|
||||
],
|
||||
)
|
||||
@@ -572,13 +599,14 @@ cc_library(
|
||||
srcs = ["x509_cert.cc"],
|
||||
hdrs = ["x509_cert.h"],
|
||||
deps = [
|
||||
":error_space",
|
||||
":openssl_util",
|
||||
":rsa_key",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//external:openssl",
|
||||
"//util:status",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -588,9 +616,9 @@ cc_library(
|
||||
srcs = ["test_utils.cc"],
|
||||
hdrs = ["test_utils.h"],
|
||||
deps = [
|
||||
":status",
|
||||
"//base",
|
||||
"//external:openssl",
|
||||
"//util:status",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -616,9 +644,9 @@ cc_library(
|
||||
":certificate_type",
|
||||
":error_space",
|
||||
":rsa_key",
|
||||
":status",
|
||||
":x509_cert",
|
||||
"//base",
|
||||
"//util:status",
|
||||
"//protos/public:errors_proto",
|
||||
"//protos/public:verified_media_pipeline_proto",
|
||||
],
|
||||
@@ -644,8 +672,8 @@ cc_library(
|
||||
srcs = ["string_util.cc"],
|
||||
hdrs = ["string_util.h"],
|
||||
deps = [
|
||||
":status",
|
||||
"//base",
|
||||
"//util:status",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user