/raylib-barebones

A stripped down version of Raylib + Meson

Primary LanguageC

raylib-barebones

Stripped-down and auto-generated Raylib build for Meson projects.

Usage:

  1. Create a meson.build file like this:
    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]
    )

An example can be found here

  1. Create the subprojects .wrap files

  2. Build the project

    meson build
    cd build
    ninja

Re-Generation:

To regenerate, you would need:

  • Lua5.1+
  • Latest Meson + Ninja
  • GIT
  • A posix-compatible OS/Shell

Run the following:

chmod +x get.lua
./get.lua

About:

This repo is a fork of @RobLoach's fantastic raylib-meson, I had to upload it as a separate repository because git freaked up and ended making .git/objects/pack over 70MB and that defeats the whole purpose of this fork