Package@swift-5.10.swift 1.7 KB

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