blob: ae3f53099eb253d1e97608e0f92cf01dd5d79c75 [file] [log] [blame]
Kino Roy72d59122022-09-06 17:34:02 -07001// swift-tools-version:5.1
2/*
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 */
20
21import PackageDescription
22
23let thriftDependency: Target.Dependency = .product(name: "Thrift", package: "swift-dep")
24let package = Package(
25 name: "swift-tutorial",
26 platforms: [
27 .macOS(.v10_13)
28 ],
29 products: [
30 // Products define the executables and libraries a package produces, and make them visible to other packages.
31 .executable(name: "TutorialServer", targets: ["TutorialServer"]),
32 .executable(name: "TutorialClient", targets: ["TutorialClient"]),
33 .executable(name: "TutorialRunner", targets: ["TutorialRunner"])
34 ],
35 dependencies: [
36 // Dependencies declare other packages that this package depends on.
37 .package(path: "./swift-dep"),
38 ],
39 targets: [
40 // Targets are the basic building blocks of a package. A target can define a module or a test suite.
41 // Targets can depend on other targets in this package, and on products in packages this package depends on.
42 .target(
43 name: "Common",
44 dependencies: [thriftDependency]),
45 .target(
46 name: "TutorialServer",
47 dependencies: [thriftDependency, "Common"]),
48 .target(
49 name: "TutorialClient",
50 dependencies: [thriftDependency, "Common"]),
51 .target(name: "TutorialRunner")
52 ]
53)