meson.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-meson" role="wrap">
  8. <?dbhtml filename="meson.html"?>
  9. <sect1info condition="script">
  10. <productname>meson</productname>
  11. <productnumber>&meson-version;</productnumber>
  12. <address>&meson-url;</address>
  13. </sect1info>
  14. <title>Meson-&meson-version;</title>
  15. <indexterm zone="ch-system-meson">
  16. <primary sortas="a-Meson">Meson</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Meson 是一个开放源代码构建系统,它的设计保证了非常快的执行速度,
  21. 同时更注重用户友好性。</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&meson-ch6-sbu;</seg>
  27. <seg>&meson-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>安装 Meson</title>
  33. <para>执行以下命令编译 Meson:</para>
  34. <screen><userinput remap="make">python3 setup.py build</userinput></screen>
  35. <para>该软件包不包含测试套件。</para>
  36. <para>安装该软件包:</para>
  37. <screen><userinput remap="install">python3 setup.py install --root=dest
  38. cp -rv dest/* /</userinput></screen>
  39. <variablelist>
  40. <title>安装选项的含义:</title>
  41. <varlistentry>
  42. <term><parameter>--root=dest</parameter></term>
  43. <listitem>
  44. <para>默认情况下 <command>python3 setup.py install</command>
  45. 将若干文件(如 man 页面)安装到 Python Eggs 中。
  46. 在指定了根目录位置时,<command>setup.py</command>
  47. 将这些文件安装到符合标准的目录树中。
  48. 我们即可直接复制该目录树,使得这些文件位于标准指定的位置。
  49. </para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. </sect2>
  54. <sect2 id="contents-meson" role="content">
  55. <title>Meson 的内容</title>
  56. <segmentedlist>
  57. <segtitle>安装的程序</segtitle>
  58. <segtitle>安装的目录</segtitle>
  59. <seglistitem>
  60. <seg>meson, mesonconf, mesonintrospect, mesontest, 以及 wraptool</seg>
  61. <seg>/usr/lib/python&python-minor;/site-packages/meson-&meson-version;-py&python-minor;.egg</seg>
  62. </seglistitem>
  63. </segmentedlist>
  64. <variablelist>
  65. <bridgehead renderas="sect3">简要描述</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="meson">
  69. <term><command>meson</command></term>
  70. <listitem>
  71. <para>一个高产出的构建系统</para>
  72. <indexterm zone="ch-system-meson meson">
  73. <primary sortas="b-meson">meson</primary>
  74. </indexterm>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry id="mesonconf">
  78. <term><command>mesonconf</command></term>
  79. <listitem>
  80. <para>一个配置 Meson 构建的工具</para>
  81. <indexterm zone="ch-system-meson mesonconf">
  82. <primary sortas="b-mesonconf">mesonconf</primary>
  83. </indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="mesonintrospect">
  87. <term><command>mesonintrospect</command></term>
  88. <listitem>
  89. <para>一个提取 Meson 构建相关信息的工具</para>
  90. <indexterm zone="ch-system-meson mesonintrospect">
  91. <primary sortas="b-mesonintrospect">mesonintrospect</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="mesontest">
  96. <term><command>mesontest</command></term>
  97. <listitem>
  98. <para>Meson 构建系统的测试工具</para>
  99. <indexterm zone="ch-system-meson mesontest">
  100. <primary sortas="b-mesontest">mesontest</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="wraptool">
  105. <term><command>wraptool</command></term>
  106. <listitem>
  107. <para>源代码依赖项下载器</para>
  108. <indexterm zone="ch-system-meson wraptool">
  109. <primary sortas="b-wraptool">wraptool</primary>
  110. </indexterm>
  111. </listitem>
  112. </varlistentry>
  113. </variablelist>
  114. </sect2>
  115. </sect1>