### Manually Installing Meson using Virtualenv Source: https://github.com/openzim/zim-tools/blob/main/README.md This set of commands outlines the manual installation process for Meson, a build system, by first creating and activating a Python virtual environment, then installing Meson via `pip3`, and finally refreshing the shell's command hash. ```bash virtualenv -p python3 ./\nsource bin/activate\npip3 install meson\nhash -r ``` -------------------------------- ### Installing Compiled ZIM Tools (Bash) Source: https://github.com/openzim/zim-tools/blob/main/README.md This snippet provides the command to install the compiled ZIM tools onto the system. It uses Ninja to perform the installation from within the 'build' directory, making the tools available system-wide. ```bash ninja -C build install ``` -------------------------------- ### Manually Installing Ninja from Source Source: https://github.com/openzim/zim-tools/blob/main/README.md This snippet provides instructions for manually installing the Ninja build system directly from its Git repository. It involves cloning the repository, checking out a stable release, configuring the build, and copying the compiled executable to a local bin directory. ```bash git clone git://github.com/ninja-build/ninja.git\ncd ninja\ngit checkout release\n./configure.py --bootstrap\nmkdir ../bin\ncp ninja ../bin\ncd .. ``` -------------------------------- ### Defining Libmagic Install Prefix Option - Meson Build System Source: https://github.com/openzim/zim-tools/blob/main/meson_options.txt This snippet defines a string build option named 'magic-install-prefix'. It is used to specify the installation path for the 'libmagic' library, which is likely a required dependency for the project. The default value for this option is an empty string, implying the system's default search paths will be used. ```Meson Build System option('magic-install-prefix', type : 'string', value : '', description : 'Prefix where libmagic has been installed') ``` -------------------------------- ### Uninstalling ZIM Tools with Ninja Source: https://github.com/openzim/zim-tools/blob/main/README.md This snippet demonstrates how to uninstall the ZIM tools using the `ninja` build system. It's important to note that this command might require root privileges (or `sudo`) depending on the installation location. ```bash ninja -C build uninstall ``` -------------------------------- ### Compiling ZIM Tools with Meson and Ninja (Bash) Source: https://github.com/openzim/zim-tools/blob/main/README.md This snippet shows the commands to compile the ZIM tools. It uses Meson to configure the build system and Ninja to perform the actual compilation. By default, dynamic linked libraries are created in the 'build' directory. Static linking can be enabled with a Meson option. ```bash meson . build ninja -C build ``` -------------------------------- ### Running Automated Tests for ZIM Tools (Bash) Source: https://github.com/openzim/zim-tools/blob/main/README.md This snippet demonstrates how to execute the automated tests for the compiled ZIM tools. It requires navigating into the 'build' directory created during compilation and then running the 'meson test' command. Google Test is a prerequisite for compiling and running these tests. ```bash cd build meson test ``` -------------------------------- ### Defining Static Linkage Option - Meson Build System Source: https://github.com/openzim/zim-tools/blob/main/meson_options.txt This snippet defines a boolean build option named 'static-linkage'. When set to true, it instructs the Meson build system to create statically linked binaries for the project. The default value for this option is false, indicating dynamic linking by default. ```Meson Build System option('static-linkage', type : 'boolean', value : false, description : 'Create statically linked binaries.') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.