Skip to content

Commit

Permalink
Use FOUNDATION_FRAMEWORK on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgriselli committed Oct 14, 2024
1 parent 2cf88e8 commit ec39423
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

import PackageDescription

func swiftSettings() -> [SwiftSetting] {
return [
.define("FOUNDATION_FRAMEWORK", .when(platforms: [.linux])),
]
}

let package = Package(
name: "XcodeGen",
platforms: [.macOS(.v10_13)],
Expand Down Expand Up @@ -33,7 +39,7 @@ let package = Package(
"Rainbow",
"PathKit",
"Version",
]),
], swiftSettings: swiftSettings()),
.target(name: "XcodeGenKit", dependencies: [
"ProjectSpec",
"JSONUtilities",
Expand All @@ -42,52 +48,52 @@ let package = Package(
"XcodeGenCore",
], resources: [
.copy("SettingPresets")
]),
], swiftSettings: swiftSettings()),
.target(name: "ProjectSpec", dependencies: [
"JSONUtilities",
"XcodeProj",
"Yams",
"XcodeGenCore",
"Version",
]),
], swiftSettings: swiftSettings()),
.target(name: "XcodeGenCore", dependencies: [
"PathKit",
"Yams",
]),
], swiftSettings: swiftSettings()),
.target(name: "TestSupport", dependencies: [
"XcodeProj",
"Spectre",
"PathKit",
]),
], swiftSettings: swiftSettings()),
.testTarget(name: "XcodeGenKitTests", dependencies: [
"XcodeGenKit",
"Spectre",
"PathKit",
"TestSupport",
]),
], swiftSettings: swiftSettings()),
.testTarget(name: "FixtureTests", dependencies: [
"XcodeGenKit",
"Spectre",
"PathKit",
"TestSupport",
]),
], swiftSettings: swiftSettings()),
.testTarget(name: "XcodeGenCoreTests", dependencies: [
"XcodeGenCore",
"Spectre",
"PathKit",
"TestSupport",
]),
], swiftSettings: swiftSettings()),
.testTarget(name: "ProjectSpecTests", dependencies: [
"ProjectSpec",
"Spectre",
"PathKit",
"TestSupport",
]),
], swiftSettings: swiftSettings()),
.testTarget(name: "PerformanceTests", dependencies: [
"XcodeGenKit",
"Spectre",
"PathKit",
"TestSupport",
]),
], swiftSettings: swiftSettings()),
]
)

0 comments on commit ec39423

Please sign in to comment.