# kate: syntax yaml id: io.github.wivrn.wivrn runtime: org.kde.Platform runtime-version: '6.8' sdk: org.kde.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable - org.freedesktop.Sdk.Extension.llvm18 command: wivrn-dashboard separate-locales: false finish-args: # X11 + XShm access - --share=ipc - --socket=fallback-x11 # Wayland access - --socket=wayland # GPU acceleration - --device=dri # Needs to talk to the network - --share=network # Announce WiVRn via avahi - --system-talk-name=org.freedesktop.Avahi # Allow getting the pretty hostname - --system-talk-name=org.freedesktop.hostname1 # List applications from $XDG_DATA_DIRS - --filesystem=host-os:ro - --filesystem=xdg-data:ro # List flatpak Steam games - --filesystem=~/.var/app/com.valvesoftware.Steam:ro # Pipewire - --filesystem=xdg-run/pipewire-0 # Set the active OpenXR / OpenVR runtime - --filesystem=xdg-config/openxr:create - --filesystem=xdg-config/openvr:create # Let outside application access the WiVRn socket - --filesystem=xdg-run/wivrn:create - --own-name=io.github.wivrn.Server # QSystemTrayIcon - --talk-name=org.kde.StatusNotifierWatcher # Run processes outside of sandbox - --talk-name=org.freedesktop.Flatpak # Inhibit sleeping while a session is active - --system-talk-name=org.freedesktop.login1 cleanup: - /lib/pkgconfig - /share/pkgconfig - /include - /share/man - /share/cmake - /share/gir-1.0 - /lib/girepository-1.0 - /lib/systemd - '*.a' - '*.la' - '*.cmake' modules: - name: crosstool buildsystem: autotools sources: - type: git url: https://github.com/crosstool-ng/crosstool-ng.git tag: 70c2b00ad79a0a21a48e5a0eedc9f91c374af21d cleanup: - '*' - name: rsync buildsystem: autotools config-opts: - --disable-md2man sources: - type: git url: https://github.com/RsyncProject/rsync.git tag: 3305a7a063ab0167cab5bf7029da53abaa9fdb6e cleanup: - '*' - name: toolchain sources: - type: file url: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.177.tar.xz sha256: ea9eb8088d4231f8a01b191ceef5f4d92238f6c7519f6fbcb57e448ee9e0a6e0 - type: file url: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.xz sha256: 38ef96b8dfe510d42707d9c781877914792541133e1870841463bfa73f883e32 - type: file url: https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz sha256: 8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1 - type: file url: https://ftpmirror.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz sha256: a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898 - type: file url: https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.xz sha256: 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2 - type: file dest-filename: isl-0.26.tar.xz url: https://sourceforge.net/projects/libisl/files/isl-0.26.tar.xz/download sha256: a0b5cb06d24f9fa9e77b55fabbe9a3c94a336190345c2555f9915bb38e976504 - type: file url: https://www.multiprecision.org/downloads/mpc-1.3.1.tar.gz sha256: ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8 - type: file url: https://invisible-mirror.net/archives/ncurses/ncurses-6.4.tar.gz sha256: 6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159 - type: file url: https://ftpmirror.gnu.org/gnu/libiconv/libiconv-1.16.tar.gz sha256: e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04 - type: file url: https://ftpmirror.gnu.org/gnu/gettext/gettext-0.23.1.tar.xz sha256: c1f97a72a7385b7e71dd07b5fea6cdaf12c9b88b564976b23bd8c11857af2970 - type: file url: https://ftpmirror.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz sha256: 13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd - type: file url: https://ftpmirror.gnu.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz sha256: a6e21868ead545cf87f0c01f84276e4b5281d672098591c1c896241f09363478 - type: file url: https://ftpmirror.gnu.org/gnu/glibc/glibc-2.35.tar.xz sha256: 5123732f6b67ccd319305efd399971d58592122bcc2a6518a1bd2510dd0cf52e - type: file path: ct-ng-x86_64.config dest-filename: .config only-arches: - x86_64 - type: file path: ct-ng-aarch64.config dest-filename: .config only-arches: - aarch64 buildsystem: simple build-commands: - env -u CXXFLAGS -u CFLAGS -u CPLUS_INCLUDE_PATH -u C_INCLUDE_PATH -u LD_LIBRARY_PATH CT_PREFIX=/app TAR_OPTIONS=--no-same-owner ct-ng build cleanup: - '*' - name: libavahi-client buildsystem: autotools config-opts: - --disable-mono - --enable-compat-libdns_sd - --with-autoipd-group=avahi - --with-autoipd-user=avahi - --with-avahi-priv-access-group=network - --disable-libdaemon - --with-distro=none - --disable-libevent - --disable-qt4 - --disable-qt5 - --disable-gtk - --disable-gtk3 - --disable-python - --disable-manpages - --disable-static sources: - type: git url: https://github.com/avahi/avahi.git tag: v0.8 cleanup: - /share/locale - /share/runtime/locale - /bin/avahi-* - name: x264 buildsystem: autotools config-opts: - --enable-shared sources: - type: git url: https://code.videolan.org/videolan/x264.git tag: 31e19f92f00c7003fa115047ce50978bc98c3a0d cleanup: - /bin/x264 - name: ffmpeg-libdrm config-opts: - --optflags="${CFLAGS}" - --extra-ldflags="${LDFLAGS}" - --disable-stripping - --disable-debug - --disable-doc - --disable-static - --disable-everything - --enable-shared - --enable-libdrm - --enable-vaapi - --enable-pthreads - --enable-encoder=hevc_vaapi,h264_vaapi,av1_vaapi build-commands: - make install cleanup: - /share/ffmpeg - /bin/ffmpeg - /bin/ffplay - /bin/ffprobe sources: - type: git url: https://gitlab.com/freedesktop-sdk/mirrors/ffmpeg/ffmpeg.git tag: n7.0.1 - name: eigen3 buildsystem: cmake-ninja config-opts: - -DBUILD_TESTING=OFF builddir: true sources: - type: git url: https://gitlab.com/libeigen/eigen.git tag: 3.4.0 cleanup: - '*' - name: nlohmann_json buildsystem: cmake-ninja config-opts: - -DJSON_BuildTests=OFF sources: - type: git url: https://github.com/nlohmann/json.git tag: v3.11.3 - name: cli11 buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=RelWithDebInfo - -DBUILD_TESTING=OFF - -DCLI11_BUILD_TESTS=OFF - -DCLI11_BUILD_EXAMPLES=OFF sources: - type: git url: https://github.com/CLIUtils/CLI11 tag: v2.4.2 cleanup: - '*' - name: libnotify buildsystem: meson config-opts: - -Dtests=false - -Dintrospection=disabled - -Dman=false - -Dgtk_doc=false - -Ddocbook_docs=disabled sources: - type: git url: https://github.com/GNOME/libnotify.git tag: 131aad01ff5f563b4863becbb6ed84dac6e75d5a - name: qcoro buildsystem: cmake-ninja config-opts: - -DQCORO_BUILD_EXAMPLES=OFF - -DQCORO_BUILD_TESTING=OFF sources: - type: git url: https://github.com/qcoro/qcoro.git tag: v0.11.0 - name: opencomposite buildsystem: cmake-ninja build-options: cflags: -idirafter/usr/include cxxflags: -idirafter/usr/include arch: aarch64: ldflags: -L/usr/lib/aarch64-linux-gnu -Wl,--warn-unresolved-symbols env: CC: /app/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc CXX: /app/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ x86_64: ldflags: -L/usr/lib/x86_64-linux-gnu -Wl,--warn-unresolved-symbols env: CC: /app/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc CXX: /app/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-g++ config-opts: - -DUSE_SYSTEM_OPENXR=OFF - -DUSE_SYSTEM_GLM=OFF sources: - type: git url: https://gitlab.com/znixian/OpenOVR.git tag: 538639b86c5c71223f11040b09479e5c0a83078c - name: xrizer buildsystem: simple build-options: append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin cflags: -idirafter/usr/include cxxflags: -idirafter/usr/include env: CARGO_HOME: /run/build/xrizer/cargo arch: aarch64: ldflags: -L/usr/lib/aarch64-linux-gnu -Wl,--warn-unresolved-symbols env: CC: /app/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc CXX: /app/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ RUSTFLAGS: -C linker=/app/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc x86_64: ldflags: -L/usr/lib/x86_64-linux-gnu -Wl,--warn-unresolved-symbols env: CC: /app/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc CXX: /app/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-g++ RUSTFLAGS: -C linker=/app/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc build-commands: - cargo --offline fetch --manifest-path Cargo.toml --verbose - cargo xbuild --release - mkdir /app/xrizer - cp -rL target/release/bin/ /app/xrizer/ sources: - type: git url: https://github.com/Supreeeme/xrizer.git tag: 366be00cdeb3156cf958fa48b49c39ce819cab86 - xrizer-gen-src.json - name: wivrn-library buildsystem: cmake-ninja build-options: # org.kde.Platform//6.8 sets _FORTIFY_SOURCE=3 but gcc 11 only supports _FORTIFY_SOURCE=2 cflags: -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=2 cxxflags: -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=2 arch: aarch64: ldflags: -L/usr/lib/aarch64-linux-gnu -Wl,--warn-unresolved-symbols cflags: -idirafter/usr/include -idirafter/usr/lib/aarch64-linux-gnu/include/ cxxflags: -idirafter/usr/include -idirafter/usr/lib/aarch64-linux-gnu/include/ env: CC: /app/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc CXX: /app/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ x86_64: ldflags: -L/usr/lib/x86_64-linux-gnu -Wl,--warn-unresolved-symbols cflags: -idirafter/usr/include -idirafter/usr/lib/x86_64-linux-gnu/include/ cxxflags: -idirafter/usr/include -idirafter/usr/lib/x86_64-linux-gnu/include/ env: CC: /app/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc CXX: /app/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-g++ config-opts: - -DCMAKE_BUILD_TYPE=RelWithDebInfo - -DWIVRN_BUILD_CLIENT=OFF - -DWIVRN_BUILD_SERVER=OFF - -DWIVRN_BUILD_SERVER_LIBRARY=ON - -DWIVRN_BUILD_DASHBOARD=OFF - -DWIVRN_BUILD_WIVRNCTL=OFF - -DWIVRN_WERROR=ON - -DFETCHCONTENT_FULLY_DISCONNECTED=ON - -DFETCHCONTENT_BASE_DIR=deps - -DGIT_DESC=WIVRN_GIT_DESC - -DGIT_COMMIT=WIVRN_GIT_COMMIT - -Wno-dev sources: - WIVRN_SRC1 WIVRN_SRC2 WIVRN_SRC3 - type: archive url: BOOSTPFR_URL dest: deps/boostpfr-src sha256: BOOSTPFR_SHA256 - type: git url: https://gitlab.freedesktop.org/monado/monado tag: MONADO_COMMIT dest: deps/monado-src - type: shell commands: - cd deps/monado-src && ../../patches/apply.sh ../../patches/monado/* - cd deps/boostpfr-src && ../../patches/apply.sh ../../flatpak/boostpfr-gcc-12-internal-compiler-error.patch - name: wivrn buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=RelWithDebInfo - -DWIVRN_BUILD_CLIENT=OFF - -DWIVRN_BUILD_SERVER=ON - -DWIVRN_BUILD_SERVER_LIBRARY=OFF - -DWIVRN_BUILD_DASHBOARD=ON - -DWIVRN_USE_VAAPI=ON - -DWIVRN_USE_X264=ON - -DWIVRN_USE_NVENC=ON - -DWIVRN_USE_VULKAN_ENCODE=ON - -DWIVRN_USE_PULSEAUDIO=OFF - -DWIVRN_WERROR=ON - -DWIVRN_CHECK_CAPSYSNICE=OFF # Capabilities don't work inside flatpak - -DFETCHCONTENT_FULLY_DISCONNECTED=ON - -DFETCHCONTENT_BASE_DIR=deps - -DGIT_DESC=WIVRN_GIT_DESC - -DGIT_COMMIT=WIVRN_GIT_COMMIT - -Wno-dev sources: - WIVRN_SRC1 WIVRN_SRC2 WIVRN_SRC3 - type: archive url: BOOSTPFR_URL dest: deps/boostpfr-src sha256: BOOSTPFR_SHA256 - type: git url: https://gitlab.freedesktop.org/monado/monado tag: MONADO_COMMIT dest: deps/monado-src - type: shell commands: - cd deps/monado-src && ../../patches/apply.sh ../../patches/monado/* - cd deps/boostpfr-src && ../../patches/apply.sh ../../flatpak/boostpfr-gcc-12-internal-compiler-error.patch