1 parent 3b378a6 commit 302f0ffCopy full SHA for 302f0ff
2 files changed
Package.swift
@@ -10,7 +10,7 @@ let package = Package(
10
products: [
11
.library(
12
name: "SwiftSpatial",
13
- targets: ["SwiftSpatial"])
+ targets: ["SwiftSpatial"]),
14
],
15
dependencies: [
16
.package(url: "https://github.com/keyvariable/kvSIMD.swift.git", from: "1.0.3"),
@@ -41,3 +41,12 @@ let package = Package(
41
),
42
]
43
)
44
+
45
+#if !canImport(Spatial)
46
+package.targets.append(
47
+ .target(name: "Spatial", dependencies: ["SwiftSpatial"])
48
+)
49
+package.products.append(
50
+ .library(name: "Spatial", targets: ["Spatial"])
51
52
+#endif
Sources/Spatial/Spatial.swift
@@ -0,0 +1,4 @@
1
+// Export all of the SwiftSpatial public API
2
+// This is for replacing apple's Spatial on linux and windows without modifying the code
3
4
+@_exported import SwiftSpatial
0 commit comments