Comments (4)
This library doesn't have any C code in it, I'm not sure what MinGW would be useful for.
from swift-win32.
This library doesn't have any C code in it, I'm not sure what MinGW would be useful for.
But it seems you need other part of the C Toolchain (linker, resource compiler,...), isn't it? What MSVC can, MinGW-W64 can.
from swift-win32.
What exactly the Windows SDK is used for? I think you use the C Toolchain of it to build your project. If it's only about headers then I think MinGW-W64 should work, too. It also shipped with itself the headers and libraries needed to develop with the Windows API, albeit not as complete as Windows SDK.
from swift-win32.
The windows SDK is used for the import libraries and SDK headers (the system DLLs are needed at runtime).
The resource compiler isn't used, but the manifest tool is. At some point, I'd like to implement the needed functionality in llvm-mt
to drop the need for the manifest tool. The MSVC linker is not used, lld
is used by default with SPM, you would need to explicitly opt into link. The C toolchain is not used at all as there's no C code currently in the library, it is entirely Swift code. Note that the manifest tool is only used as a convenience, it is not required as the manifest can be stored next to the executable. Effectively, no MSVC tools are used.
MinGW still defaults to BFD for the linker, so that is not viable (I know @mstorsjo has done extensive work to support lld and it can be used). Beyond that, the intent is to not require additional dependencies at distribution time such as MinGW, only system libraries and the code being built. Additionally, by using the Microsoft vended SDK gives 0-day access to new APIs. The incompleteness of the SDK is also a concern - the expectation would have to be that it is 100% identical to the platform SDK at which point it has questionable value.
One final point is that the target triple for MinGW is different and the MinGW port for Swift has significantly bit-rotted and will need to be revived before that is even possible to even use with Swift.
from swift-win32.
Related Issues (20)
- Update Calculator demo to avoid console window
- Update UICatalog to prevent console host
- Document subsystem configuration for UI applications as identified in #576 HOT 1
- Issue when ninja building UICatalog HOT 8
- Labels appear cropped if display scaling is enabled HOT 2
- Examples don't run with SPM HOT 4
- DatePicker doesn't have get value property. HOT 4
- Window doesn't Open HOT 4
- Can't compile example HOT 13
- stack overflow on repeated async function invocation HOT 7
- Unrecognised architecture on host system: ARM64 HOT 1
- Not a problem just a question
- How can i use this framework to call third library ? like libsqlite, libxl HOT 1
- error: cannot find type 'BarButtonItem' in scope; examples don't compile HOT 4
- Nitpick about naming question
- JUST A QUESTION AND NOT A ISSUE (Close this after reading) HOT 1
- Support set background color for View HOT 1
- Can not build with Swift 5.9.1 HOT 6
- Package.swift is not used with Swift 5.9.1 HOT 9
- Example of SwiftWin32UI App HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-win32.