build: allow building on Windows (#53)
This allows us to build on Windows, though not entirely. The assembly routines need to be generated for the Windows targets, but this is required to get to that point. With this set of changes, we are able to get to the point where we can start linking the `crypto-shasum` target, which exposes the missing symbols. Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
parent
ef6f94da02
commit
8b1daa33f6
|
@ -46,7 +46,17 @@ let package = Package(
|
|||
],
|
||||
dependencies: [],
|
||||
targets: [
|
||||
.target(name: "CCryptoBoringSSL"),
|
||||
.target(
|
||||
name: "CCryptoBoringSSL",
|
||||
cSettings: [
|
||||
/*
|
||||
* This define is required on Windows, but because we need older
|
||||
* versions of SPM, we cannot conditionally define this on Windows
|
||||
* only. Unconditionally define it instead.
|
||||
*/
|
||||
.define("WIN32_LEAN_AND_MEAN"),
|
||||
]
|
||||
),
|
||||
.target(name: "CCryptoBoringSSLShims", dependencies: ["CCryptoBoringSSL"]),
|
||||
.target(name: "Crypto", dependencies: ["CCryptoBoringSSL", "CCryptoBoringSSLShims"], swiftSettings: swiftSettings),
|
||||
.target(name: "crypto-shasum", dependencies: ["Crypto"]),
|
||||
|
|
Loading…
Reference in New Issue