#[[
This source file is part of the Swift Collections Open Source Project

Copyright (c) 2022 - 2026 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

SPDX-License-Identifier: Apache-2.0 WITH Swift-exception
#]]

if(COLLECTIONS_SINGLE_MODULE)
  set(module_name ${COLLECTIONS_MODULE_NAME})
else()
  set(module_name InternalCollectionsUtilities)
  add_library(InternalCollectionsUtilities)
  set_target_properties(InternalCollectionsUtilities PROPERTIES
    INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})

  _install_target(InternalCollectionsUtilities)
  set_property(GLOBAL APPEND PROPERTY SWIFT_COLLECTIONS_EXPORTS InternalCollectionsUtilities)
endif()

target_sources(${module_name} PRIVATE
  "IntegerTricks/FixedWidthInteger+roundUpToPowerOfTwo.swift"
  "IntegerTricks/Integer rank.swift"
  "IntegerTricks/UInt+first and last set bit.swift"
  "IntegerTricks/UInt+reversed.swift"
  "UnsafeBitSet/_UnsafeBitSet+Index.swift"
  "UnsafeBitSet/_UnsafeBitSet+_Word.swift"
  "UnsafeBitSet/_UnsafeBitSet.swift"
  "_SortedCollection.swift"
  "_UniqueCollection.swift"
  "BorrowingIteratorProtocol+Equality.swift"
  "BorrowingIteratorProtocol+Extras.swift"
  "Debugging.swift"
  "Descriptions.swift"
  "Iterable+CopyContents.swift"
  "Iterable+Equality.swift"
  "LifetimeOverride.swift"
  "MutableRef.swift"
  "MutableSpan+Extras.swift"
  "OutputSpan+Extras.swift"
  "RandomAccessCollection+Offsets.swift"
  "Span+Extras.swift"
  "Strideable+LimitHelpers.swift"
  "String+Padding.swift"
  "TemporaryAllocation.swift"
  "UnsafeBufferPointer+Extras.swift"
  "UnsafeMutableBufferPointer+Extras.swift"
  "UnsafeMutablePointer+Extras.swift"
  "UnsafeMutableRawBufferPointer+Extras.swift"
  "UnsafePointer+Extras.swift"
  "UnsafeRawBufferPointer+Extras.swift"
  )
