build wayland support

This commit is contained in:
catsout 2021-12-14 18:16:14 +08:00
parent ccddec674a
commit e2d576cde6
3 changed files with 33 additions and 31 deletions

View file

@ -4,54 +4,56 @@ runtime-version: '21.08'
sdk: org.freedesktop.Sdk sdk: org.freedesktop.Sdk
rename-icon: ppsspp rename-icon: ppsspp
rename-desktop-file: PPSSPPSDL.desktop rename-desktop-file: PPSSPPSDL.desktop
rename-appdata-file: appdata.xml
command: PPSSPPSDL command: PPSSPPSDL
finish-args: finish-args:
- --device=all - --device=all
- --filesystem=host:ro - --filesystem=host:ro
- --socket=pulseaudio - --socket=pulseaudio
- --socket=x11 - --socket=x11
- --socket=wayland
- --share=network - --share=network
modules: modules:
- shared-modules/glu/glu-9.json - shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json - shared-modules/glew/glew.json
- name: ppsspp - name: ppsspp
buildsystem: simple buildsystem: cmake
config-opts:
- '-DUSE_SYSTEM_FFMPEG=OFF'
- '-DUSE_SYSTEM_LIBZIP=ON'
- '-DUSE_SYSTEM_ZSTD=ON'
#- '-DUSE_SYSTEM_SNAPPY=ON'
- '-DUSE_WAYLAND_WSI=ON'
- '-DUSING_X11_VULKAN=ON'
- '-DUSING_QT_UI=OFF'
- '-DBUILD_TESTING=OFF'
- '-DOpenGL_GL_PREFERENCE=GLVND'
build-options: build-options:
arch: arch:
x86_64:
config-opts:
- '-DX86_64=ON'
aarch64: aarch64:
env: config-opts:
EXTRA_OPTS: '-DUSING_GLES2=ON' - '-DUSING_EGL=ON'
build-commands: - '-DUSING_GLES2=ON'
- cd ffmpeg && rm -r linux && ../build-ffmpeg.sh - '-DARM64=ON'
- cmake
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=${FLATPAK_DEST}
${EXTRA_OPTS}
.
- make -j${FLATPAK_BUILDER_N_JOBS} && make install
post-install: post-install:
- desktop-file-edit --set-name=PPSSPP --set-icon=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/PPSSPPSDL.desktop - desktop-file-edit --set-name=PPSSPP ${FLATPAK_DEST}/share/applications/PPSSPPSDL.desktop
- install -Dm644 appdata.xml -t ${FLATPAK_DEST}/share/appdata - install -Dm644 ${FLATPAK_ID}.appdata.xml -t ${FLATPAK_DEST}/share/appdata
sources: sources:
- type: git - type: git
url: https://github.com/hrydgard/ppsspp.git url: https://github.com/hrydgard/ppsspp.git
tag: v1.12.3 tag: v1.12.3
- type: shell
commands:
# fix ffmpeg link issue on aarch64
- |
cd ffmpeg
git checkout 70bfd4a77487e56ef60b4adfc47f714cfea59794
- type: file - type: file
path: appdata.xml path: org.ppsspp.PPSSPP.appdata.xml
- type: script
dest-filename: build-ffmpeg.sh
only-arches:
- aarch64
commands:
- sed -i 's/GENERAL=/GENERAL_NO=/' linux_arm64.sh
- ./linux_arm64.sh
- type: script
dest-filename: build-ffmpeg.sh
only-arches:
- x86_64
commands:
- ./linux_x86-64.sh

@ -1 +1 @@
Subproject commit ae74ea6577e92d3dd768575214a45df8c7b45a32 Subproject commit 0534d3276b3966e87abacd163f757454b6fcf724