Initial port to macOS

Doesn't work yet as SDL1 is broken on modern macOS.

FossilOrigin-Name: f5b62f82030659a511f4add8212857fca598c6cef86a3238705eb60e35011631
This commit is contained in:
Jonathan Schleifer 2025-03-04 23:03:58 +00:00
parent 9782fa9b54
commit c3cd8d4fac
6 changed files with 26 additions and 13 deletions

View file

@ -9,7 +9,10 @@ add_global_arguments(
language: 'objcpp')
objfw_dep = dependency('objfw')
sdl12_dep = dependency('sdl12_compat')
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')
@ -21,6 +24,8 @@ 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')