Add support for Swift Package Manager #1032
36
Package.swift
Normal file
36
Package.swift
Normal file
@@ -0,0 +1,36 @@
|
||||
// swift-tools-version:5.3
|
||||
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "yoga",
|
||||
platforms: [
|
||||
.iOS(.v14),
|
||||
],
|
||||
products: [
|
||||
.library(
|
||||
name: "yoga",
|
||||
targets: ["yoga"]
|
||||
),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "yoga",
|
||||
dependencies: [],
|
||||
path: "./yoga",
|
||||
publicHeadersPath: "./yoga",
|
||||
cxxSettings: [
|
||||
.headerSearchPath("../"),
|
||||
.unsafeFlags([
|
||||
"-fno-omit-frame-pointer",
|
||||
"-fexceptions",
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-std=c++1y",
|
||||
"-fPIC",
|
||||
])
|
||||
]
|
||||
)
|
||||
![]() this should probably be this should probably be `.cxx17`, as this is the version we are typically using internally.
![]() Yoga is targeting C++14 for a little bit longer. There was some unhappiness when I tried to bump from C++ 11 directly to 17. LLVM has had C++ 17 support for almost six years though, so I do plan for us to do a bump later this year. Same rules for same infra, and unlocking more support. See https://github.com/facebook/yoga/pull/1203 for discussion Yoga is targeting C++14 for a little bit longer. There was some unhappiness when I tried to bump from C++ 11 directly to 17.
LLVM has had C++ 17 support for almost six years though, so I do plan for us to do a bump later this year. Same rules for same infra, and unlocking more support.
See https://github.com/facebook/yoga/pull/1203 for discussion
|
||||
]
|
||||
)
|
Reference in New Issue
Block a user
we can probably use a more recent version of swift-tools here. At least
5.8
, until Xcode 15 become stable.We should maybe consider bumping this in CocoaPods as well then, which is currently set on 5.1