SDL2 build for macOS under brew
This commit is contained in:
@@ -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)'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user