change for llama.cpp

This commit is contained in:
fkunn1326
2024-08-04 07:40:31 +09:00
parent 8ffbe52dbe
commit e7409f0085

View File

@ -14,25 +14,6 @@ let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("ImportObjcForwardDeclarations")
]
var dependencies: [Package.Dependency] = [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/apple/swift-algorithms", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMajor(from: "1.0.0")),
]
#if os(Windows)
dependencies.append(
.package(url: "https://github.com/fkunn1326/llama.cpp", branch: "d66c275")
)
#else
dependencies.append(
.package(url: "https://github.com/ensan-hcl/llama.cpp", branch: "9f41923")
)
#endif
let package = Package(
name: "AzooKeyKanakanjiConverter",
platforms: [.iOS(.v14), .macOS(.v12)],
@ -53,7 +34,15 @@ let package = Package(
targets: ["KanaKanjiConverterModule"]
),
],
dependencies: dependencies,
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/apple/swift-algorithms", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMajor(from: "1.0.0")),
// local package
.package(url: "https://github.com/fkunn1326/llama.cpp", branch: "b07d7f8"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.