mirror of
https://github.com/obhq/obliteration.git
synced 2024-10-07 00:13:24 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
|
app-id: io.github.obhq.Obliteration
|
||
|
default-branch: stable
|
||
|
runtime: org.kde.Platform
|
||
|
runtime-version: '6.6'
|
||
|
platform-extensions:
|
||
|
- org.freedesktop.Platform.GL.default
|
||
|
sdk: org.kde.Sdk
|
||
|
sdk-extensions:
|
||
|
- org.freedesktop.Sdk.Extension.llvm17
|
||
|
- org.freedesktop.Sdk.Extension.rust-stable
|
||
|
command: obliteration
|
||
|
build-options:
|
||
|
append-path: /usr/lib/sdk/rust-stable/bin
|
||
|
env:
|
||
|
LLVM_SYS_170_PREFIX: /usr/lib/sdk/llvm17
|
||
|
build-args:
|
||
|
- --share=network
|
||
|
finish-args:
|
||
|
- --filesystem=home
|
||
|
- --share=network
|
||
|
- --share=ipc
|
||
|
- --socket=fallback-x11
|
||
|
- --socket=wayland
|
||
|
- --device=dri
|
||
|
- --socket=pulseaudio
|
||
|
modules:
|
||
|
- name: obliteration
|
||
|
buildsystem: simple # cmake does not work somehow
|
||
|
build-commands:
|
||
|
- cmake -DOB_BUILD_LLVM:BOOL=OFF --preset linux-release .
|
||
|
- cmake --build --preset linux-release
|
||
|
- cargo test --manifest-path src/Cargo.toml --workspace --exclude core
|
||
|
- cargo clippy --manifest-path src/Cargo.toml --release
|
||
|
- cmake --install build --prefix "$FLATPAK_DEST"
|
||
|
- mkdir -pv "$FLATPAK_DEST/lib"
|
||
|
- cp -v /usr/lib/sdk/llvm17/lib/libLLVM-17.so "$FLATPAK_DEST/lib"
|
||
|
sources:
|
||
|
- type: dir
|
||
|
path: .
|