mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
- Set availability to match Span availability - Split implementation into multiple source files - Add OutputSpan-based primitives that can be the bases of all append/insertion/replaceSubrange variants - Add the ability to consume a subrange of items using an InputSpan - Add bulk copying operations generic over the new Container protocol
41 lines
1.2 KiB
CMake
41 lines
1.2 KiB
CMake
#[[
|
|
This source file is part of the Swift Collections Open Source Project
|
|
|
|
Copyright (c) 2022 - 2025 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
|
|
#]]
|
|
|
|
if(COLLECTIONS_SINGLE_MODULE)
|
|
set(module_name ${COLLECTIONS_MODULE_NAME})
|
|
else()
|
|
set(module_name BasicContainers)
|
|
add_library(BasicContainers
|
|
${COLLECTIONS_ARRAY_SOURCES})
|
|
target_link_libraries(BasicContainers PRIVATE
|
|
InternalCollectionsUtilities ContainersPreview)
|
|
set_target_properties(BasicContainers PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
|
|
_install_target(BasicContainers)
|
|
set_property(GLOBAL APPEND PROPERTY SWIFT_COLLECTIONS_EXPORTS BasicContainers)
|
|
endif()
|
|
|
|
target_sources(${module_name} PRIVATE
|
|
"RigidArray.swift"
|
|
"RigidArray+Append.swift"
|
|
"RigidArray+Experimental.swift"
|
|
"RigidArray+Initializers.swift"
|
|
"RigidArray+Insertions.swift"
|
|
"RigidArray+Removals.swift"
|
|
"RigidArray+Replacements.swift"
|
|
"UniqueArray.swift"
|
|
"UniqueArray+Append.swift"
|
|
"UniqueArray+Experimental.swift"
|
|
"UniqueArray+Initializers.swift"
|
|
"UniqueArray+Insertions.swift"
|
|
"UniqueArray+Removals.swift"
|
|
"UniqueArray+Replacements.swift"
|
|
)
|