Package.swift 375 B

12345678910
  1. import PackageDescription
  2. let package = Package(name: "CryptoSwift")
  3. // Do not build Foundation part for non-darwin systems
  4. // where Swift Foundation is outdated on incomplete
  5. // see https://github.com/apple/swift/blob/master/lib/Basic/LangOptions.cpp#L26
  6. #if !os(OSX) && !os(tvOS) && !os(iOS) && !os(watchOS)
  7. package.exclude.append("Sources/CryptoSwift/Foundation")
  8. #endif