Add support for Swift Package Manager #1032

Closed
salling wants to merge 17 commits from swiftpm into main
9 changed files with 50 additions and 1 deletions
Showing only changes of commit ee0e3ade74 - Show all commits

View File

@@ -6,26 +6,27 @@ import PackageDescription
let package = Package( let package = Package(
name: "yoga", name: "yoga",
platforms: [ platforms: [
.iOS(.v14), .iOS(.v14),
], ],
products: [ products: [
.library( .library(
name: "yoga", name: "yoga",
type: .dynamic,
targets: ["yoga"] targets: ["yoga"]
), ),
], ],
targets: [ targets: [
.target( .target(
name: "yoga", name: "yoga",
dependencies: [], dependencies: [],
path: "./yoga", path: "./yoga",
cxxSettings: [ cxxSettings: [
.headerSearchPath("../"), .headerSearchPath("../"),
], ],
linkerSettings: [ linkerSettings: [
.linkedFramework("Foundation"), .linkedFramework("Foundation"),
] ]
) )
], ],
cxxLanguageStandard: .cxx14 cxxLanguageStandard: .cxx14
) )