-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added xcframework and update swift package
- Loading branch information
Danilo
committed
May 7, 2021
1 parent
f6d250d
commit 4b993d2
Showing
37 changed files
with
2,894 additions
and
22 deletions.
There are no files selected for viewing
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,34 +1,55 @@ | ||
// swift-tools-version:5.0 | ||
// swift-tools-version:5.3 | ||
|
||
import PackageDescription | ||
|
||
// Starting with Xcode 12, we don't need to depend on our own libxml2 target | ||
#if swift(>=5.3) && !os(Linux) | ||
let dependencies: [Target.Dependency] = [] | ||
#else | ||
let dependencies: [Target.Dependency] = ["libxml2"] | ||
#endif | ||
|
||
#if swift(>=5.2) && !os(Linux) | ||
let pkgConfig: String? = nil | ||
#else | ||
let pkgConfig = "libxml-2.0" | ||
#endif | ||
|
||
#if swift(>=5.2) | ||
let provider: [SystemPackageProvider] = [ | ||
.apt(["libxml2-dev"]) | ||
] | ||
#else | ||
let provider: [SystemPackageProvider] = [ | ||
.apt(["libxml2-dev"]), | ||
.brew(["libxml2"]) | ||
] | ||
#endif | ||
|
||
let package = Package( | ||
name: "SOAPEngine", | ||
platforms: [ | ||
.iOS(.v8) | ||
.iOS(.v9), | ||
.macOS(.v10_10), | ||
.tvOS(.v9) | ||
], | ||
products: [ | ||
.library( | ||
name: "SOAPEngine", | ||
type: .static, | ||
targets: ["SOAPEngine"]) | ||
name: "SOAPEngine", | ||
targets: ["SOAPEngine"] | ||
), | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.systemLibrary( | ||
name: "slibxml2", | ||
path: "Modules", | ||
pkgConfig: "libxml-2.0", | ||
providers: [ | ||
.brew(["libxml2"]), | ||
.apt(["libxml2-dev"]) | ||
]), | ||
.target( | ||
name: "SOAPEngine", | ||
dependencies: ["slibxml2"], | ||
path: "SOAPEngine64.framework", | ||
exclude: [ | ||
"Modules", | ||
"Info.plist" | ||
]) | ||
.binaryTarget( | ||
name: "SOAPEngine", | ||
path: "SOAPEngine.xcframework" | ||
), | ||
.systemLibrary( | ||
name: "libxml2", | ||
path: "Modules", | ||
pkgConfig: pkgConfig, | ||
providers: provider | ||
) | ||
] | ||
) | ||
) |
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_i386_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>SOAPEngine64.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>i386</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>tvos-arm64</string> | ||
<key>LibraryPath</key> | ||
<string>SOAPEngineTV.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>tvos</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>tvos-arm64_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>SOAPEngineTV.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>tvos</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_armv7</string> | ||
<key>LibraryPath</key> | ||
<string>SOAPEngine64.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>armv7</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>macos-arm64_x86_64</string> | ||
<key>LibraryPath</key> | ||
<string>SOAPEngineOSX.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>macos</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
Oops, something went wrong.