summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/meson.build21
1 files changed, 21 insertions, 0 deletions
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)
+