Skip to content

Commit cd708c1

Browse files
committed
patch osx build
NOTE: This bumps the minimum supported verision of macOS to 11.1 (BigSur)
1 parent e407d1e commit cd708c1

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/meson.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
macosx-deployment-target:
3737
type: string
3838
required: false
39-
default: "10.15"
39+
default: "11.1"
4040

4141
# Triggers the workflow when called by a top-level workflow
4242
workflow_call:
@@ -63,7 +63,7 @@ on:
6363
macosx-deployment-target:
6464
type: string
6565
required: false
66-
default: "10.15"
66+
default: "11.1"
6767

6868
jobs:
6969
build-linux:
@@ -178,7 +178,7 @@ jobs:
178178
echo "::group::Installing pkg-config"
179179
sudo apt install pkg-config
180180
echo "::group::Installing mac deps"
181-
omp install libsdl2 libsdl2_image onetbb lz4 libpng minizip luajit flac
181+
omp install SDL3 onetbb lz4 libpng minizip luajit flac
182182
echo "OSXCROSS_PKG_CONFIG_PATH=${{env.OSXCROSS_TARGET}}/macports/pkgs/opt/local/libexec/onetbb/lib/pkgconfig" >> $GITHUB_ENV
183183
echo "::endgroup::"
184184
echo "::group::Installing meson"

external/sources/luabind-0.7.1/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ deps = []
1313
cxx = meson.get_compiler('cpp')
1414
if cxx.get_argument_syntax() == 'gcc'
1515
cpp_args = ['-w', '-fpermissive']
16-
luabind_args = cpp_args
16+
luabind_args += cpp_args
1717
elif cxx.get_argument_syntax() == 'msvc'
1818
cpp_args = ['-permissive', '-DBOOST_BIND_GLOBAL_PLACEHOLDERS=1', '-DLUABIND_BUILDING', '-D_ITERATOR_DEBUG_LEVEL=0']
1919
luabind_args = ['-D_HAS_AUTO_PTR_ETC=1', '-DBOOST_BIND_GLOBAL_PLACEHOLDERS=1', '-permissive']

meson.build

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,13 @@ subdir('external')
230230
sdl3_opt = cmake.subproject_options()
231231
sdl3_opt.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': get_option('b_staticpic'), 'BUILD_SHARED_LIBS':false, 'BUILD_STATIC_LIBS': true})
232232
sdl3_opt.append_compile_args('c','-DUSE_XINPUT2_KEYBOARD')
233-
sdl3_proj = cmake.subproject('SDL3-3.2.10', options: sdl3_opt)
234-
sdl3_dep = sdl3_proj.dependency('SDL3-static')
235-
meson.override_dependency('sdl3', sdl3_dep)
233+
if host_machine.system() == 'darwin'
234+
sdl3_dep = dependency('sdl3')
235+
else
236+
sdl3_proj = cmake.subproject('SDL3-3.2.10', options: sdl3_opt)
237+
sdl3_dep = sdl3_proj.dependency('SDL3-static')
238+
meson.override_dependency('sdl3', sdl3_dep)
239+
endif
236240

237241
sdl3_image_proj = subproject('SDL3_image-3.2.4')
238242
sdl3_image_dep = sdl3_image_proj.get_variable('sdl3_image_dep')

0 commit comments

Comments
 (0)