Skip to content

Commit

Permalink
Build wlc as part of build step
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkeloscar committed Sep 4, 2015
1 parent 6ae6875 commit cf1176c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .ci/build.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ arch:
- asciidoc
- pcre
- json-c
# aur
- wlc-git
- pixman
- wayland
- libxkbcommon
- libinput
- libx11
- libxcb
- libgl
- mesa
script:
- "cmake ."
- "make"
- "bash .ci/build.sh"

script:
- "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash"

0 comments on commit cf1176c

Please sign in to comment.