Package.swift 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // swift-tools-version:5.3
  2. // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
  3. // SPDX-License-Identifier: Apache-2.0
  4. // SPDX-License-Identifier: MIT
  5. import PackageDescription
  6. let package = Package(
  7. name: "Tauri",
  8. platforms: [
  9. .macOS(.v10_13),
  10. .iOS(.v11),
  11. ],
  12. products: [
  13. // Products define the executables and libraries a package produces, and make them visible to other packages.
  14. .library(
  15. name: "Tauri",
  16. type: .static,
  17. targets: ["Tauri"])
  18. ],
  19. dependencies: [
  20. // Dependencies declare other packages that this package depends on.
  21. .package(name: "SwiftRs", url: "https://github.com/Brendonovich/swift-rs", from: "1.0.0")
  22. ],
  23. targets: [
  24. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  25. // Targets can depend on other targets in this package, and on products in packages this package depends on.
  26. .target(
  27. name: "Tauri",
  28. dependencies: [
  29. .byName(name: "SwiftRs")
  30. ],
  31. path: "Sources"
  32. ),
  33. .testTarget(
  34. name: "TauriTests",
  35. dependencies: ["Tauri"]
  36. ),
  37. ]
  38. )