mirror of
https://github.com/polybar/polybar.git
synced 2026-02-06 03:25:45 +00:00
refactor(cmake): Allow targets to be enabled individually
Each major target of polybar can now be enabled/disabled while configuring (even polybar itself). The cmake code specific to each target will only run if the target is enabled. This allows us to for example just build the documentation without having to run all the cmake code related to compilation or having the polybar dependencies installed (other than sphinx).
This commit is contained in:
committed by
Patrick Ziegler
parent
771154742c
commit
c24a6999a4
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -21,9 +21,9 @@ jobs:
|
||||
run: sudo apt-get install -y python3-sphinx
|
||||
- name: Build Documentation
|
||||
run: |
|
||||
mkdir -p doc/build
|
||||
cd doc/build
|
||||
cmake ..
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DDISABLE_ALL=ON -DBUILD_DOC=ON ..
|
||||
make doc
|
||||
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user