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