mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Build wlc as part of build step
This commit is contained in:
parent
6ae6875bba
commit
cf1176c728
2 changed files with 26 additions and 4 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue