aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2022-08-28 09:52:08 +0300
committerCem Keylan <cem@ckyln.com>2022-08-28 09:52:08 +0300
commit53ec128bd5ac28aa87731b51741d72509d617120 (patch)
treef3d56c5739d9bf8875080429442e0491ac1c91be
parentd037a02e2bf04e3de0e2fe4c9170c735865090c7 (diff)
downloaddocs-53ec128bd5ac28aa87731b51741d72509d617120.tar.gz
docs: update convention for meson
-rw-r--r--carbslinux.org21
1 files changed, 12 insertions, 9 deletions
diff --git a/carbslinux.org b/carbslinux.org
index 80b8444..bd5fc4f 100644
--- a/carbslinux.org
+++ b/carbslinux.org
@@ -915,19 +915,22 @@ taken literally, they are meant as examples.
**** {{{sectid(2220, Meson)}}}
+The distribution provides a =cl-meson= wrapper script which sets some common
+options like installation directories, disables downloading subprojects among
+other things. This is the preferred method for packages.
+
#+BEGIN_SRC sh
- #!/bin/sh -e
+#!/bin/sh -e
- export DESTDIR=$1
+export DESTDIR=$1
- meson \
- --prefix=/usr \
- -Doption=false \
- -Doption2=true \
- . output
+cl-meson \
+ -Doption=false \
+ -Doption2=true \
+ . output
- ninja -C output
- ninja -C output install
+ninja -C output
+ninja -C output install
#+END_SRC
**** {{{sectid(2230, Cmake)}}}