Skip to content

Commit 482ecea

Browse files
authored
Add top level Package.swift file (#24)
## What's Changed Adding top level Package.swift file. Arrow and ArrowFlight are included in the top level build. Closes #15.
1 parent 0a91054 commit 482ecea

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

Package.swift

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// swift-tools-version: 5.10
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
// Licensed to the Apache Software Foundation (ASF) under one
5+
// or more contributor license agreements. See the NOTICE file
6+
// distributed with this work for additional information
7+
// regarding copyright ownership. The ASF licenses this file
8+
// to you under the Apache License, Version 2.0 (the
9+
// "License"); you may not use this file except in compliance
10+
// with the License. You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing,
15+
// software distributed under the License is distributed on an
16+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
// KIND, either express or implied. See the License for the
18+
// specific language governing permissions and limitations
19+
// under the License.
20+
21+
import PackageDescription
22+
23+
let package = Package(
24+
name: "ArrowSwift",
25+
platforms: [
26+
.macOS(.v10_15)
27+
],
28+
products: [
29+
.library(
30+
name: "Arrow",
31+
targets: ["Arrow"])
32+
],
33+
dependencies: [
34+
.package(url: "https://github.com/google/flatbuffers.git", branch: "v25.2.10"),
35+
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.25.0"),
36+
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.29.0"),
37+
.package(
38+
url: "https://github.com/apple/swift-atomics.git",
39+
.upToNextMajor(from: "1.2.0") // or `.upToNextMinor
40+
)
41+
],
42+
targets: [
43+
.target(
44+
name: "ArrowC",
45+
path: "Arrow/Sources/ArrowC",
46+
swiftSettings: [
47+
// build: .unsafeFlags(["-warnings-as-errors"])
48+
]
49+
50+
),
51+
.target(
52+
name: "Arrow",
53+
dependencies: ["ArrowC",
54+
.product(name: "FlatBuffers", package: "flatbuffers"),
55+
.product(name: "Atomics", package: "swift-atomics")
56+
],
57+
path: "Arrow/Sources/Arrow",
58+
swiftSettings: [
59+
// build: .unsafeFlags(["-warnings-as-errors"])
60+
]
61+
),
62+
.target(
63+
name: "ArrowFlight",
64+
dependencies: [
65+
"Arrow",
66+
.product(name: "GRPC", package: "grpc-swift"),
67+
.product(name: "SwiftProtobuf", package: "swift-protobuf")
68+
],
69+
path: "ArrowFlight/Sources/ArrowFlight",
70+
swiftSettings: [
71+
// build: .unsafeFlags(["-warnings-as-errors"])
72+
]
73+
),
74+
.testTarget(
75+
name: "ArrowTests",
76+
dependencies: ["Arrow", "ArrowC"],
77+
path: "Arrow/Tests",
78+
swiftSettings: [
79+
// build: .unsafeFlags(["-warnings-as-errors"])
80+
]
81+
),
82+
.testTarget(
83+
name: "ArrowFlightTests",
84+
dependencies: ["ArrowFlight"],
85+
path: "ArrowFlight/Tests",
86+
swiftSettings: [
87+
// build: .unsafeFlags(["-warnings-as-errors"])
88+
]
89+
)
90+
91+
]
92+
)

0 commit comments

Comments
 (0)