-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Package.swift
29 lines (27 loc) · 1.27 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftAA",
platforms: [.macOS(.v10_13), .iOS(.v12)],
products: [
// The AAplus product is the C++ project this one wraps.
.library(name: "AAplus", targets: ["AAplus"]),
// The AABridge product provides C (not Objective-C) bindings for AAplus for Swift to use.
.library(name: "AABridge", targets: ["AABridge"]),
// …and finally, SwiftAA provides the Swift interface.
.library(name: "SwiftAA", targets: ["SwiftAA"])
],
targets: [
.target(
name: "AAplus", path: "Sources/AA+",
exclude: ["naughter.css", "CMakeLists.txt", "AA+.htm", "AAVSOP2013.h", "AA+.h", "AAVSOP2013.cpp", "AATest.cpp"],
publicHeadersPath: ""
),
.target(name: "AABridge", dependencies: ["AAplus"]),
.testTarget( name: "AABridgeTests", dependencies: ["AABridge"]),
.target(name: "SwiftAA", dependencies: ["AABridge"], exclude: ["SwiftAA-Info.plist"]),
.testTarget(name: "SwiftAATests", dependencies: ["SwiftAA"], exclude: ["SwiftAATests-Info.plist"])
],
cxxLanguageStandard: .gnucxx17
)