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:
Karoy Lorentey committed 2024-05-29 13:36:34 -07:00
1 parent 03eb23630b
commit 5316942c30
4 files changed
+30

No files matched your search

+6
View File
@@ -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",
+1
View File
@@ -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)
+20
View File
@@ -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)
+3
View File
@@ -0,0 +1,3 @@
public func greet() {
print("Hello from the future!")
}