| # Copyright 2019 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. |
| |
| import("$zx_build/public/gn/library_shim.gni") |
| |
| # TODO(mcgrathr): In the makefile build this actually had SONAME |
| # "system/ulib/crypto", which is pretty insane. But there is |
| # a conflicting libcrypto.so from //third_party/boringssl in higher layers. |
| |
| group("crypto") { |
| public_deps = [ |
| ":zircon-crypto", |
| ] |
| } |
| |
| group("headers") { |
| public_deps = [ |
| ":zircon-crypto.headers", |
| ] |
| } |
| |
| library("zircon-crypto") { |
| shared = true |
| sources = [ |
| "aead.cc", |
| "bytes.cc", |
| "cipher.cc", |
| "digest.cc", |
| "error.cc", |
| "hkdf.cc", |
| "hmac.cc", |
| "secret.cc", |
| ] |
| deps = [ |
| "$zx/system/ulib/explicit-memory", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zircon-internal", |
| "$zx/third_party/ulib/uboringssl", |
| ] |
| configs += [ "$zx_build/public/gn/config:static-libc++" ] |
| } |