forked from apple/swift-atomics
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (83 loc) · 3.12 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// swift-tools-version:5.7
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 - 2023 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
import PackageDescription
var _cSettings: [CSetting] = []
var _swiftSettings: [SwiftSetting] = []
// Note: ATOMICS_NATIVE_BUILTINS works via the BuiltinModule language feature,
// so it is not usable in language versions below 5.9.
let package = Package(
name: "swift-atomics",
products: [
.library(
name: "Atomics",
targets: ["Atomics"]),
],
targets: [
.target(
name: "_AtomicsShims",
exclude: [
"CMakeLists.txt"
]
),
.target(
name: "Atomics",
dependencies: ["_AtomicsShims"],
exclude: [
"CMakeLists.txt",
"Conformances/AtomicBool.swift.gyb",
"Conformances/IntegerConformances.swift.gyb",
"Conformances/PointerConformances.swift.gyb",
"Primitives/Primitives.native.swift.gyb",
"Primitives/Primitives.shims.swift.gyb",
"Types/IntegerOperations.swift.gyb",
],
cSettings: _cSettings,
swiftSettings: _swiftSettings
),
.testTarget(
name: "AtomicsTests",
dependencies: ["Atomics"],
exclude: [
"main.swift",
"Basics/BasicTests.gyb-template",
"Basics/BasicAtomicBoolTests.swift.gyb",
"Basics/BasicAtomicDoubleWordTests.swift.gyb",
"Basics/BasicAtomicInt16Tests.swift.gyb",
"Basics/BasicAtomicInt32Tests.swift.gyb",
"Basics/BasicAtomicInt64Tests.swift.gyb",
"Basics/BasicAtomicInt8Tests.swift.gyb",
"Basics/BasicAtomicIntTests.swift.gyb",
"Basics/BasicAtomicMutablePointerTests.swift.gyb",
"Basics/BasicAtomicMutableRawPointerTests.swift.gyb",
"Basics/BasicAtomicOptionalMutablePointerTests.swift.gyb",
"Basics/BasicAtomicOptionalMutableRawPointerTests.swift.gyb",
"Basics/BasicAtomicOptionalPointerTests.swift.gyb",
"Basics/BasicAtomicOptionalRawPointerTests.swift.gyb",
"Basics/BasicAtomicOptionalRawRepresentableTests.swift.gyb",
"Basics/BasicAtomicOptionalReferenceTests.swift.gyb",
"Basics/BasicAtomicOptionalUnmanagedTests.swift.gyb",
"Basics/BasicAtomicPointerTests.swift.gyb",
"Basics/BasicAtomicRawPointerTests.swift.gyb",
"Basics/BasicAtomicRawRepresentableTests.swift.gyb",
"Basics/BasicAtomicReferenceTests.swift.gyb",
"Basics/BasicAtomicUInt16Tests.swift.gyb",
"Basics/BasicAtomicUInt32Tests.swift.gyb",
"Basics/BasicAtomicUInt64Tests.swift.gyb",
"Basics/BasicAtomicUInt8Tests.swift.gyb",
"Basics/BasicAtomicUIntTests.swift.gyb",
"Basics/BasicAtomicUnmanagedTests.swift.gyb",
],
swiftSettings: _swiftSettings
),
]
)