fixin things!

This commit is contained in:
Jonas Salling
2020-10-08 16:09:53 +02:00
parent 9b42ac9530
commit 64be0d569c
2 changed files with 17 additions and 2 deletions

View File

@@ -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
)

View File

@@ -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 }