Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sclukey/libui-swift-examples
Examples programs for libui-swift
https://github.com/sclukey/libui-swift-examples
Last synced: 3 months ago
JSON representation
Examples programs for libui-swift
- Host: GitHub
- URL: https://github.com/sclukey/libui-swift-examples
- Owner: sclukey
- Created: 2016-09-06T04:42:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-19T04:03:13.000Z (over 7 years ago)
- Last Synced: 2024-07-05T13:46:05.395Z (4 months ago)
- Language: Swift
- Size: 4.88 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libui-swift-examples
These are examples programs for using [libui-swift](https://github.com/sclukey/libui-swift).
## Swift Version
This package is tested with Swift 3, earlier versions of Swift will be ignored completely.
## Compiling
You need to have a compiled version of libui. You can either [download the supported release](https://github.com/andlabs/libui/releases/tag/alpha3.1) or compile libui yourself. See [libui-swift's README](https://github.com/sclukey/libui-swift/blob/master/README.md#usage) for more info.
To compile you need to provide Swift the location of the the compiled libui library and the `ui.h` header file. Assuming you extracted the libui release package to `/path/to/libui`, you are on 64-bit Linux, and you want a static build, then you would need to use
```
swift build -Xswiftc -I/path/to/libui/src -Xlinker -L/path/to/libui/linux_amd64/static
```