-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathio.github.RobertBeckebans.RBDoom3BFG.yaml
94 lines (91 loc) · 2.84 KB
/
io.github.RobertBeckebans.RBDoom3BFG.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
app-id: io.github.RobertBeckebans.RBDoom3BFG
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: rbdoom3bfg.sh
finish-args:
- --device=all
- --socket=x11
- --socket=pulseaudio
- --share=ipc
- --share=network
cleanup:
- /include
- /lib/*.a
- /lib/*.la
- /lib/pkgconfig
- /share/cmake
- /share/man
modules:
- shared-modules/glew/glew.json
- shared-modules/glu/glu-9.json
# Build DirectXShaderCompiler from Git sources
- name: directxshader-compiler-build
buildsystem: cmake-ninja
builddir: true
no-make-install: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DDXC_COVERAGE=Off
- -C ../cmake/caches/PredefinedParams.cmake
build-options:
env:
CXXFLAGS: -fvisibility-inlines-hidden -fvisibility=hidden
sources:
- type: git
url: https://github.com/microsoft/DirectXShaderCompiler
tag: v1.7.2308
post-install:
# Install binaries
- install -Dm 755 bin/dxc /app/bin/dxc
- install -Dm 755 lib/libdxcompiler.so /app/lib/libdxcompiler.so
# Install headers
- install -D ../include/dxc/dxcapi.h /app/include/dxc/dxcapi.h
- install -D ../include/dxc/dxcerrors.h /app/include/dxc/dxcerrors.h
- install -D ../include/dxc/dxcisense.h /app/include/dxc/dxcisense.h
- install -D ../include/dxc/WinAdapter.h /app/include/dxc/WinAdapter.h
# Build application from Git sources
- name: rbdoom3bfg-build
buildsystem: cmake-ninja
builddir: true
subdir: neo
no-make-install: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DFFMPEG=Off
- -DBINKDEC=On
- -DNVRHI_WITH_VULKAN=On
build-options:
env:
CXXFLAGS: -Wno-error=nonnull
sources:
- type: git
url: https://github.com/RobertBeckebans/RBDOOM-3-BFG
tag: v1.5.1
- type: patch
path: shader-compiler.patch
- type: patch
path: shaders.patch
post-install:
# Install executable
- install -Dm 755 RBDoom3BFG /app/bin/RBDoom3BFG
# Install base files
- mkdir -p /app/share/rbdoom3bfg/base
- cp --recursive ../../base/* --target-directory /app/share/rbdoom3bfg/base
# Install desktop files
- name: rbdoom3bfg-desktop
buildsystem: simple
sources:
- type: file
path: RBDoom3BFG.metainfo.xml
- type: file
path: RBDoom3BFG.desktop
- type: file
path: RBDoom3BFG.128x128.png
- type: file
path: rbdoom3bfg.sh
build-commands:
- install -Dm 644 RBDoom3BFG.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm 644 RBDoom3BFG.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm 644 RBDoom3BFG.128x128.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -Dm 755 rbdoom3bfg.sh -t /app/bin