Fix OSX's include path for sdl-config
This commit is contained in:
parent
e3e2c53345
commit
a5b6a43cec
8
Makefile
8
Makefile
|
@ -635,7 +635,13 @@ else ifeq ($(SDL1_USED),1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(SDL1_USED)$(SDL2_USED),00)
|
ifneq ($(SDL1_USED)$(SDL2_USED),00)
|
||||||
BACKEND_CFLAGS += `$(SDLCONFIG) --cflags`
|
ifeq ($(OSX_BUILD),1)
|
||||||
|
# on OSX at least the homebrew version of sdl-config gives include path as `.../include/SDL2` instead of `.../include`
|
||||||
|
OSX_PREFIX := $(shell $(SDLCONFIG) --prefix)
|
||||||
|
BACKEND_CFLAGS += -I$(OSX_PREFIX)/include $(shell $(SDLCONFIG) --cflags)
|
||||||
|
else
|
||||||
|
BACKEND_CFLAGS += `$(SDLCONFIG) --cflags`
|
||||||
|
endif
|
||||||
ifeq ($(WINDOWS_BUILD),1)
|
ifeq ($(WINDOWS_BUILD),1)
|
||||||
BACKEND_LDFLAGS += `$(SDLCONFIG) --static-libs` -lsetupapi -luser32 -limm32 -lole32 -loleaut32 -lshell32 -lwinmm -lversion
|
BACKEND_LDFLAGS += `$(SDLCONFIG) --static-libs` -lsetupapi -luser32 -limm32 -lole32 -loleaut32 -lshell32 -lwinmm -lversion
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue