@@ -225,7 +225,7 @@ def build_unix():
225225 extra_link_args = flags .split () + ['-framework' , 'OpenGL' , '-framework' , 'Cocoa' ,
226226 '-framework' , 'IOKit' , '-framework' , 'CoreFoundation' , '-framework' ,
227227 'CoreVideo' ]
228- if RAYLIB_PLATFORM == "SDL" :
228+ if RAYLIB_PLATFORM == "SDL" or RAYLIB_PLATFORM == "SDL_SOFT" :
229229 extra_link_args += ['/usr/local/lib/libSDL3.a' , '-framework' , 'CoreHaptics' , '-framework' , 'ForceFeedback' ,
230230 '-framework' , 'GameController' ]
231231 libraries = []
@@ -300,9 +300,15 @@ def build_windows():
300300 #include "physac.h"
301301 """
302302
303- libraries = ['raylib' , 'gdi32' , 'shell32' , 'user32' , 'OpenGL32' , 'winmm' ]
304- if RAYLIB_PLATFORM == "SDL" :
303+ libraries = ['raylib' , 'gdi32' , 'shell32' , 'user32' , 'winmm' ]
304+ if RAYLIB_PLATFORM == "Desktop" :
305+ libraries += ['OpenGL32' ]
306+ elif RAYLIB_PLATFORM == "SDL" :
307+ libraries += ['OpenGL32' , 'SDL3' ]
308+ elif RAYLIB_PLATFORM == "SDL_SOFT" :
305309 libraries += ['SDL3' ]
310+ else :
311+ raise Exception ("Unknown or not set RAYLIB_PLATFORM" )
306312
307313 print ("libraries: " + str (libraries ))
308314 ffibuilder .set_source ("raylib._raylib_cffi" , ffi_includes ,
0 commit comments