Contents

longhanks/qlift

Swift 5 API for Qt5

Building

Qt5 must be installed. On macOS, use brew install qt@5. On Linux, pkgconfig is used to find the build flags. On macOS, .pc files also is used to find Qt frameworks and build flags, but it requires additional preparation. Add this lines to build target:

linkerSettings: [
    .linkedFramework("QtWidgets", .when(platforms: [.macOS])),
    .linkedFramework("QtCore", .when(platforms: [.macOS])),
    .linkedFramework("QtGui", .when(platforms: [.macOS]))
]

When this bug fix arrived to Xcode release, additional linker setting may be removed.

swiftpm

swift build

Examples

- swiftmine: Minesweeper in Swift

Package Metadata

Repository: longhanks/qlift

Default branch: master

README: README.md