mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
Add a dummy Future module
This is a temporary staging area for prototyping potential future stdlib additions. (We do not expect to ship it in any tagged release of swift-collections.)
This commit is contained in:
1 parent
03eb23630b
commit
5316942c30
4 files changed
+30
No files matched your search
@@ -206,6 +206,12 @@ let targets: [CustomTarget] = [
|
||||
"UnsafeMutableBufferPointer+Extras.swift.gyb",
|
||||
]),
|
||||
|
||||
.target(
|
||||
kind: .exported,
|
||||
name: "Future",
|
||||
dependencies: ["_CollectionsUtilities"],
|
||||
exclude: ["CMakeLists.txt"]),
|
||||
|
||||
.target(
|
||||
kind: .exported,
|
||||
name: "BitCollections",
|
||||
|
||||
@@ -7,6 +7,7 @@ Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
See https://swift.org/LICENSE.txt for license information
|
||||
#]]
|
||||
|
||||
add_subdirectory(Future)
|
||||
add_subdirectory(BitCollections)
|
||||
add_subdirectory(Collections)
|
||||
add_subdirectory(DequeModule)
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#[[
|
||||
This source file is part of the Swift Collections Open Source Project
|
||||
|
||||
Copyright (c) 2024 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
|
||||
#]]
|
||||
|
||||
add_library(Future
|
||||
"Dummy.swift"
|
||||
)
|
||||
|
||||
target_link_libraries(Future PRIVATE
|
||||
_CollectionsUtilities)
|
||||
set_target_properties(Future PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
||||
|
||||
_install_target(Future)
|
||||
set_property(GLOBAL APPEND PROPERTY SWIFT_COLLECTIONS_EXPORTS Future)
|
||||
@@ -0,0 +1,3 @@
|
||||
public func greet() {
|
||||
print("Hello from the future!")
|
||||
}
|
||||
Reference in new issue
Block a user