diff --git a/.gitignore b/.gitignore index c4a6bf0f..bf158efc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_STORE + /buck-cache/ /buck-out/ /.buckconfig.local @@ -7,6 +8,8 @@ /gentest/test.html .buckversion +.build/ + # Jekyll /.sass-cache/ /_site/ diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..3aaa86be --- /dev/null +++ b/Package.swift @@ -0,0 +1,38 @@ +// swift-tools-version:5.0 + +import PackageDescription + +let package = Package( + name: "YogaKit", + platforms: [ + .macOS(.v10_10), + .iOS(.v8), + .tvOS(.v9), + .watchOS(.v2) + ], + products: [ + .library( + name: "YogaKit", + type: .static, + targets: ["YogaKit"] + ) + ], + dependencies: [], + targets: [ + .target( + name: "YogaKit", + path: "yoga", + exclude: [], + sources: ["./"], + publicHeadersPath: "include", + cSettings: [ + .headerSearchPath("./") + ] + ) + ], + swiftLanguageVersions: [ + .version("5") + ], + cLanguageStandard: .gnu11, + cxxLanguageStandard: .gnucxx14 +) diff --git a/yoga/event/event.h b/yoga/event/event.h index 309dacb5..0ec2ce96 100644 --- a/yoga/event/event.h +++ b/yoga/event/event.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include "../YGEnums.h" struct YGConfig; struct YGNode; diff --git a/yoga/include/public-header.h b/yoga/include/public-header.h new file mode 100644 index 00000000..f76b0ce2 --- /dev/null +++ b/yoga/include/public-header.h @@ -0,0 +1,15 @@ +/* + * 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 + +@import Foundation; + +#include "../Yoga.h" +#include "../YGMacros.h" +#include "../YGValue.h" +#include "../YGEnums.h"