From 17c3817502f24eec3f25969a895e8331d1e1499e Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 8 Oct 2022 21:10:27 +0800 Subject: rust: chapter08: add cmake --- chapter05/cmake.xml | 3 +- chapter08/chapter08.xml | 1 + chapter08/cmake.xml | 139 ++++++++++++++++++++++++++++++++++++++++++++++++ packages.ent | 2 + 4 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 chapter08/cmake.xml diff --git a/chapter05/cmake.xml b/chapter05/cmake.xml index 650a2ea5e..296cd47d9 100644 --- a/chapter05/cmake.xml +++ b/chapter05/cmake.xml @@ -78,7 +78,8 @@ - <para>Details on this package are located in TODO.</para> + <para>Details on this package are located in + <xref linkend="contents-cmake" role="."/></para> </sect2> </sect1> diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index 902d1bf48..ec32010c6 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -59,6 +59,7 @@ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="autoconf.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="automake.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="openssl.xml"/> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cmake.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kmod.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libelf.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libffi.xml"/> diff --git a/chapter08/cmake.xml b/chapter08/cmake.xml new file mode 100644 index 000000000..d49fcc84b --- /dev/null +++ b/chapter08/cmake.xml @@ -0,0 +1,139 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ + <!ENTITY % general-entities SYSTEM "../general.ent"> + %general-entities; +]> + +<sect1 id="ch-system-cmake" role="wrap"> + <?dbhtml filename="cmake.html"?> + + <sect1info condition="script"> + <productname>cmake</productname> + <productnumber>&cmake-version;</productnumber> + <address>&cmake-url;</address> + </sect1info> + + <title>CMake-&cmake-version; + + + CMake + + + + + + <para>The CMake package contains a modern toolset used for generating + Makefiles. It is a successor of the auto-generated configure script and + aims to be platform- and compiler-independent. A significant user of + CMake is LLVM.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&cmake-final-sbu;</seg> + <seg>&cmake-final-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of CMake + + Prevents applications using CMake from attempting to install files + into lib64: + +sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake + + Prepare CMake for compilation: + +./bootstrap --prefix=/usr --no-system-libs + + Compile CMake by running: + +make + + Install the package: + +make install + + + + + Contents of CMake + + + Installed Programs + Installed Directories + + + + ccmake, cmake, cpack, and ctest + + + /usr/share/cmake-&cmake-majmin; and + /usr/share/doc/cmake-&cmake-version; + + + + + + Short Descriptions + + + + + ccmake + + + is a curses based interactive frontend to + cmake + + + ccmake + + + + + + cmake + + + is the makefile generator + + + cmake + + + + + + cpack + + + is the CMake packaging program + + + cpack + + + + + + ctest + + + is a testing utility for cmake-generated build trees + + + ctest + + + + + + + diff --git a/packages.ent b/packages.ent index e6467f58c..853c230d3 100644 --- a/packages.ent +++ b/packages.ent @@ -112,6 +112,8 @@ + + -- cgit v1.2.3-54-g00ecf