cleanup
This commit is contained in:
@@ -11,7 +11,6 @@ let package = Package(
|
|||||||
products: [
|
products: [
|
||||||
.library(
|
.library(
|
||||||
name: "yoga",
|
name: "yoga",
|
||||||
type: .dynamic,
|
|
||||||
targets: ["yoga"]
|
targets: ["yoga"]
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -20,6 +19,7 @@ let package = Package(
|
|||||||
name: "yoga",
|
name: "yoga",
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
path: "./yoga",
|
path: "./yoga",
|
||||||
|
publicHeadersPath: "./apple-public",
|
||||||
cxxSettings: [
|
cxxSettings: [
|
||||||
.headerSearchPath("../"),
|
.headerSearchPath("../"),
|
||||||
],
|
],
|
||||||
|
@@ -33,7 +33,6 @@ Pod::Spec.new do |spec|
|
|||||||
'-fPIC'
|
'-fPIC'
|
||||||
]
|
]
|
||||||
spec.source_files = 'yoga/**/*.{c,h,cpp}'
|
spec.source_files = 'yoga/**/*.{c,h,cpp}'
|
||||||
spec.exclude_files = 'yoga/include/*.h'
|
spec.public_header_files = 'yoga/apple-public/umbrella.h'
|
||||||
spec.public_header_files = 'yoga/{Yoga,YGEnums,YGMacros,YGNode,YGStyle,YGValue}.h'
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@@ -7,16 +7,6 @@
|
|||||||
|
|
||||||
#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 }
|
||||||
|
19
yoga/apple-public/umbrella.h
Normal file
19
yoga/apple-public/umbrella.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __OBJC__
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
#include "../YGEnums.h"
|
||||||
|
#include "../YGMacros.h"
|
||||||
|
#include "../YGNode.h"
|
||||||
|
#include "../YGStyle.h"
|
||||||
|
#include "../YGValue.h"
|
||||||
|
#include "../Yoga.h"
|
||||||
|
#endif
|
@@ -1 +0,0 @@
|
|||||||
../YGEnums.h
|
|
@@ -1 +0,0 @@
|
|||||||
../YGMacros.h
|
|
@@ -1 +0,0 @@
|
|||||||
../YGNode.h
|
|
@@ -1 +0,0 @@
|
|||||||
../YGStyle.h
|
|
@@ -1 +0,0 @@
|
|||||||
../YGValue.h
|
|
@@ -1 +0,0 @@
|
|||||||
../Yoga.h
|
|
Reference in New Issue
Block a user