mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
meson-pgo: add mode=none
This commit is contained in:
parent
8ea6c93515
commit
a3b6ecf3b2
1 changed files with 16 additions and 10 deletions
26
meson-pgo.sh
26
meson-pgo.sh
|
|
@ -12,7 +12,7 @@ if [ -d ${build_dir} ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case ${mode} in
|
case ${mode} in
|
||||||
auto|partial|full|full-headless-sway)
|
none|auto|partial|full|full-headless-sway)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
@ -42,15 +42,21 @@ case $(${CC-cc} --version) in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ${mode} = auto ]; then
|
case ${mode} in
|
||||||
if command -v sway > /dev/null; then
|
none)
|
||||||
mode=full-headless-sway
|
do_pgo=no
|
||||||
elif [ -n "${WAYLAND_DISPLAY+x}" ]; then
|
;;
|
||||||
mode=full
|
|
||||||
else
|
auto)
|
||||||
mode=partial
|
if command -v sway > /dev/null; then
|
||||||
fi
|
mode=full-headless-sway
|
||||||
fi
|
elif [ -n "${WAYLAND_DISPLAY+x}" ]; then
|
||||||
|
mode=full
|
||||||
|
else
|
||||||
|
mode=partial
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# echo "source: ${source_dir}"
|
# echo "source: ${source_dir}"
|
||||||
# echo "build: ${build_dir}"
|
# echo "build: ${build_dir}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue