Package.swift 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // swift-tools-version: 5.6
  2. import PackageDescription
  3. let package = Package(
  4. name: "PluginExamples",
  5. dependencies: [
  6. .package(name: "swift-protobuf", path: "../")
  7. ],
  8. targets: [
  9. .testTarget(
  10. name: "ExampleTests",
  11. dependencies: [
  12. .target(name: "Simple"),
  13. .target(name: "Nested"),
  14. .target(name: "Import"),
  15. ]
  16. ),
  17. .target(
  18. name: "Simple",
  19. dependencies: [
  20. .product(name: "SwiftProtobuf", package: "swift-protobuf"),
  21. ],
  22. plugins: [
  23. .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
  24. ]
  25. ),
  26. .target(
  27. name: "Nested",
  28. dependencies: [
  29. .product(name: "SwiftProtobuf", package: "swift-protobuf"),
  30. ],
  31. plugins: [
  32. .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
  33. ]
  34. ),
  35. .target(
  36. name: "Import",
  37. dependencies: [
  38. .product(name: "SwiftProtobuf", package: "swift-protobuf"),
  39. ],
  40. plugins: [
  41. .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
  42. ]
  43. ),
  44. ]
  45. )