fixing pod

This commit is contained in:
Jonas Salling
2020-10-09 11:49:33 +02:00
parent 91bb4139c4
commit ad32aee26b
3 changed files with 5 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ let package = Package(
name: "yoga",
dependencies: [],
path: "./yoga",
publicHeadersPath: "./apple-public",
publicHeadersPath: "./swiftpm-support",
cxxSettings: [
.headerSearchPath("../"),
],

View File

@@ -33,6 +33,7 @@ Pod::Spec.new do |spec|
'-fPIC'
]
spec.source_files = 'yoga/**/*.{c,h,cpp}'
spec.public_header_files = 'yoga/apple-public/umbrella.h'
spec.exclude_files = 'yoga/swiftpm-support/*.h'
spec.public_header_files = 'yoga/{Yoga,YGEnums,YGMacros,YGNode,YGStyle,YGValue}.h'
end

View File

@@ -8,6 +8,7 @@
#pragma once
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#include "../YGEnums.h"
@@ -16,4 +17,5 @@
#include "../YGStyle.h"
#include "../YGValue.h"
#include "../Yoga.h"
#endif