Skeleton 💀 project for C++ (or C) using Meson
- Make build directory
mkdir build
andcd build
- Run Meson on parent dir/project root
meson ..
- Run Ninja to actually build the project
ninja
- Make build directory
mkdir build
andcd build
- Run Meson while providing a cross-compilation conf
meson .. --cross-file ../cross_file.txt
- Run Ninja to actually build the project
ninja
- Install the wrap (for example Lua):
meson wrap install lua
- Reference the subproject/dependency inside meson.build, like:
lua = subproject('lua') lua_dep = lua.get_variable('lua_dep')
- Add
lua_dep
in the array of common dependencies, like:lib_common_dep = [lua_dep, thread_dep]