diff options
author | ambrosin <ambrosin@google.com> | 2023-02-13 12:13:28 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-13 12:15:51 -0800 |
commit | 3e85b075f124899e70e440998437d3c3dbaf6e4e (patch) | |
tree | d04ea97efb6a2de903ea70476ba91833e47ee5c2 /cmake | |
parent | bf00eaceab125cae2c9758c3ac1a9ec59856e374 (diff) | |
download | tink-3e85b075f124899e70e440998437d3c3dbaf6e4e.tar.gz |
Add genrules to copy wycheproof test vectors locally in Tink C++.
This is needed as a bridge as we enable, and eventually move towards using, Bazel Modules. Bazel Modules use different repository names (https://bazel.build/versions/6.0.0/build/bzlmod#repository-names), so this change is needed to allow WORKSPACE and Module based package definitions to coexist.
PiperOrigin-RevId: 509297684
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/TinkWorkspace.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/TinkWorkspace.cmake b/cmake/TinkWorkspace.cmake index d58731feb..117b9bb5e 100644 --- a/cmake/TinkWorkspace.cmake +++ b/cmake/TinkWorkspace.cmake @@ -86,8 +86,9 @@ http_archive( ) # Symlink the Wycheproof test data. -# Paths are hard-coded in tests, which expects wycheproof/ in this location. -add_directory_alias("${wycheproof_SOURCE_DIR}" "${CMAKE_BINARY_DIR}/external/wycheproof") +# Tests expect Wycheproof test vectors to be in a local testvectors/ folder. +add_directory_alias("${wycheproof_SOURCE_DIR}/testvectors" + "${CMAKE_BINARY_DIR}/testvectors") # Don't fetch BoringSSL or look for OpenSSL if target `crypto` is already # defined. |