File tree Expand file tree Collapse file tree 6 files changed +64
-0
lines changed Expand file tree Collapse file tree 6 files changed +64
-0
lines changed Original file line number Diff line number Diff line change @@ -104,4 +104,5 @@ endif()
104104include (AvailabilityDefinitions)
105105include (CompilerSettings)
106106add_subdirectory (_TestingInternals)
107+ add_subdirectory (Overlays)
107108add_subdirectory (Testing)
Original file line number Diff line number Diff line change 1+ # This source file is part of the Swift.org open source project
2+ #
3+ # Copyright (c) 2024 Apple Inc. and the Swift project authors
4+ # Licensed under Apache License v2.0 with Runtime Library Exception
5+ #
6+ # See http://swift.org/LICENSE.txt for license information
7+ # See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8+
9+ add_subdirectory (_Testing_Foundation)
Original file line number Diff line number Diff line change 1+ # This source file is part of the Swift.org open source project
2+ #
3+ # Copyright (c) 2024 Apple Inc. and the Swift project authors
4+ # Licensed under Apache License v2.0 with Runtime Library Exception
5+ #
6+ # See http://swift.org/LICENSE.txt for license information
7+ # See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8+
9+ add_library (_Testing_Foundation
10+ Attachments/EncodingFormat.swift
11+ Attachments/Attachment+URL.swift
12+ Attachments/Attachable+NSSecureCoding.swift
13+ Attachments/Data+Attachable.swift
14+ Attachments/Attachable+Encodable+NSSecureCoding.swift
15+ Attachments/Attachable+Encodable.swift
16+ Events/Clock+Date.swift
17+ ReexportTesting.swift)
18+
19+ target_link_libraries (_Testing_Foundation PUBLIC
20+ Testing
21+ Foundation)
22+
23+ target_compile_options (_Testing_Foundation PRIVATE
24+ -enable-library-evolution
25+ -emit-module-interface -emit-module-interface -path $<TARGET_PROPERTY:_Testing_Foundation,Swift_MODULE_DIRECTORY>/_Testing_Foundation.swiftinterface)
26+
27+ _swift_testing_install_target(_Testing_Foundation)
Original file line number Diff line number Diff line change @@ -125,3 +125,7 @@ target_compile_options(Testing PRIVATE
125125 -emit-module-interface -emit-module-interface -path $<TARGET_PROPERTY:Testing,Swift_MODULE_DIRECTORY>/Testing.swiftinterface)
126126
127127_swift_testing_install_target(Testing)
128+
129+ # Install the Swift cross-import overlay directory.
130+ _swift_testing_install_swiftcrossimport(Testing
131+ Testing.swiftcrossimport)
Original file line number Diff line number Diff line change 1+ version: 1
2+ modules:
3+ - name: _Testing_Foundation
Original file line number Diff line number Diff line change @@ -96,3 +96,23 @@ function(_swift_testing_install_target module)
9696 RENAME ${SwiftTesting_MODULE_TRIPLE} .swiftinterface)
9797 endif ()
9898endfunction ()
99+
100+ # Install the specified .swiftcrossimport directory for the specified declaring
101+ # module.
102+ #
103+ # Usage:
104+ # _swift_testing_install_swiftcrossimport(module swiftcrossimport_dir)
105+ #
106+ # Arguments:
107+ # module: The name of the declaring module. This is used to determine where
108+ # the .swiftcrossimport directory should be installed, since it must be
109+ # adjacent to the declaring module's .swiftmodule directory.
110+ # swiftcrossimport_dir: The path to the source .swiftcrossimport directory
111+ # which will be installed.
112+ function (_swift_testing_install_swiftcrossimport module swiftcrossimport_dir)
113+ get_target_property (type ${module} TYPE )
114+ get_swift_testing_install_lib_dir(${type} lib_destination_dir)
115+
116+ install (DIRECTORY "${swiftcrossimport_dir} "
117+ DESTINATION "${lib_destination_dir} " )
118+ endfunction ()
You can’t perform that action at this time.
0 commit comments