Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libdecor support for SDL #170

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -45,6 +45,8 @@ jobs:
ninja-build \
wayland-scanner++ \
wayland-protocols \
meson \
libpango1.0-dev \
pkg-config${{ matrix.platform.target_apt_arch }} \
libasound2-dev${{ matrix.platform.target_apt_arch }} \
libdbus-1-dev${{ matrix.platform.target_apt_arch }} \
Expand Down Expand Up @@ -72,6 +74,14 @@ jobs:
libdrm-dev${{ matrix.platform.target_apt_arch }} \
libgbm-dev${{ matrix.platform.target_apt_arch }} \
libpulse-dev${{ matrix.platform.target_apt_arch }}
- name: Build libdecor
if: runner.os == 'Linux'
run: |
git clone https://gitlab.freedesktop.org/libdecor/libdecor.git
cd libdecor
git checkout 0.1.1
meson build -Ddemo=false -Dprefix=/usr
sudo meson install -C build
- uses: actions/checkout@v3
with:
repository: 'libsdl-org/SDL'
Expand Down Expand Up @@ -99,7 +109,10 @@ jobs:
run: cp install_output/bin/SDL2.dll SDL2-CS/native/${{ matrix.platform.name }}/SDL2.dll
if: runner.os == 'Windows'
- name: Prepare release (Linux)
run: cp install_output/lib/libSDL2-2.0.so.0 SDL2-CS/native/${{ matrix.platform.name }}/libSDL2.so
run: |
cp install_output/lib/libSDL2-2.0.so.0 SDL2-CS/native/${{ matrix.platform.name }}/libSDL2.so
cp /usr/lib/x86_64-linux-gnu/libdecor-0.so.0.100.1 SDL2-CS/native/${{ matrix.platform.name }}/libdecor-0.so
cp /usr/lib/x86_64-linux-gnu/libdecor SDL2-CS/native/${{ matrix.platform.name }}/libdecor
if: runner.os == 'Linux'
- name: Prepare release (macOS)
run: cp install_output/lib/libSDL2-2.0.dylib SDL2-CS/native/${{ matrix.platform.name }}/libSDL2.dylib
Expand Down