SDL2 build for macOS under brew

This commit is contained in:
Michael Martin
2019-09-08 23:15:12 -07:00
parent 91b2235753
commit f973106448
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -81,6 +81,12 @@ case "$HOST_SYSTEM" in
WINSCW|GCCE|ARMV5) WINSCW|GCCE|ARMV5)
LIB_SDL2_DETECT="false" LIB_SDL2_DETECT="false"
;; ;;
Darwin)
LIB_SDL2_DETECT="have_command sdl2-config"
LIB_SDL2_CFLAGS='$(sdl2-config --cflags)'
LIB_SDL2_LDFLAGS='$(sdl2-config --static-libs)'
LIB_SDL2_VERSION='$(sdl2-config --version)'
;;
*) *)
LIB_SDL2_DETECT="have_command sdl2-config" LIB_SDL2_DETECT="have_command sdl2-config"
LIB_SDL2_CFLAGS='$(sdl2-config --cflags)' LIB_SDL2_CFLAGS='$(sdl2-config --cflags)'
+4 -1
View File
@@ -10,6 +10,9 @@
#import "port.h" #import "port.h"
#import SDL_INCLUDE(SDL.h) #import SDL_INCLUDE(SDL.h)
#if SDL_MAJOR_VERSION == 1
#import "SDLMain.h" #import "SDLMain.h"
#import <sys/param.h> #import <sys/param.h>
/* for PATH_MAX */ /* for PATH_MAX */
@@ -282,4 +285,4 @@ main (int argc, char **argv)
return 0; return 0;
} }
#endif