RobLoach / raylib-meson

raylib meson build system.
https://github.com/RobLoach/raylib-meson-sample
9 stars 5 forks source link
meson raylib

raylib-meson

raylib build for Meson projects.

Usage

  1. 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]
    )
  2. Create the subprojects .wrap files

  3. 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.

Development

git submodule update --init
meson build
cd build
ninja