[yoga] Support SPM (Swift Package Manager) #1096

Closed
cntrump wants to merge 6 commits from pr_swift_package_manager_support into main
9 changed files with 99 additions and 12 deletions
Showing only changes of commit cdb5f82ab5 - Show all commits

View File

@@ -8,10 +8,10 @@
#import <TargetConditionals.h>
#if TARGET_OS_OSX
#import <AppKit/AppKit.h>
@import AppKit;
#define UIView NSView
#else
#import <UIKit/UIKit.h>
@import UIKit;
#endif
#import "YogaKit.h"

View File

@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import <objc/runtime.h>
#import "UIView+Yoga.h"
#import "YGLayout+Private.h"
@import ObjectiveC;
static const void* kYGYogaAssociatedKey = &kYGYogaAssociatedKey;

View File

@@ -8,9 +8,9 @@
#import <TargetConditionals.h>
#if TARGET_OS_OSX
#import <AppKit/AppKit.h>
@import AppKit;
#else
#import <UIKit/UIKit.h>
@import UIKit;
#endif
#import "../../yoga/YGEnums.h"

View File

@@ -1,2 +0,0 @@
#import "../YogaKit.h"
#import "../UIView+Yoga.h"

View File

@@ -1,4 +1,5 @@
module YogaKit {
umbrella header "YogaKit-umbrella.h"
header "../YogaKit.h"
header "../UIView+Yoga.h"
export *
}

View File

@@ -1,8 +0,0 @@
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
#import "../YGEnums.h"
#import "../YGMacros.h"
#import "../YGValue.h"
#import "../Yoga.h"

View File

@@ -1,4 +1,7 @@
module Yoga [extern_c] {
umbrella header "Yoga-umbrella.h"
header "../Yoga.h"
header "../YGValue.h"
header "../YGMacros.h"
header "../YGEnums.h"
export *
}