Some highlights from NEWS: ** bio: fix CTAP2 canonical CBOR encoding in fido_bio_dev_enroll_*(); gh#480. ** New API calls: - fido_dev_info_set; - fido_dev_io_handle; - fido_dev_new_with_info; - fido_dev_open_with_info. ** Documentation and reliability fixes. ** Support for TPM 2.0 attestation of COSE_ES256 credentials. Relnotes: Yes Sponsored by: The FreeBSD Foundation
98 lines
3.3 KiB
PowerShell
98 lines
3.3 KiB
PowerShell
# Copyright (c) 2021 Yubico AB. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$Architectures = @('x64', 'Win32', 'ARM64', 'ARM')
|
|
$InstallPrefixes = @('Win64', 'Win32', 'ARM64', 'ARM')
|
|
$Types = @('dynamic', 'static')
|
|
$Config = 'Release'
|
|
$LibCrypto = '47'
|
|
$SDK = '143'
|
|
|
|
. "$PSScriptRoot\const.ps1"
|
|
|
|
foreach ($Arch in $Architectures) {
|
|
foreach ($Type in $Types) {
|
|
./build.ps1 -Arch ${Arch} -Type ${Type} -Config ${Config}
|
|
}
|
|
}
|
|
|
|
foreach ($InstallPrefix in $InstallPrefixes) {
|
|
foreach ($Type in $Types) {
|
|
New-Item -Type Directory `
|
|
"${OUTPUT}/pkg/${InstallPrefix}/${Config}/v${SDK}/${Type}"
|
|
}
|
|
}
|
|
|
|
Function Package-Headers() {
|
|
Copy-Item "${OUTPUT}\x64\dynamic\include" -Destination "${OUTPUT}\pkg" `
|
|
-Recurse -ErrorAction Stop
|
|
}
|
|
|
|
Function Package-Dynamic(${SRC}, ${DEST}) {
|
|
Copy-Item "${SRC}\bin\cbor.dll" "${DEST}"
|
|
Copy-Item "${SRC}\lib\cbor.lib" "${DEST}"
|
|
Copy-Item "${SRC}\bin\zlib1.dll" "${DEST}"
|
|
Copy-Item "${SRC}\lib\zlib.lib" "${DEST}"
|
|
Copy-Item "${SRC}\bin\crypto-${LibCrypto}.dll" "${DEST}"
|
|
Copy-Item "${SRC}\lib\crypto-${LibCrypto}.lib" "${DEST}"
|
|
Copy-Item "${SRC}\bin\fido2.dll" "${DEST}"
|
|
Copy-Item "${SRC}\lib\fido2.lib" "${DEST}"
|
|
}
|
|
|
|
Function Package-Static(${SRC}, ${DEST}) {
|
|
Copy-Item "${SRC}/lib/cbor.lib" "${DEST}"
|
|
Copy-Item "${SRC}/lib/zlib.lib" "${DEST}"
|
|
Copy-Item "${SRC}/lib/crypto-${LibCrypto}.lib" "${DEST}"
|
|
Copy-Item "${SRC}/lib/fido2_static.lib" "${DEST}/fido2.lib"
|
|
}
|
|
|
|
Function Package-PDBs(${SRC}, ${DEST}) {
|
|
Copy-Item "${SRC}\${LIBRESSL}\crypto\crypto_obj.dir\${Config}\crypto_obj.pdb" `
|
|
"${DEST}\crypto-${LibCrypto}.pdb"
|
|
Copy-Item "${SRC}\${LIBCBOR}\src\cbor.dir\${Config}\vc${SDK}.pdb" `
|
|
"${DEST}\cbor.pdb"
|
|
Copy-Item "${SRC}\${ZLIB}\zlib.dir\${Config}\vc${SDK}.pdb" `
|
|
"${DEST}\zlib.pdb"
|
|
Copy-Item "${SRC}\src\fido2_shared.dir\${Config}\vc${SDK}.pdb" `
|
|
"${DEST}\fido2.pdb"
|
|
}
|
|
|
|
Function Package-StaticPDBs(${SRC}, ${DEST}) {
|
|
Copy-Item "${SRC}\${LIBRESSL}\crypto\Release\crypto-${LibCrypto}.pdb" `
|
|
"${DEST}\crypto-${LibCrypto}.pdb"
|
|
Copy-Item "${SRC}\${LIBCBOR}\src\Release\cbor.pdb" `
|
|
"${DEST}\cbor.pdb"
|
|
Copy-Item "${SRC}\${ZLIB}\Release\zlibstatic.pdb" `
|
|
"${DEST}\zlib.pdb"
|
|
Copy-Item "${SRC}\src\Release\fido2_static.pdb" `
|
|
"${DEST}\fido2.pdb"
|
|
}
|
|
|
|
Function Package-Tools(${SRC}, ${DEST}) {
|
|
Copy-Item "${SRC}\tools\${Config}\fido2-assert.exe" `
|
|
"${DEST}\fido2-assert.exe"
|
|
Copy-Item "${SRC}\tools\${Config}\fido2-cred.exe" `
|
|
"${DEST}\fido2-cred.exe"
|
|
Copy-Item "${SRC}\tools\${Config}\fido2-token.exe" `
|
|
"${DEST}\fido2-token.exe"
|
|
}
|
|
|
|
Package-Headers
|
|
|
|
for ($i = 0; $i -lt $Architectures.Length; $i++) {
|
|
$Arch = $Architectures[$i]
|
|
$InstallPrefix = $InstallPrefixes[$i]
|
|
Package-Dynamic "${OUTPUT}\${Arch}\dynamic" `
|
|
"${OUTPUT}\pkg\${InstallPrefix}\${Config}\v${SDK}\dynamic"
|
|
Package-PDBs "${BUILD}\${Arch}\dynamic" `
|
|
"${OUTPUT}\pkg\${InstallPrefix}\${Config}\v${SDK}\dynamic"
|
|
Package-Tools "${BUILD}\${Arch}\dynamic" `
|
|
"${OUTPUT}\pkg\${InstallPrefix}\${Config}\v${SDK}\dynamic"
|
|
Package-Static "${OUTPUT}\${Arch}\static" `
|
|
"${OUTPUT}\pkg\${InstallPrefix}\${Config}\v${SDK}\static"
|
|
Package-StaticPDBs "${BUILD}\${Arch}\static" `
|
|
"${OUTPUT}\pkg\${InstallPrefix}\${Config}\v${SDK}\static"
|
|
}
|