Export provisioning sdk
Change-Id: I4d47d80444c9507f84896767dc676112ca11e901
This commit is contained in:
117
provisioning_sdk/internal/certificates/BUILD
Normal file
117
provisioning_sdk/internal/certificates/BUILD
Normal file
@@ -0,0 +1,117 @@
|
||||
################################################################################
|
||||
# Copyright 2016 Google Inc.
|
||||
#
|
||||
# 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.
|
||||
################################################################################
|
||||
|
||||
# Build file for test certificates.
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "root_certificates",
|
||||
srcs = [
|
||||
"root_certificates.cc",
|
||||
":drm_ca_root_dev_cert",
|
||||
":drm_ca_root_prod_cert",
|
||||
":drm_ca_root_test_cert",
|
||||
":oem_ca_root_dev_der",
|
||||
":oem_ca_root_prod_der",
|
||||
],
|
||||
hdrs = ["root_certificates.h"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "drm_ca_root_test_cert",
|
||||
srcs = ["drm_ca_root_test.cert"],
|
||||
outs = ["drm_ca_root_test_cert.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "drm_ca_root_dev_cert",
|
||||
srcs = ["drm_ca_root_dev.cert"],
|
||||
outs = ["drm_ca_root_dev_cert.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "drm_ca_root_prod_cert",
|
||||
srcs = ["drm_ca_root_prod.cert"],
|
||||
outs = ["drm_ca_root_prod_cert.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "oem_ca_root_dev_der",
|
||||
srcs = ["oem_ca_root_dev_cert.der"],
|
||||
outs = ["oem_ca_root_dev_cert.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "oem_ca_root_prod_der",
|
||||
srcs = ["oem_ca_root_prod_cert.der"],
|
||||
outs = ["oem_ca_root_prod_cert.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "test_certificates",
|
||||
srcs = [
|
||||
"test_certificates.cc",
|
||||
":backwards_chain_der",
|
||||
":expired_2000_chain_der",
|
||||
":invalid_chain_der",
|
||||
":single_cert_chain_der",
|
||||
":sysid_2001_chain_der",
|
||||
":sysid_2001_public_key_der",
|
||||
],
|
||||
hdrs = ["test_certificates.h"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "single_cert_chain_der",
|
||||
srcs = ["single-cert-chain.der"],
|
||||
outs = ["single_cert_chain.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "sysid_2001_chain_der",
|
||||
srcs = ["sysid-2001-chain.der"],
|
||||
outs = ["sysid_2001_chain.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "sysid_2001_public_key_der",
|
||||
srcs = ["sysid-2001-public-key.der"],
|
||||
outs = ["sysid_2001_public_key.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "expired_2000_chain_der",
|
||||
srcs = ["expired-2000-chain.der"],
|
||||
outs = ["expired_2000_chain.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "backwards_chain_der",
|
||||
srcs = ["backwards-chain.der"],
|
||||
outs = ["backwards_chain.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "invalid_chain_der",
|
||||
srcs = ["invalid_chain.der"],
|
||||
outs = ["invalid_chain.h"],
|
||||
cmd = "cd $$(dirname $<) && xxd -i $$(basename $<) $$OLDPWD/$@",
|
||||
)
|
||||
Reference in New Issue
Block a user