Merged
Conversation
… namespace conflict
Contributor
Author
|
Failing test seems unrelated to this PR. |
Merged
4 tasks
a-sajjad72
pushed a commit
to a-sajjad72/opencv
that referenced
this pull request
Mar 30, 2023
Fixes for Swift troubles * Remove NS_SWIFT_NAME override for Point, Rect, and Size due to Darwin namespace conflict * Fix swift_type overrides in objc generator * Add backwards compatibility Swift typealiases for Point, Rect, Size * Add disable-swift build option to iOS/macOS builds * Add import directive to swift source when building with disable-swift Co-authored-by: Chris Ballinger <cballinger@rightpoint.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request Readiness Checklist
This PR hopefully addresses a few issues that have been giving trouble when building the Swift wrapper for iOS/macOS
disable-swiftflag to suppress building Swift extensionsdisable-swiftis set - still generate Swift extensions and put them in SwiftSources output folder such they can be added manually to a project if neededtypealiasinstead ofNS_SWIFT_NAMEto handle Point2i → Point, Rect2i → Rect, Size2i → Size type mappings (thanks to @chrisballinger for this)Issue that may be fixed or partially fixed by this PR: #19645 #19992 #19254