https://github.com/xframes-project/xframes-swift
GPU accelerated UI development for Swift
https://github.com/xframes-project/xframes-swift
swift
Last synced: about 1 year ago
JSON representation
GPU accelerated UI development for Swift
- Host: GitHub
- URL: https://github.com/xframes-project/xframes-swift
- Owner: xframes-project
- License: mit
- Created: 2025-01-10T18:43:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-16T12:23:38.000Z (about 1 year ago)
- Last Synced: 2025-01-26T02:53:25.470Z (about 1 year ago)
- Topics: swift
- Language: Swift
- Homepage:
- Size: 1.01 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xframes-swift
## Instructions
### Installing Swift
#### Windows
https://www.swift.org/install/windows/winget/
#### Linux
On Ubuntu:
Follow these instructions carefully
https://www.swift.org/install/linux/tarball/
I recommend to install the SDK for static linking
https://www.swift.org/documentation/articles/static-linux-getting-started.html
### Building
It is crucial to enable the Extern experimental feature
`swift build -Xswiftc -enable-experimental-feature -Xswiftc Extern`
#### Linux
##### Dynamic linking
`swift build`
```
$ file ./.build/debug/xframes-swift
./.build/debug/xframes-swift: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
```
The file size is > 30KB but it requires Swift to be installed on the target machine.
##### Static linking
`swift build --swift-sdk x86_64-swift-linux-musl`
```
$ file .build/x86_64-swift-linux-musl/debug/xframes-swift
.build/x86_64-swift-linux-musl/debug/xframes-swift: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped
```
The file size is > 40MB but it supposedly 'just works', no need to install any dependencies.
### Running the app
#### Linux
`export LD_LIBRARY_PATH=/path/to/xframes/library:$LD_LIBRARY_PATH`
## Screenshots
Windows 11

Ubuntu 24.04

Raspberry Pi 5
