Skip to content

Commit

Permalink
Build LotsawaC on SPM.
Browse files Browse the repository at this point in the history
Still can't figure out how to test.
  • Loading branch information
dabrahams committed Jan 11, 2025
1 parent 2b8dbbe commit 6fdcaa1
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ let package = Package(
.library(
name: "Lotsawa",
targets: ["Lotsawa"]),
/*
.library(
name: "LotsawaC",
targets: ["LotsawaC"]),
*/
.library(
name: "LotsawaFrontend",
targets: ["LotsawaFrontend"]),
Expand All @@ -43,12 +41,11 @@ let package = Package(
.target(
name: "Lotsawa",
dependencies: []),
/* Can't figure out how to get the import header LotsawaC.h
.target(
name: "LotsawaC",
dependencies: ["Lotsawa"]),

*/
dependencies: ["Lotsawa"],
swiftSettings: [
.unsafeFlags(["-import-objc-header", "Sources/LotsawaC/include/LotsawaC.h"])]),
.target(
name: "LotsawaFrontend",
dependencies: ["Lotsawa"]),
Expand All @@ -61,8 +58,8 @@ let package = Package(
dependencies: ["Lotsawa", "LotsawaFrontend"]),
/*
.testTarget(
name: "LotsawaCTests",
dependencies: ["LotsawaC"])
*/
name: "LotsawaCTests",
dependencies: ["LotsawaC"]),
*/
]
)

0 comments on commit 6fdcaa1

Please sign in to comment.