mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
ade9c48828
- more stuff to setup 32 bit platform
96 lines
2.8 KiB
YAML
96 lines
2.8 KiB
YAML
app-id: io.github.opendriver2.Redriver2
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: &runtime-version '22.08'
|
|
x-gl-version: &gl-version '1.4'
|
|
x-gl-versions: &gl-versions 22.08;22.08-extra;1.4
|
|
sdk: org.freedesktop.Sdk
|
|
separate-locales: false
|
|
rename-icon: 'icon'
|
|
command: start.sh
|
|
finish-args:
|
|
- "--socket=x11"
|
|
- "--socket=wayland"
|
|
- "--share=ipc"
|
|
- "--device=all"
|
|
- "--socket=pulseaudio"
|
|
- "--persist=."
|
|
- "--allow=multiarch"
|
|
- "--env=SDL_DYNAMIC_API=/app/lib/i386-linux-gnu/libSDL2-2.0.so.0"
|
|
|
|
add-extensions:
|
|
org.freedesktop.Platform.Compat.i386:
|
|
directory: lib/i386-linux-gnu
|
|
version: *runtime-version
|
|
|
|
org.freedesktop.Platform.Compat.i386.Debug:
|
|
directory: lib/debug/lib/i386-linux-gnu
|
|
version: *runtime-version
|
|
no-autodownload: true
|
|
|
|
org.freedesktop.Platform.GL32:
|
|
directory: lib/i386-linux-gnu/GL
|
|
version: *gl-version
|
|
versions: *gl-versions
|
|
subdirectories: true
|
|
no-autodownload: true
|
|
autodelete: false
|
|
add-ld-path: lib
|
|
merge-dirs: vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d
|
|
download-if: active-gl-driver
|
|
enable-if: active-gl-driver
|
|
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Compat.i386
|
|
- org.freedesktop.Sdk.Extension.toolchain-i386
|
|
|
|
build-options:
|
|
prepend-pkg-config-path: /app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig
|
|
ldflags: -L/app/lib32
|
|
prepend-path: /usr/lib/sdk/toolchain-i386/bin
|
|
env:
|
|
CC: i686-unknown-linux-gnu-gcc
|
|
CXX: i686-unknown-linux-gnu-g++
|
|
libdir: /app/lib32
|
|
|
|
cleanup:
|
|
- "/include"
|
|
|
|
modules:
|
|
|
|
- name: platform-bootstrap
|
|
buildsystem: simple
|
|
build-commands:
|
|
- |
|
|
set -e
|
|
mkdir -p /app/bin
|
|
mkdir -p /app/lib/i386-linux-gnu
|
|
mkdir -p /app/lib/debug/lib/i386-linux-gnu
|
|
mkdir -p /app/lib/i386-linux-gnu/GL
|
|
cp /usr/bin/addr2line /app/bin/
|
|
cp /usr/lib/x86_64-linux-gnu/libbfd-*.so /app/lib/
|
|
install -Dm644 -t /app/etc ld.so.conf
|
|
mkdir -p /app/links/lib
|
|
ln -srv /app/lib /app/links/lib/x86_64-linux-gnu
|
|
ln -srv /app/lib32 /app/links/lib/i386-linux-gnu
|
|
sources:
|
|
- type: dir
|
|
path: .flatpak
|
|
|
|
- name: game
|
|
buildsystem: simple
|
|
build-commands:
|
|
- mkdir -p /app/game/bin /app/game/data /app/bin /app/lib /app/share/applications/ /app/share/appdata /var/data/DRIVER2/ /app/share/icons/hicolor/256x256/apps
|
|
- install start.sh /app/bin/
|
|
- install bin/* /app/game/bin
|
|
- cp -r data/* /app/game/data
|
|
- install lib/* /app/lib/
|
|
- install io.github.opendriver2.Redriver2.desktop /app/share/applications/
|
|
- install -m644 io.github.opendriver2.Redriver2.appdata.xml /app/share/appdata/
|
|
- install icon.png /app/share/icons/hicolor/256x256/apps/
|
|
- chmod a+x -R /app/game/bin
|
|
- ln -s /var/data/config.ini /app/game/bin/config.ini
|
|
- ln -s /var/data/DRIVER2 /app/game/bin/DRIVER2
|
|
sources:
|
|
- type: dir
|
|
path: .flatpak
|