Add support for Swift Package Manager #1032
@@ -11,6 +11,7 @@ let package = Package(
|
||||
products: [
|
||||
.library(
|
||||
name: "yoga",
|
||||
type: .dynamic,
|
||||
targets: ["yoga"]
|
||||
),
|
||||
],
|
||||
@@ -30,8 +31,12 @@ let package = Package(
|
||||
// "-std=c++1y",
|
||||
// "-fPIC",
|
||||
// ])
|
||||
],
|
||||
|
||||
linkerSettings: [
|
||||
.linkedFramework("Foundation"),
|
||||
.linkedFramework("UIKit", .when(platforms: [.iOS])),
|
||||
]
|
||||
)
|
||||
],
|
||||
cxxLanguageStandard: .cxx11
|
||||
cxxLanguageStandard: .cxx14
|
||||
)
|
||||
|
@@ -7,6 +7,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define YG_EXTERN_C_BEGIN extern "C" {
|
||||
#define YG_EXTERN_C_END }
|
||||
|
Reference in New Issue
Block a user
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