summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Vetter <[email protected]>2017-06-04 23:21:41 +0200
committerMichael Vetter <[email protected]>2017-06-05 14:34:47 +0200
commit9c524ee3a66953244b6a849f1161f43b22032724 (patch)
treea4193e3c644cb1f14eb6ac5bf0ae0d1e70ae4c53
parent1adc0313015b30cf061a3bc9d47292f82dc649f8 (diff)
downloadraylib-9c524ee3a66953244b6a849f1161f43b22032724.tar.gz
raylib-9c524ee3a66953244b6a849f1161f43b22032724.zip
Add meson files for basic Linux building
-rw-r--r--.gitignore2
-rw-r--r--meson.build14
-rw-r--r--src/meson.build19
3 files changed, 35 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 7e276829..99b04ee4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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..f416e665
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,19 @@
+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',
+]
+
+raylib = shared_library('raylib',
+ source_c,
+ dependencies : [ glfw_dep, gl_dep, openal_dep, m_dep, x11_dep],
+ install : true)
+