69 lines
1.2 KiB
Python
69 lines
1.2 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.
|
|
################################################################################
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
|
|
filegroup(
|
|
name = "binary_release_files",
|
|
srcs = [
|
|
"error_space.h",
|
|
"status.h",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "status",
|
|
srcs = [
|
|
"status.cc",
|
|
],
|
|
hdrs = [
|
|
"status.h",
|
|
],
|
|
deps = [
|
|
":error_space",
|
|
"//base",
|
|
"@abseil_repo//absl/strings",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "error_space",
|
|
hdrs = ["error_space.h"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "proto_status",
|
|
hdrs = ["proto_status.h"],
|
|
deps = [
|
|
":status",
|
|
"//external:protobuf",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "status_test",
|
|
srcs = ["status_test.cc"],
|
|
deps = [
|
|
":status",
|
|
"//testing:gunit_main",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "error_space_test",
|
|
srcs = ["error_space_test.cc"],
|
|
deps = [
|
|
":error_space",
|
|
"//testing:gunit_main",
|
|
],
|
|
)
|
|
|