mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
.builds/archlinux: add x86 build
This commit is contained in:
parent
2397e38224
commit
b6ffc26cb2
3 changed files with 47 additions and 2 deletions
26
.builds/archlinux-cross-x86.yml
Normal file
26
.builds/archlinux-cross-x86.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
image: archlinux
|
||||||
|
packages:
|
||||||
|
- meson
|
||||||
|
sources:
|
||||||
|
- https://gitlab.freedesktop.org/wlroots/wlroots.git
|
||||||
|
- https://git.sr.ht/~kennylevinsen/seatd#0.7.0
|
||||||
|
- https://gitlab.freedesktop.org/emersion/libliftoff.git#v0.4.0
|
||||||
|
tasks:
|
||||||
|
- setup: |
|
||||||
|
# multilib is not enabled by default, packages have to be installed manually
|
||||||
|
sudo sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
||||||
|
sudo pacman -Syy --noconfirm multilib-devel lib32-wayland lib32-libdrm lib32-libxkbcommon lib32-libxcb lib32-pixman lib32-mesa lib32-systemd
|
||||||
|
# not all dependencies are available in multilib
|
||||||
|
mkdir -p wlroots/subprojects
|
||||||
|
ln -s seatd wlroots/subprojects/seatd
|
||||||
|
ln -s libliftoff wlroots/subprojects/libliftoff
|
||||||
|
cd wlroots
|
||||||
|
meson setup build --fatal-meson-warnings --default-library=both --prefix /usr --cross-file=.builds/x86-linux-gnu.ini --force-fallback=seatd,libliftoff
|
||||||
|
- build: |
|
||||||
|
cd wlroots/build
|
||||||
|
ninja
|
||||||
|
sudo ninja install
|
||||||
|
- tinywl: |
|
||||||
|
cd wlroots/tinywl
|
||||||
|
make
|
||||||
|
|
||||||
|
|
@ -24,8 +24,8 @@ sources:
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
cd wlroots
|
cd wlroots
|
||||||
CC=gcc meson setup build-gcc --fatal-meson-warnings --default-library=both -Dauto_features=enabled --prefix /usr -Db_sanitize=address,undefined
|
meson setup build --fatal-meson-warnings --default-library=both -Dauto_features=enabled --prefix /usr -Db_sanitize=address,undefined
|
||||||
- gcc: |
|
- build: |
|
||||||
cd wlroots/build
|
cd wlroots/build
|
||||||
ninja
|
ninja
|
||||||
sudo ninja install
|
sudo ninja install
|
||||||
|
|
|
||||||
19
.builds/x86-linux-gnu.ini
Normal file
19
.builds/x86-linux-gnu.ini
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
[binaries]
|
||||||
|
c = '/usr/bin/gcc'
|
||||||
|
cpp = '/usr/bin/g++'
|
||||||
|
ar = '/usr/bin/gcc-ar'
|
||||||
|
strip = '/usr/bin/strip'
|
||||||
|
pkgconfig = '/usr/bin/pkgconf'
|
||||||
|
llvm-config = '/usr/bin/llvm-config32'
|
||||||
|
|
||||||
|
[built-in options]
|
||||||
|
c_args = ['-m32']
|
||||||
|
c_link_args = ['-m32']
|
||||||
|
pkg_config_path = ['/usr/lib32/pkgconfig']
|
||||||
|
libdir = 'lib32'
|
||||||
|
|
||||||
|
[host_machine]
|
||||||
|
system = 'linux'
|
||||||
|
cpu_family = 'x86'
|
||||||
|
cpu = 'i686'
|
||||||
|
endian = 'little'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue