add xinclude for --buildtype=release

This commit is contained in:
Xi Ruoyao 2021-06-04 19:26:37 +08:00
parent 307e799f8d
commit 3918112abd
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC
12 changed files with 64 additions and 24 deletions

View File

@ -173,8 +173,8 @@ cd build &&
meson --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--buildtype=release \
-Dblkid=true \
-Dbuildtype=release \
-Ddefault-dnssec=no \
-Dfirstboot=false \
-Dinstall-tests=false \
@ -252,6 +252,9 @@ ninja</userinput></screen>
</para>
-->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
<para>
<parameter>-Dpamconfdir=/etc/pam.d</parameter>: Forces the PAM files to
be installed in /etc/pam.d rather than /usr/lib/pam.d.

View File

@ -103,7 +103,7 @@
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson --prefix=/usr -Dbuildtype=release .. &amp;&amp;
meson --prefix=/usr --buildtype=release .. &amp;&amp;
ninja</userinput></screen>
<para>
@ -121,6 +121,9 @@ ninja</userinput></screen>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
<para>
<option>-Dgtk_doc=true</option>: Use this option
to build the API reference manual.

View File

@ -112,7 +112,7 @@
cd build &amp;&amp;
meson --prefix=/usr \
-Dbuildtype=release \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer &gst10-libav-version; BLFS" &amp;&amp;
ninja</userinput></screen>
@ -129,17 +129,12 @@ ninja</userinput></screen>
<screen role="root"><userinput>ninja install</userinput></screen>
</sect2>
<!-- No longer included with Meson change
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<option>- -with-libav-extra-configure="- -disable-yasm"</option>: Use this
switch if you don't have <application>yasm</application> installed.
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
</sect2>
-->
<sect2 role="content">
<title>Contents</title>

View File

@ -193,7 +193,7 @@
cd build &amp;&amp;
meson --prefix=/usr \
-Dbuildtype=release \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer &gst10-plugins-bad-version; BLFS" &amp;&amp;
ninja</userinput></screen>
@ -210,6 +210,13 @@ ninja</userinput></screen>
<screen role="root"><userinput>ninja install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>

View File

@ -145,7 +145,7 @@
cd build &amp;&amp;
meson --prefix=/usr \
-Dbuildtype=release \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer &gst10-plugins-base-version; BLFS" \
--wrap-mode=nodownload &amp;&amp;
@ -178,8 +178,12 @@ ninja</userinput></screen>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-wrap-nodownload.xml"/>
</sect2>
<sect2 role="content">

View File

@ -163,7 +163,7 @@ mkdir build &amp;&amp;
cd build &amp;&amp;
meson --prefix=/usr \
-Dbuildtype=release \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer &gst10-plugins-good-version; BLFS" &amp;&amp;
ninja</userinput></screen>
@ -180,6 +180,13 @@ ninja</userinput></screen>
<screen role="root"><userinput>ninja install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>

View File

@ -126,7 +126,7 @@
cd build &amp;&amp;
meson --prefix=/usr \
-Dbuildtype=release \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer &gst10-plugins-good-version; BLFS" &amp;&amp;
ninja</userinput></screen>
@ -142,6 +142,13 @@ ninja</userinput></screen>
<screen role="root"><userinput>ninja install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>

View File

@ -107,7 +107,7 @@
cd build &amp;&amp;
meson --prefix=/usr \
-Dbuildtype=release \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ &amp;&amp;
ninja</userinput></screen>
@ -123,6 +123,13 @@ ninja</userinput></screen>
<screen role="root"><userinput>ninja install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>

View File

@ -129,7 +129,7 @@
cd build &amp;&amp;
meson --prefix=/usr \
-Dbuildtype=release \
--buildtype=release \
-Dgst_debug=false \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer &gstreamer10-version; BLFS" &amp;&amp;
@ -159,6 +159,13 @@ ninja</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>

View File

@ -113,7 +113,7 @@
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson --prefix=/usr -Dbuildtype=release .. &amp;&amp;
meson --prefix=/usr --buildtype=release .. &amp;&amp;
ninja</userinput></screen>
<para>
@ -134,6 +134,9 @@ ninja</userinput></screen>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
<para>
<parameter>-Duser_documentation=false</parameter>: This switch disables
generating the user documentation. Omit this switch if you have

View File

@ -137,11 +137,8 @@ ln -sfv /usr/libexec/p11-kit/trust-extract-compat \
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>--buildtype=release</parameter>: Override the default
buildtype (<quote>debug</quote>), which would produce unoptimized
binaries.
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
<para>
<parameter>-Dtrust_paths=/etc/pki/anchors</parameter>: this switch

View File

@ -230,7 +230,7 @@ DRI_DRIVERS="i965,nouveau"</userinput></screen>
cd build &amp;&amp;
meson --prefix=$XORG_PREFIX \
-Dbuildtype=release \
--buildtype=release \
-Ddri-drivers=$DRI_DRIVERS \
-Dgallium-drivers=$GALLIUM_DRV \
-Dgallium-nine=false \
@ -274,7 +274,7 @@ cp -rfv ../docs/* /usr/share/doc/mesa-&mesa-version;</userinput></screen>
<title>Command Explanations</title>
<para>
<parameter>-Dbuildtype=release</parameter>: This switch ensures a
<parameter>--buildtype=release</parameter>: This switch ensures a
fully-optimized build, and disables debug assertions which will
severely slow down the libraries in certain use-cases. Without this
switch, build sizes can span into the 2GB range.