Skip to content

advancedwebdeveloper/swift-win32

 
 

Repository files navigation

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 5.2 or newer. You can use the the release binaries from //swift/build or download the nightly build from Azure.

set SDKROOT=%SystemDrive%/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk
set SWIFTFLAGS=-sdk %SDKROOT% -I %SDKROOT%/usr/lib/swift -L %SDKROOT%/usr/lib/swift/windows

cmake -B build -D BUILD_SHARED_LIBS=YES -D CMAKE_BUILD_TYPE=Release -D CMAKE_Swift_FLAGS="%SWIFTFLAGS%" -G Ninja -S .
ninja -C build SwiftWin32 HelloSwift

%CD%\build\bin\HelloSwift

About

A Win32 application framework for Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 85.4%
  • C 7.9%
  • CMake 5.1%
  • C++ 1.6%