-
Notifications
You must be signed in to change notification settings - Fork 121
Add CMake directions for the WinSDK overlay #1296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
21393c3
Add CMake directions for the WinSDK overlay
grynspan 9647c06
Sigh
grynspan 52d4dc4
Merge branch 'main' into jgrynspan/winsdk-overlay-cmake
grynspan e8cc3c8
Add missing files to CMakeLists.txt
grynspan f3a2364
HRESULT and DWORD vary on 32-bit Windows
grynspan 9015dd0
Exclude CMakeLists.txt
grynspan add41b5
Oh right Linux
grynspan 33847e6
Revert "Oh right Linux"
grynspan 87d9683
Revert "HRESULT and DWORD vary on 32-bit Windows"
grynspan 9ebc67a
Try again with HRESULT and whatnot
grynspan 1aed252
package visibility
grynspan 66d0aca
DWORD!
grynspan be938a6
Can just use CLong instead of redefining HRESULT
grynspan 37aa87b
Add more SPI attributes
grynspan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This source file is part of the Swift.org open source project | ||
# | ||
# Copyright (c) 2024–2025 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 | ||
|
||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows") | ||
add_library(_Testing_WinSDK | ||
Attachments/_AttachableImageWrapper+AttachableWrapper.swift | ||
Attachments/AttachableAsIWICBitmapSource.swift | ||
Attachments/AttachableImageFormat+CLSID.swift | ||
Attachments/Attachment+AttachableAsIWICBitmapSource.swift | ||
Attachments/HBITMAP+AttachableAsIWICBitmapSource.swift | ||
Attachments/HICON+AttachableAsIWICBitmapSource.swift | ||
Attachments/IWICBitmapSource+AttachableAsIWICBitmapSource.swift | ||
Attachments/UnsafeMutablePointer+AttachableAsIWICBitmapSource.swift | ||
Support/Additions/GUIDAdditions.swift | ||
Support/Additions/IPropertyBag2Additions.swift | ||
Support/Additions/IWICImagingFactoryAdditions.swift | ||
ReexportTesting.swift) | ||
|
||
target_link_libraries(_Testing_WinSDK PUBLIC | ||
Testing) | ||
|
||
target_compile_options(_Testing_WinSDK PRIVATE | ||
-enable-library-evolution | ||
-emit-module-interface -emit-module-interface-path $<TARGET_PROPERTY:_Testing_WinSDK,Swift_MODULE_DIRECTORY>/_Testing_WinSDK.swiftinterface) | ||
|
||
_swift_testing_install_target(_Testing_WinSDK) | ||
endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version: 1 | ||
modules: | ||
- name: _Testing_WinSDK |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.