Fixes to make Darwin work (#7)

`extra-libraries: sdl2` needs to be `extra-libraries: SDL2`, and we need a dependency on `OpenGL`.
This commit is contained in:
Tim Pierson 2021-01-25 16:42:31 +00:00 committed by GitHub
parent f632e99500
commit 76f9a316b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,8 @@ library
if os(windows) if os(windows)
extra-libraries: extra-libraries:
opengl32 opengl32
if os(darwin)
frameworks: OpenGL
else else
extra-libraries: extra-libraries:
GL GL
@ -70,7 +72,7 @@ library
if os(windows) || os(darwin) if os(windows) || os(darwin)
extra-libraries: extra-libraries:
sdl2 SDL2
else else
pkgconfig-depends: pkgconfig-depends:
sdl2 sdl2