diff options
| author | Ray <[email protected]> | 2017-06-08 13:19:41 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-06-08 13:19:41 +0200 |
| commit | 9dd3c031535f49c18e2e0f6735661e751aa745ea (patch) | |
| tree | 64c275c4ce1e0763148cb438d81704cfb739d994 | |
| parent | 402a8bfd6842f15df940e7ed4f50fc36e0d73aff (diff) | |
| parent | 567831a693a98e9c6b021f58fa22ddc3da83c490 (diff) | |
| download | raylib-9dd3c031535f49c18e2e0f6735661e751aa745ea.tar.gz raylib-9dd3c031535f49c18e2e0f6735661e751aa745ea.zip | |
Merge pull request #297 from jubalh/meson
Initial meson support
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | meson.build | 14 | ||||
| -rw-r--r-- | src/meson.build | 21 |
3 files changed, 37 insertions, 0 deletions
@@ -129,3 +129,5 @@ src/libraylib.bc !release/rpi/libraylib.a !release/win32/mingw32/raylib.dll +# Meson build system +builddir/ diff --git a/meson.build b/meson.build new file mode 100644 index 00000000..4ac6c317 --- /dev/null +++ b/meson.build @@ -0,0 +1,14 @@ +project('raylib', 'c', version: '1.7.0', + license: 'zlib', + meson_version: '>= 0.39.1') + +cc = meson.get_compiler('c') + +glfw_dep = dependency('glfw3') +gl_dep = dependency('gl') +openal_dep = dependency('openal') +x11_dep = dependency('x11') +m_dep = cc.find_library('m', required : false) + +subdir('src') + diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 00000000..1b84e6f3 --- /dev/null +++ b/src/meson.build @@ -0,0 +1,21 @@ +install_headers('raylib.h') + +source_c = [ + 'audio.c', + 'core.c', + 'models.c', + 'rlgl.c', + 'shapes.c', + 'text.c', + 'textures.c', + 'utils.c', + 'external/stb_vorbis.c', +] + +# use 'meson --default-library=static builddir' to build as static, if no builddir yet exists +# use 'mesonconf -Ddefault_library=static builddir' to change the type +raylib = library('raylib', + source_c, + dependencies : [ glfw_dep, gl_dep, openal_dep, m_dep, x11_dep], + install : true) + |
