[yoga] Support SPM (Swift Package Manager) #1096
@@ -27,20 +27,20 @@ let package = Package(
|
|||||||
.target(
|
.target(
|
||||||
name: "YogaKit",
|
name: "YogaKit",
|
||||||
dependencies: ["Yoga"],
|
dependencies: ["Yoga"],
|
||||||
path: ".",
|
path: "YogaKit",
|
||||||
exclude: ["YogaKit/Source/YGLayoutExtensions.swift"],
|
exclude: ["Source/YGLayoutExtensions.swift"],
|
||||||
sources: ["YogaKit/Source"],
|
sources: ["Source"],
|
||||||
publicHeadersPath: "YogaKit/Source",
|
publicHeadersPath: "Source/modulemap",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
.headerSearchPath(".")
|
.headerSearchPath("..")
|
||||||
]),
|
]),
|
||||||
.target(
|
.target(
|
||||||
name: "Yoga",
|
name: "Yoga",
|
||||||
path: ".",
|
path: "yoga",
|
||||||
sources: ["yoga"],
|
sources: ["."],
|
||||||
publicHeadersPath: "yoga/include",
|
publicHeadersPath: "modulemap",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
.headerSearchPath(".")
|
.headerSearchPath("..")
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
cLanguageStandard: .gnu11,
|
cLanguageStandard: .gnu11,
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#import "YGLayout.h"
|
#import "YogaKit.h"
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import <yoga/Yoga.h>
|
#import "../../yoga/Yoga.h"
|
||||||
#import "YGLayout.h"
|
#import "YogaKit.h"
|
||||||
|
|
||||||
@interface YGLayout ()
|
@interface YGLayout ()
|
||||||
|
|
||||||
|
@@ -13,9 +13,9 @@
|
|||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#import <yoga/YGEnums.h>
|
#import "../../yoga/YGEnums.h"
|
||||||
#import <yoga/YGMacros.h>
|
#import "../../yoga/YGMacros.h"
|
||||||
#import <yoga/Yoga.h>
|
#import "../../yoga/Yoga.h"
|
||||||
|
|
||||||
YG_EXTERN_C_BEGIN
|
YG_EXTERN_C_BEGIN
|
||||||
|
|
2
YogaKit/Source/modulemap/YogaKit-umbrella.h
Normal file
2
YogaKit/Source/modulemap/YogaKit-umbrella.h
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#import "../YogaKit.h"
|
||||||
|
#import "../UIView+Yoga.h"
|
4
YogaKit/Source/modulemap/module.modulemap
Normal file
4
YogaKit/Source/modulemap/module.modulemap
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module YogaKit {
|
||||||
|
umbrella header "YogaKit-umbrella.h"
|
||||||
|
export *
|
||||||
|
}
|
8
yoga/modulemap/Yoga-umbrella.h
Normal file
8
yoga/modulemap/Yoga-umbrella.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#ifdef __OBJC__
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#import "../YGEnums.h"
|
||||||
|
#import "../YGMacros.h"
|
||||||
|
#import "../YGValue.h"
|
||||||
|
#import "../Yoga.h"
|
4
yoga/modulemap/module.modulemap
Normal file
4
yoga/modulemap/module.modulemap
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module Yoga [extern_c] {
|
||||||
|
umbrella header "Yoga-umbrella.h"
|
||||||
|
export *
|
||||||
|
}
|
Reference in New Issue
Block a user