cdrom support is optional

This commit is contained in:
Brad Parker 2019-06-30 01:21:59 -04:00
parent 31a59a5d7f
commit dba888aa00

View File

@ -627,6 +627,12 @@ else
BPP_DEFINES = -DUSE_15BPP_RENDERING
endif
ifeq ($(HAVE_CDROM), 1)
LIBRETRO_CFLAGS += -DHAVE_CDROM
ifeq ($(CDROM_DEBUG), 1)
LIBRETRO_CFLAGS += -DCDROM_DEBUG
endif
endif
LIBRETRO_CFLAGS += $(INCFLAGS) $(INCFLAGS_PLATFORM)
LIBRETRO_CFLAGS += $(BPP_DEFINES) \
@ -635,9 +641,7 @@ LIBRETRO_CFLAGS += $(BPP_DEFINES) \
-D__LIBRETRO__ \
-DM68K_OVERCLOCK_SHIFT=20 \
-DZ80_OVERCLOCK_SHIFT=20 \
-DHAVE_YM3438_CORE \
-DHAVE_CDROM \
-DCDROM_DEBUG
-DHAVE_YM3438_CORE
ifneq (,$(findstring msvc,$(platform)))
LIBRETRO_CFLAGS += -DINLINE="static _inline"