summaryrefslogtreecommitdiffstats
path: root/.ci/build.sh
blob: e2d2ced987b93f2f8b6d5aac078ec3114a89ab9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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