-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
CMakeLists.txt
80 lines (78 loc) · 2.49 KB
/
CMakeLists.txt
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
# This source file is part of the Swift open source project
#
# Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
add_library(Basics
Archiver/Archiver.swift
Archiver/TarArchiver.swift
Archiver/ZipArchiver.swift
Archiver/UniversalArchiver.swift
AuthorizationProvider.swift
ByteString+Extensions.swift
Cancellator.swift
Concurrency/ConcurrencyHelpers.swift
Concurrency/NSLock+Extensions.swift
Concurrency/SendableBox.swift
Concurrency/ThreadSafeArrayStore.swift
Concurrency/ThreadSafeBox.swift
Concurrency/ThreadSafeKeyValueStore.swift
Concurrency/TokenBucket.swift
Dictionary+Extensions.swift
DispatchTimeInterval+Extensions.swift
EnvironmentVariables.swift
Errors.swift
FileSystem/AbsolutePath.swift
FileSystem/FileSystem+Extensions.swift
FileSystem/RelativePath.swift
FileSystem/TemporaryFile.swift
FileSystem/TSCAdapters.swift
FileSystem/VFSOverlay.swift
HTTPClient/HTTPClient.swift
HTTPClient/HTTPClientConfiguration.swift
HTTPClient/HTTPClientError.swift
HTTPClient/HTTPClientHeaders.swift
HTTPClient/HTTPClientRequest.swift
HTTPClient/HTTPClientResponse.swift
HTTPClient/HTTPMethod.swift
HTTPClient/LegacyHTTPClient.swift
HTTPClient/LegacyHTTPClientRequest.swift
HTTPClient/URLSessionHTTPClient.swift
ImportScanning.swift
JSON+Extensions.swift
JSONDecoder+Extensions.swift
NativePathExtensions.swift
Netrc.swift
Observability.swift
SQLite.swift
Sandbox.swift
SendableTimeInterval.swift
String+Extensions.swift
SwiftVersion.swift
SQLiteBackedCache.swift
Triple.swift
Version+Extensions.swift
WritableByteStream+Extensions.swift)
target_link_libraries(Basics PUBLIC
SwiftCollections::DequeModule
SwiftCollections::OrderedCollections
SwiftSystem::SystemPackage
TSCBasic
TSCUtility)
target_link_libraries(Basics PRIVATE
SPMSQLite3
TSCclibc)
# NOTE(compnerd) workaround for CMake not setting up include flags yet
set_target_properties(Basics PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_options(Basics PRIVATE
"$<$<PLATFORM_ID:Darwin>:SHELL:-Xlinker -framework -Xlinker Security>")
if(USE_CMAKE_INSTALL)
install(TARGETS Basics
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
endif()
set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS Basics)