mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
changed DIRECTINPUT & DIRECT3D handling, so they can be overridden by environment variables.
This commit is contained in:
parent
c9f47d831f
commit
cbe9983e42
@ -35,10 +35,10 @@
|
|||||||
# UNICODE = 1
|
# UNICODE = 1
|
||||||
|
|
||||||
# set this to the minimum Direct3D version to support (8 or 9)
|
# set this to the minimum Direct3D version to support (8 or 9)
|
||||||
DIRECT3D = 8
|
# DIRECT3D = 9
|
||||||
|
|
||||||
# set this to the minimum DirectInput version to support (7 or 8)
|
# set this to the minimum DirectInput version to support (7 or 8)
|
||||||
DIRECTINPUT = 7
|
# DIRECTINPUT = 8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -203,12 +203,12 @@ endif
|
|||||||
# add the windows libraries
|
# add the windows libraries
|
||||||
LIBS += -luser32 -lgdi32 -lddraw -ldsound -ldxguid -lwinmm -ladvapi32 -lcomctl32 -lshlwapi
|
LIBS += -luser32 -lgdi32 -lddraw -ldsound -ldxguid -lwinmm -ladvapi32 -lcomctl32 -lshlwapi
|
||||||
|
|
||||||
ifeq ($(DIRECTINPUT),7)
|
ifeq ($(DIRECTINPUT),8)
|
||||||
LIBS += -ldinput
|
|
||||||
CFLAGS += -DDIRECTINPUT_VERSION=0x0700
|
|
||||||
else
|
|
||||||
LIBS += -ldinput8
|
LIBS += -ldinput8
|
||||||
CFLAGS += -DDIRECTINPUT_VERSION=0x0800
|
CFLAGS += -DDIRECTINPUT_VERSION=0x0800
|
||||||
|
else
|
||||||
|
LIBS += -ldinput
|
||||||
|
CFLAGS += -DDIRECTINPUT_VERSION=0x0700
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef PTR64
|
ifdef PTR64
|
||||||
@ -262,10 +262,10 @@ OSDOBJS = \
|
|||||||
$(WINOBJ)/window.o \
|
$(WINOBJ)/window.o \
|
||||||
$(WINOBJ)/winmain.o
|
$(WINOBJ)/winmain.o
|
||||||
|
|
||||||
ifeq ($(DIRECT3D),8)
|
ifeq ($(DIRECT3D),9)
|
||||||
OSDOBJS += $(WINOBJ)/d3d8intf.o
|
|
||||||
else
|
|
||||||
CFLAGS += -DDIRECT3D_VERSION=0x0900
|
CFLAGS += -DDIRECT3D_VERSION=0x0900
|
||||||
|
else
|
||||||
|
OSDOBJS += $(WINOBJ)/d3d8intf.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# extra dependencies
|
# extra dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user