raylib build for Meson projects.
Create a meson.build file
project('myproject', 'c',
version : '1.0.0',
license: 'MIT'
)
raylib_proj = subproject('raylib')
raylib_dep = raylib_proj.get_variable('raylib_dep')
executable('myproject', 'myproject.c',
dependencies: [raylib_dep]
)
Create the subprojects .wrap files
Build the project
meson build
cd build
ninja
See the examples
folder for some examples of this in place. Also see raylib-meson-sample for a dedicated repository.
git submodule update --init
meson build
cd build
ninja