commit
9dd3c03153
2
.gitignore
vendored
2
.gitignore
vendored
@ -129,3 +129,5 @@ src/libraylib.bc
|
||||
!release/rpi/libraylib.a
|
||||
!release/win32/mingw32/raylib.dll
|
||||
|
||||
# Meson build system
|
||||
builddir/
|
||||
|
14
meson.build
Normal file
14
meson.build
Normal file
@ -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')
|
||||
|
21
src/meson.build
Normal file
21
src/meson.build
Normal file
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user