-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patryk Średziński
committed
Dec 5, 2024
1 parent
ee481aa
commit 86b55b9
Showing
2 changed files
with
26 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,38 @@ | ||
// swift-tools-version:5.7 | ||
import PackageDescription | ||
// swift-tools-version: 6.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
let headersSearchPath: [CSetting] = [.headerSearchPath("."), | ||
.headerSearchPath("Base"), | ||
.headerSearchPath("Debug"), | ||
.headerSearchPath("Details"), | ||
.headerSearchPath("Details/Transactions"), | ||
.headerSearchPath("Layout"), | ||
.headerSearchPath("Private"), | ||
.headerSearchPath("Private/Layout"), | ||
.headerSearchPath("TextExperiment/Component"), | ||
.headerSearchPath("TextExperiment/String"), | ||
.headerSearchPath("TextExperiment/Utility"), | ||
.headerSearchPath("TextKit"), | ||
.headerSearchPath("tvOS"),] | ||
import PackageDescription | ||
|
||
let sharedDefines: [CSetting] = [ | ||
// Disable "old" textnode by default for SPM | ||
.define("AS_ENABLE_TEXTNODE", to: "0"), | ||
|
||
// PINRemoteImage always available for Texture | ||
.define("AS_PIN_REMOTE_IMAGE", to: "1"), | ||
|
||
// always disabled | ||
.define("IG_LIST_COLLECTION_VIEW", to: "0"),] | ||
let headersSearchPath: [CSetting] = [ | ||
.headerSearchPath("."), | ||
.headerSearchPath("Base"), | ||
.headerSearchPath("Debug"), | ||
.headerSearchPath("Details"), | ||
.headerSearchPath("Details/Transactions"), | ||
.headerSearchPath("Layout"), | ||
.headerSearchPath("Private"), | ||
.headerSearchPath("Private/Layout"), | ||
.headerSearchPath("TextExperiment/Component"), | ||
.headerSearchPath("TextExperiment/String"), | ||
.headerSearchPath("TextExperiment/Utility"), | ||
.headerSearchPath("TextKit"), | ||
.headerSearchPath("tvOS"), | ||
] | ||
|
||
let package = Package( | ||
name: "AsyncDisplayKit", | ||
platforms: [ | ||
.iOS(.v8) | ||
], | ||
name: "Texture", | ||
products: [ | ||
.library( | ||
name: "AsyncDisplayKit", | ||
targets: ["AsyncDisplayKit"] | ||
) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/pinterest/PINRemoteImage.git", .branch("master")), | ||
name: "Texture", | ||
targets: ["Texture"] | ||
), | ||
], | ||
targets: [ | ||
.target( | ||
name: "AsyncDisplayKit", | ||
dependencies: ["PINRemoteImage"], | ||
path: "Source" | ||
name: "Texture", | ||
path: "Source", | ||
publicHeadersPath: ".", | ||
cSettings: headersSearchPath | ||
) | ||
] | ||
) |