Meson出现的原因:
C++需要一个仓库管理系统,用于管理依赖包。类似于Java里的Maven。Maven可以做什么呢?Maven是Java的项目构建工具+仓库管理工具。
由此需求下,Cargo和Meson应运而生。它们相比之前的CMake来说,自然要更加的有用。它不仅仅支持C/C++,还支持多种语言。如今,很多项目都由CMake转向到了Meson,例如DPDK和Mapnik。
收录时间2013-11-26
开发语言:Python
开发单位:Apache基金会
Meson使用:https://my.oschina.net/u/4349408/blog/3295014
ninja:一个简单的构建方式:https://my.oschina.net/u/4292686/blog/4708023
从CMake转Meson:https://www.bilibili.com/video/BV1D5411H7F5
Meson跨平台吗?https://www.ctolib.com/meson.html
Meson® is a project to create the best possible next-generation build system.
Status:
Dependencies
Installing from source
Meson is available on PyPi, so it can be installed with pip3 install meson
. The exact command to type to install with pip
can vary between systems, be sure to use the Python 3 version of pip
.
If you wish you can install it locally with the standard Python command:
python3 -m pip install meson
For builds using Ninja, Ninja can be downloaded directly from Ninja GitHub release page or via PyPi
python3 -m pip install ninja
More on Installing Meson build can be found at the getting meson page.
Running
Meson requires that you have a source directory and a build directory and that these two are different.