diff --git a/Package.swift b/Package.swift index 32ea88bc3..6d4f9055e 100644 --- a/Package.swift +++ b/Package.swift @@ -96,6 +96,7 @@ let package = Package( dependencies: [ "Testing", ], + exclude: ["Foundation.swiftoverlay"], swiftSettings: .packageSettings ), ], diff --git a/Sources/CMakeLists.txt b/Sources/CMakeLists.txt index 83a9a2b23..dc62583e0 100644 --- a/Sources/CMakeLists.txt +++ b/Sources/CMakeLists.txt @@ -105,3 +105,4 @@ include(AvailabilityDefinitions) include(CompilerSettings) add_subdirectory(_TestingInternals) add_subdirectory(Testing) +add_subdirectory(_Testing_Foundation) diff --git a/Sources/_Testing_Foundation/CMakeLists.txt b/Sources/_Testing_Foundation/CMakeLists.txt new file mode 100644 index 000000000..c5c191b29 --- /dev/null +++ b/Sources/_Testing_Foundation/CMakeLists.txt @@ -0,0 +1,24 @@ +# This source file is part of the Swift.org open source project +# +# Copyright (c) 2024 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(_Testing_Foundation SHARED + Events/Clock+Date.swift + ReexportTesting.swift) +target_link_libraries(_Testing_Foundation PUBLIC + Testing) +add_dependencies(_Testing_Foundation + Testing) +target_compile_options(_Testing_Foundation PRIVATE + -enable-library-evolution + -emit-module-interface -emit-module-interface-path $/_Testing_Foundation.swiftinterface) + +get_swift_testing_install_lib_dir(SHARED overlays_destination_dir) +install(FILES $/Foundation.swiftoverlay + DESTINATION "${overlays_destination_dir}/Testing.swiftcrossimport/Foundation.swiftoverlay") + +_swift_testing_install_target(_Testing_Foundation) diff --git a/Sources/_Testing_Foundation/Foundation.swiftoverlay b/Sources/_Testing_Foundation/Foundation.swiftoverlay new file mode 100644 index 000000000..7413fb067 --- /dev/null +++ b/Sources/_Testing_Foundation/Foundation.swiftoverlay @@ -0,0 +1,3 @@ +version: 1 +modules: + - name: _Testing_Foundation