blob: cab6a666840cdb14920a2c1b1e2a2b9fd2fecbf2 [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
copy("tink_config_copyfiles") {
outputs = [
"$target_gen_dir/../include/tink/config/{{source_file_part}}",
]
sources = [
"tink_config.h",
]
}
source_set("tink_config") {
configs -= [
"//build/config:no_rtti",
]
output_name = "tink_config_tink_config_unittest"
public_configs = [
"//third_party/tink/cc:tink_config",
]
public_deps = [
"//third_party/tink/cc:config",
"//third_party/tink/cc:key_manager",
"//third_party/tink/cc/hybrid:hybrid_config",
"//third_party/tink/cc/signature:signature_config",
"//third_party/tink/cc/util:status",
"//third_party/tink/proto:config_proto",
":tink_config_copyfiles",
]
sources = [
"tink_config.cc",
"tink_config.h",
]
testonly = false
}
executable("tink_config_test") {
configs -= [
"//build/config:no_rtti",
]
output_name = "tink_config_tink_config_test_unittest"
public_configs = [
"//third_party/tink/cc:tink_config",
]
public_deps = [
":tink_config",
"//third_party/tink/cc:aead",
"//third_party/tink/cc:catalogue",
"//third_party/tink/cc:config",
"//third_party/tink/cc:hybrid_decrypt",
"//third_party/tink/cc:hybrid_encrypt",
"//third_party/tink/cc:mac",
"//third_party/tink/cc:registry",
"//third_party/tink/cc/util:status",
"//third_party/googletest:gtest_main",
]
sources = [
"tink_config_test.cc",
]
testonly = true
}