https://github.com/robloach/raylib-meson
raylib meson build system.
https://github.com/robloach/raylib-meson
meson raylib
Last synced: about 1 year ago
JSON representation
raylib meson build system.
- Host: GitHub
- URL: https://github.com/robloach/raylib-meson
- Owner: RobLoach
- Created: 2019-01-06T23:43:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T09:34:40.000Z (over 7 years ago)
- Last Synced: 2025-03-30T18:02:06.209Z (about 1 year ago)
- Topics: meson, raylib
- Language: Meson
- Homepage: https://github.com/RobLoach/raylib-meson-sample
- Size: 73.2 MB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# raylib-meson
[raylib](https://github.com/raysan5/raylib) build for [Meson](https://mesonbuild.com) projects.
## Usage
1. Create a [meson.build](examples/core_basic_window/meson.build) file
``` python
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](examples/core_basic_window/subprojects)
- [`subprojects/glfw.wrap`](examples/core_basic_window/subprojects/glfw.wrap)
- [`subprojects/raylib.wrap`](examples/core_basic_window/subprojects/raylib.wrap)
3. Build the project
``` bash
meson build
cd build
ninja
```
See [the `examples` folder](examples) for some examples of this in place. Also see [raylib-meson-sample](https://github.com/RobLoach/raylib-meson-sample) for a dedicated repository.
## Development
``` bash
git submodule update --init
meson build
cd build
ninja
```