Fork me on GitHub

Alex Rupérez

Link: http://j.mp/2GAwVJb
Published: 21 Feb 07:48
I starred compnerd/swift-win32 at GitHub.
WIndows Swift Sample
View on GitHub


View README


swift-win32

This is a thin wrapper over the Win32 APIs for graphics on Windows to make it easier to write Windows applications in Swift.

This requires the latest (git) version of Swift (alternatively, you can use the nightlies from https://dev.azure.com/compnerd/windows-swift). Additionally, you need the latest (git) version of CMake (from http://github.com/KitWare/cmake) and you need the new language support from https://github.com/compnerd/cmake-swift.

Assuming you are building in S:, you can build with:

cmake -G Ninja -DCMAKE_MODULE_PATH=S:/cmake-swift/Modules S:/swift-win32
ninja SwiftWin32
ninja HelloSwift
.\HelloSwift