mirror of
https://github.com/facebookincubator/QuickLayout
synced 2026-04-21 13:37:22 +00:00
81 lines
1.9 KiB
Swift
81 lines
1.9 KiB
Swift
// swift-tools-version: 6.2
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import CompilerPluginSupport
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "QuickLayout",
|
|
platforms: [
|
|
.iOS(.v15),
|
|
.macOS(.v10_15),
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "QuickLayout",
|
|
targets: ["QuickLayout"]
|
|
),
|
|
.library(
|
|
name: "QuickLayoutCore",
|
|
targets: ["QuickLayoutCore"]
|
|
),
|
|
.library(
|
|
name: "FastResultBuilder",
|
|
targets: ["FastResultBuilder"]
|
|
),
|
|
.library(
|
|
name: "QuickLayoutBridge",
|
|
targets: ["QuickLayoutBridge"]
|
|
),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-syntax.git", from: "602.0.0")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "QuickLayout",
|
|
dependencies: [
|
|
"QuickLayoutMacro",
|
|
"QuickLayoutBridge",
|
|
],
|
|
path: "Sources/QuickLayout/QuickLayout",
|
|
exclude: [
|
|
"__showcase__/"
|
|
]
|
|
),
|
|
.macro(
|
|
name: "QuickLayoutMacro",
|
|
dependencies: [
|
|
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
|
|
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
|
|
],
|
|
path: "Sources/QuickLayout/QuickLayoutMacro",
|
|
),
|
|
.target(
|
|
name: "QuickLayoutCore",
|
|
path: "Sources/QuickLayout/QuickLayoutCore",
|
|
),
|
|
.target(
|
|
name: "FastResultBuilder",
|
|
path: "Sources/FastResultBuilder/FastResultBuilder",
|
|
exclude: [
|
|
"__tests__/"
|
|
]
|
|
),
|
|
.target(
|
|
name: "QuickLayoutBridge",
|
|
dependencies: ["FastResultBuilder", "QuickLayoutCore"],
|
|
path: "Sources/QuickLayout/QuickLayoutBridge",
|
|
exclude: [
|
|
"__server_snapshot_tests__",
|
|
"__tests__",
|
|
]
|
|
),
|
|
],
|
|
)
|