From 53ec128bd5ac28aa87731b51741d72509d617120 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 28 Aug 2022 09:52:08 +0300 Subject: docs: update convention for meson --- carbslinux.org | 21 ++++++++++++--------- 1 file 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)}}} -- cgit v1.2.3