We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecd0282 commit 5adc114Copy full SHA for 5adc114
Package.swift
@@ -1,5 +1,6 @@
1
// swift-tools-version:5.9
2
3
+import Foundation
4
import PackageDescription
5
6
// Define libxml2 only on Linux, since it causes warnings
@@ -274,3 +275,12 @@ let package = Package(
274
275
),
276
].compactMap { $0 }
277
)
278
+
279
+func addDoccDependency() {
280
+ guard ProcessInfo.processInfo.environment["AWS_SWIFT_SDK_ENABLE_DOCC"] != nil else { return }
281
+ package.dependencies += [
282
+ .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
283
+ ]
284
+}
285
286
+addDoccDependency()
0 commit comments