Package.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. // swift-tools-version:5.3
  2. // The swift-tools-version declares the minimum version of Swift required to build this package.
  3. import PackageDescription
  4. let package = Package(
  5. name: "tauri-plugin-{{ plugin_name }}",
  6. platforms: [
  7. .macOS(.v10_13),
  8. .iOS(.v13),
  9. ],
  10. products: [
  11. // Products define the executables and libraries a package produces, and make them visible to other packages.
  12. .library(
  13. name: "tauri-plugin-{{ plugin_name }}",
  14. type: .static,
  15. targets: ["tauri-plugin-{{ plugin_name }}"]),
  16. ],
  17. dependencies: [
  18. .package(name: "Tauri", path: "../.tauri/tauri-api")
  19. ],
  20. targets: [
  21. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  22. // Targets can depend on other targets in this package, and on products in packages this package depends on.
  23. .target(
  24. name: "tauri-plugin-{{ plugin_name }}",
  25. dependencies: [
  26. .byName(name: "Tauri")
  27. ],
  28. path: "Sources")
  29. ]
  30. )