| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- // swift-tools-version: 5.10
- import PackageDescription
- let package = Package(
- name: "PluginExamples",
- dependencies: [
- .package(path: "../")
- ],
- targets: [
- .target(
- name: "Simple",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .target(
- name: "Nested",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .target(
- name: "Import",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .target(
- name: "AccessLevelOnImport",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- swiftSettings: [
- .enableExperimentalFeature("AccessLevelOnImport")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .testTarget(
- name: "ExampleTests",
- dependencies: [
- .target(name: "Simple"),
- .target(name: "Nested"),
- .target(name: "Import"),
- .target(name: "AccessLevelOnImport"),
- ]
- ),
- ]
- )
|