diff --git a/.gitignore b/.gitignore index 38f98763..08132e82 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,6 @@ sqlite-vec.h tmp/ poetry.lock -pyproject.toml \ No newline at end of file +pyproject.toml + +.swiftpm \ No newline at end of file diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..2b78f12a --- /dev/null +++ b/Package.swift @@ -0,0 +1,44 @@ +// swift-tools-version:5.10 +import PackageDescription + +let sources = [ + "sqlite-vec.c", + "sqlite-vec.h", + "sqlite3ext.h", + "sqlite3.h" +] + +let package = Package( + name: "SQLiteVec", + platforms: [ + .iOS(.v17) + ], + products: [ + .library( + name: "SQLiteVec", + type: .static, + targets: ["SQLiteVec"] + ) + ], + targets: [ + .target( + name: "SQLiteVec", + path: ".", + sources: sources, + publicHeadersPath: ".", + cSettings: [ + .headerSearchPath(".") + ], + swiftSettings: [ + .interoperabilityMode(.C) + ] + ), +// .testTarget( +// name: "SQLiteVecTests", +// dependencies: [ +// .product(name: "SQLiteVec") +// ] +// ) + ], + cxxLanguageStandard: .cxx11 +)