Skip to content

Commit e152526

Browse files
committed
macos: static link SDL2, lower minimim OS requirements
1 parent e3ce3f8 commit e152526

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: premake5.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ filter "system:macosx"
6767
platforms {"x64"}
6868
defaultplatform "x64"
6969
xcodebuildsettings {
70-
['ALWAYS_SEARCH_USER_PATHS'] = {'YES'}
70+
["ALWAYS_SEARCH_USER_PATHS"] = "YES",
71+
["MACOSX_DEPLOYMENT_TARGET"] = "10.12",
7172
}
7273

7374
filter "system:android"
@@ -268,7 +269,7 @@ project "avocado"
268269
"imgui",
269270
}
270271
buildoptions {getOutput("sdl2-config --cflags")}
271-
linkoptions {getOutput("sdl2-config --libs")}
272+
linkoptions {getOutput("sdl2-config --static-libs")}
272273

273274
filter {"system:android"}
274275
files {

0 commit comments

Comments
 (0)