Artifact 3e8495e9ecb56531e65a7e1e2c5431707b485f7dad742ac67a9d4f2f298d96ff:
- File
meson.build
— part of check-in
[f5b62f8203]
at
2025-03-04 23:03:58
on branch trunk
— Initial port to macOS
Doesn't work yet as SDL1 is broken on modern macOS. (user: js, size: 852) [annotate] [blame] [check-ins using]
project('Cube', ['c', 'objcpp'], meson_version: '>=1.5.0') add_global_arguments( [ '-fobjc-arc', '-fobjc-arc-exceptions' ], language: 'objcpp') objfw_dep = dependency('objfw') sdl_dep = dependency('sdl12_compat', required: false) if not sdl_dep.found() sdl_dep = dependency('SDL') endif sdlimage_dep = dependency('SDL_image') sdlmixer_dep = dependency('SDL_mixer') zlib_dep = dependency('zlib') client_link_args = [] server_link_args = [] extra_deps = [] if host_machine.system() == 'windows' client_link_args += ['-lopengl32', '-lglu32', '-lwinmm'] server_link_args += ['-lwinmm'] elif host_machine.system() == 'darwin' extra_deps += dependency('OpenGL', method: 'extraframework') else extra_deps += dependency('gl') extra_deps += dependency('glu') extra_deps += dependency('x11') endif subdir('enet') subdir('src')