mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 07:16:36 +00:00
(Makefile.common) Add in HAVE_C90 checks
This commit is contained in:
parent
bbe210f7eb
commit
da3de73237
@ -212,12 +212,14 @@ OBJ += frontend/frontend.o \
|
||||
OBJ += gfx/image/image.o
|
||||
|
||||
ifneq ($(C89_BUILD), 1)
|
||||
# stb_image is not a C89-compliant API.
|
||||
ifneq ($(C90_BUILD), 1)
|
||||
# stb_image is not a C89/C90-compliant API.
|
||||
ifeq ($(HAVE_IMAGEVIEWER), 1)
|
||||
DEFINES += -DHAVE_IMAGEVIEWER
|
||||
OBJ += cores/image_core.o
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Qt
|
||||
|
||||
@ -246,13 +248,15 @@ ifeq ($(HAVE_STDIN_CMD), 1)
|
||||
endif
|
||||
|
||||
ifneq ($(C89_BUILD), 1)
|
||||
# Python 3.x bindings are not C89-compliant.
|
||||
ifneq ($(C90_BUILD), 1)
|
||||
# Python 3.x bindings are not C89/C90-compliant.
|
||||
ifeq ($(HAVE_PYTHON), 1)
|
||||
DEFINES += $(PYTHON_CFLAGS) -Wno-unused-parameter
|
||||
LIBS += $(PYTHON_LIBS)
|
||||
OBJ += gfx/video_state_python.o
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_EMSCRIPTEN), 1)
|
||||
OBJ += frontend/drivers/platform_emscripten.o \
|
||||
@ -313,13 +317,15 @@ ifeq ($(HAVE_JACK),1)
|
||||
endif
|
||||
|
||||
ifneq ($(C89_BUILD), 1)
|
||||
# PulseAudio is not a C89-compliant API.
|
||||
ifneq ($(C90_BUILD), 1)
|
||||
# PulseAudio is not a C89/C90-compliant API.
|
||||
ifeq ($(HAVE_PULSE), 1)
|
||||
OBJ += audio/drivers/pulse.o
|
||||
LIBS += $(PULSE_LIBS)
|
||||
DEFINES += $(PULSE_CFLAGS)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_OSS_LIB), 1)
|
||||
LIBS += -lossaudio
|
||||
@ -461,13 +467,15 @@ endif
|
||||
#Input
|
||||
|
||||
ifneq ($(C89_BUILD), 1)
|
||||
# Wayland is not a C89-compliant API.
|
||||
ifneq ($(C90_BUILD), 1)
|
||||
# Wayland is not a C89/C90-compliant API.
|
||||
ifeq ($(HAVE_WAYLAND), 1)
|
||||
#OBJ += input/drivers/wayland.o
|
||||
DEFINES += $(WAYLAND_CFLAGS)
|
||||
LIBS += $(WAYLAND_LIBS)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_DINPUT), 1)
|
||||
LIBS += -ldinput8 -ldxguid -lole32
|
||||
@ -506,7 +514,8 @@ ifeq ($(HAVE_UDEV), 1)
|
||||
endif
|
||||
|
||||
ifneq ($(C89_BUILD), 1)
|
||||
# libusb is not a C89-compliant API.
|
||||
ifneq ($(C90_BUILD), 1)
|
||||
# libusb is not a C89/C90-compliant API.
|
||||
ifeq ($(HAVE_LIBUSB), 1)
|
||||
DEFINES += -DHAVE_LIBUSB
|
||||
OBJ += input/drivers_hid/libusb_hid.o
|
||||
@ -515,6 +524,7 @@ ifeq ($(HAVE_LIBUSB), 1)
|
||||
HAVE_HID = 1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_IOHIDMANAGER), 1)
|
||||
DEFINES += -DHAVE_IOHIDMANAGER
|
||||
@ -595,12 +605,14 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||
endif
|
||||
|
||||
ifneq ($(C89_BUILD), 1)
|
||||
# Wayland is not a C89-compliant API.
|
||||
ifneq ($(C90_BUILD), 1)
|
||||
# Wayland is not a C89/C90-compliant API.
|
||||
ifeq ($(HAVE_WAYLAND), 1)
|
||||
ifeq ($(HAVE_EGL), 1)
|
||||
OBJ += gfx/drivers_context/wayland_ctx.o
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_GLES), 1)
|
||||
@ -855,7 +867,8 @@ endif
|
||||
# Record
|
||||
|
||||
ifneq ($(C89_BUILD), 1)
|
||||
# ffmpeg and friends are not C89-compliant APIs.
|
||||
ifneq ($(C90_BUILD), 1)
|
||||
# ffmpeg and friends are not C89/C90-compliant APIs.
|
||||
ifeq ($(HAVE_FFMPEG), 1)
|
||||
OBJ += record/drivers/record_ffmpeg.o \
|
||||
cores/ffmpeg_core.o
|
||||
@ -864,6 +877,7 @@ ifeq ($(HAVE_FFMPEG), 1)
|
||||
DEFINES += -DHAVE_FFMPEG -Iffmpeg
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_COMPRESSION), 1)
|
||||
DEFINES += -DHAVE_COMPRESSION
|
||||
|
Loading…
Reference in New Issue
Block a user