mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
Build wlc as part of build step
This commit is contained in:
parent
6ae6875bba
commit
cf1176c728
17
.ci/build.sh
Executable file
17
.ci/build.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# clone and build wlc
|
||||||
|
git clone https://github.com/Cloudef/wlc.git
|
||||||
|
cd wlc
|
||||||
|
git submodule update --init --recursive # - initialize and fetch submodules
|
||||||
|
mkdir target && cd target # - create build target directory
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Upstream .. # - run CMake
|
||||||
|
make # - compile
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
|
||||||
|
# build sway
|
||||||
|
cmake \
|
||||||
|
-DWLC_LIBRARIES=wlc/target/src/libwlc.so \
|
||||||
|
-DWLC_INCLUDE_DIRS=wlc/include .
|
||||||
|
make
|
13
.travis.yml
13
.travis.yml
|
@ -7,11 +7,16 @@ arch:
|
||||||
- asciidoc
|
- asciidoc
|
||||||
- pcre
|
- pcre
|
||||||
- json-c
|
- json-c
|
||||||
# aur
|
- pixman
|
||||||
- wlc-git
|
- wayland
|
||||||
|
- libxkbcommon
|
||||||
|
- libinput
|
||||||
|
- libx11
|
||||||
|
- libxcb
|
||||||
|
- libgl
|
||||||
|
- mesa
|
||||||
script:
|
script:
|
||||||
- "cmake ."
|
- "bash .ci/build.sh"
|
||||||
- "make"
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash"
|
- "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash"
|
||||||
|
|
Loading…
Reference in a new issue