diff options
| author | Mel <einebeere@gmail.com> | 2024-04-14 22:42:57 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-04-14 22:42:57 +0200 |
| commit | 0b2474a476b8d54967c7362c2d6bdfc76af1f05b (patch) | |
| tree | 08c1e81e36c50e5bf3240876fa345ae9eddfe21e /meson.build | |
| parent | 659c8b58e5307baad98f52199372a8b0261b4106 (diff) | |
| download | meowcraft-0b2474a476b8d54967c7362c2d6bdfc76af1f05b.tar.zst meowcraft-0b2474a476b8d54967c7362c2d6bdfc76af1f05b.zip | |
Nix build on x86_64-linux (not static yet)
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 8d3ed27..f69126f 100644 --- a/meson.build +++ b/meson.build @@ -8,11 +8,24 @@ project('meowcraft', 'cpp', subdir('assets') subdir('src') +dependencies = [] + glfw = dependency('glfw3', version : '>=3.3') glew = dependency('glew', version : '>=2.1.0') -opengl = dependency('appleframeworks', modules : ['OpenGL']) + +dependencies += [glfw, glew] + +if target_machine.system() == 'darwin' + darwin_opengl = dependency('appleframeworks', modules : ['OpenGL']) + dependencies += [darwin_opengl] +endif + +if target_machine.system() == 'linux' + linux_opengl = dependency('gl') + dependencies += [linux_opengl] +endif executable('meowcraft', source_files + [asset_file], - dependencies : [glfw, glew, opengl], + dependencies : dependencies, install : true) |
