Package.swift 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. // swift-tools-version:5.7
  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. .iOS(.v11),
  8. ],
  9. products: [
  10. // Products define the executables and libraries a package produces, and make them visible to other packages.
  11. .library(
  12. name: "tauri-plugin-{{ plugin_name }}",
  13. type: .static,
  14. targets: ["tauri-plugin-{{ plugin_name }}"]),
  15. ],
  16. dependencies: [
  17. .package(name: "Tauri", path: "./tauri-api")
  18. ],
  19. targets: [
  20. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  21. // Targets can depend on other targets in this package, and on products in packages this package depends on.
  22. .target(
  23. name: "tauri-plugin-{{ plugin_name }}",
  24. dependencies: [
  25. .byName(name: "Tauri")
  26. ],
  27. path: "Sources")
  28. ]
  29. )