meson wrap

This commit is contained in:
Tony Crisci 2017-12-05 09:02:42 -05:00
parent 83b4c0648d
commit 9e53764f13
6 changed files with 12 additions and 10 deletions

View file

@ -15,13 +15,7 @@ packages:
- libxkbcommon - libxkbcommon
sources: sources:
- https://git.sr.ht/~sircmpwn/sway - https://git.sr.ht/~sircmpwn/sway
- https://git.sr.ht/~sircmpwn/wlroots
tasks: tasks:
- wlroots: |
cd wlroots
meson --prefix=/usr build
ninja -C build
sudo ninja -C build install
- setup: | - setup: |
cd sway cd sway
meson build meson build

1
.gitignore vendored
View file

@ -8,3 +8,4 @@ build/
.lvimrc .lvimrc
config-debug config-debug
wayland-*-protocol.* wayland-*-protocol.*
subprojects/wlroots/

View file

@ -26,8 +26,6 @@ arch:
- libinput - libinput
- libxkbcommon - libxkbcommon
script: script:
- git clone https://github.com/swaywm/wlroots
- 'cd wlroots && meson --prefix=/usr build && ninja -C build && sudo ninja -C build install'
- meson build --buildtype=$BUILD_TYPE - meson build --buildtype=$BUILD_TYPE
- ninja -C build - ninja -C build

View file

@ -1,3 +1,7 @@
sway_common_deps = [
wlroots
]
lib_sway_common = static_library('sway-common', lib_sway_common = static_library('sway-common',
files( files(
'log.c', 'log.c',
@ -7,5 +11,6 @@ lib_sway_common = static_library('sway-common',
'readline.c', 'readline.c',
'ipc-client.c' 'ipc-client.c'
), ),
include_directories: sway_inc include_directories: sway_inc,
dependencies: [sway_common_deps]
) )

View file

@ -20,7 +20,7 @@ prefix = get_option('prefix')
jsonc = dependency('json-c', version: '>=0.12.1') jsonc = dependency('json-c', version: '>=0.12.1')
pcre = dependency('libpcre') pcre = dependency('libpcre')
wlroots = dependency('wlroots') wlroots = dependency('wlroots', fallback: ['wlroots', 'wlroots'])
wayland_server = dependency('wayland-server') wayland_server = dependency('wayland-server')
wayland_client = dependency('wayland-client') wayland_client = dependency('wayland-client')
wayland_egl = dependency('wayland-egl') wayland_egl = dependency('wayland-egl')

4
subprojects/wlroots.wrap Normal file
View file

@ -0,0 +1,4 @@
[wrap-git]
directory=wlroots
url=https://github.com/swaywm/wlroots.git
revision=head