mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 988271 - Fixed D3D SDK detection on mingw. r=mshal,jgilbert
This commit is contained in:
parent
16fddaae2b
commit
7d43e22a79
@ -5840,6 +5840,10 @@ if test "$OS_TARGET" = "WINNT" -a -z "$CROSS_COMPILE"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# On mingw, check if headers are provided by toolchain.
|
||||
if test "$OS_TARGET" = "WINNT" -a -n "$GNU_CC"; then
|
||||
MOZ_CHECK_HEADER(d3d10.h, MOZ_HAS_WINSDK_WITH_D3D=1)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl D3D compiler DLL
|
||||
@ -5914,7 +5918,7 @@ if test -n "$MOZ_ANGLE_RENDERER"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -z "$MOZ_D3DCOMPILER_DLL_PATH" -a -z "$MOZ_D3DCOMPILER_CAB"; then
|
||||
if test -z "$MOZ_D3DCOMPILER_DLL_PATH" -a -z "$MOZ_D3DCOMPILER_CAB" -a -z "$CROSS_COMPILE"; then
|
||||
AC_MSG_ERROR([Couldn't find an acceptable D3D compiler DLL. Either install Windows SDK 8.0+ and reconfigure with --enable-winsdk-directx, install DirectX SDK (June 2010 version or newer), or reconfigure with --disable-webgl.])
|
||||
fi
|
||||
fi
|
||||
|
@ -5,7 +5,7 @@
|
||||
ifdef MOZ_ANGLE_RENDERER
|
||||
|
||||
libs::
|
||||
ifdef MOZ_HAS_WINSDK_WITH_D3D
|
||||
ifdef MOZ_D3DCOMPILER_DLL_PATH
|
||||
cp -fp "$(MOZ_D3DCOMPILER_DLL_PATH)" "$(DIST)/bin"
|
||||
else
|
||||
ifdef MOZ_D3DCOMPILER_CAB
|
||||
|
@ -5,6 +5,8 @@
|
||||
ifndef GNU_CC
|
||||
# Enable unwind semantics for exception handlers in response to warning C4530.
|
||||
OS_CPPFLAGS += -EHsc
|
||||
else
|
||||
OS_CXXFLAGS := $(filter-out -fno-exceptions,$(OS_CXXFLAGS)) -fexceptions
|
||||
endif
|
||||
|
||||
# End build_angle.gypi transcription.
|
||||
@ -15,19 +17,9 @@ ifndef MOZ_HAS_WINSDK_WITH_D3D
|
||||
CXXFLAGS += -I'$(MOZ_DIRECTX_SDK_PATH)/include'
|
||||
endif
|
||||
|
||||
ifdef GNU_CC
|
||||
|
||||
OS_CXXFLAGS := $(filter-out -fno-exceptions,$(OS_CXXFLAGS)) -fexceptions
|
||||
OS_LIBS += -ld3d9 -ldxguid
|
||||
|
||||
else
|
||||
|
||||
ifdef MOZ_HAS_WINSDK_WITH_D3D
|
||||
EXTRA_DSO_LDOPTS = d3d9.lib dxguid.lib delayimp.lib
|
||||
EXTRA_DSO_LDOPTS = $(call EXPAND_LIBNAME,d3d9 dxguid)
|
||||
else
|
||||
EXTRA_DSO_LDOPTS = '$(MOZ_DIRECTX_SDK_PATH)/lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)/d3d9.lib' \
|
||||
'$(MOZ_DIRECTX_SDK_PATH)/lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)/dxguid.lib' \
|
||||
delayimp.lib
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LDOPTS = $(call EXPAND_LIBNAME_PATH,d3d9 dxguid,$(MOZ_DIRECTX_SDK_PATH)/lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX))
|
||||
endif
|
||||
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME,delayimp)
|
||||
|
@ -233,18 +233,10 @@ ifdef MOZ_METRO
|
||||
OS_LIBS += $(call EXPAND_LIBNAME,uiautomationcore runtimeobject)
|
||||
endif
|
||||
ifdef MOZ_GAMEPAD
|
||||
ifndef GNU_CC
|
||||
ifdef MOZ_HAS_WINSDK_WITH_D3D
|
||||
OS_LIBS += dxguid.lib dinput8.lib
|
||||
else
|
||||
DXSDK := $(subst \,/,$(MOZ_DIRECTX_SDK_PATH))/Lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)
|
||||
OS_LIBS += \
|
||||
'$(DXSDK)/dxguid.lib' \
|
||||
'$(DXSDK)/dinput8.lib' \
|
||||
$(NULL)
|
||||
endif
|
||||
else
|
||||
OS_LIBS += $(call EXPAND_LIBNAME,dxguid dinput8)
|
||||
else
|
||||
OS_LIBS += $(call EXPAND_LIBNAME_PATH,dxguid dinput8, $(subst \,/,$(MOZ_DIRECTX_SDK_PATH))/Lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX))
|
||||
endif
|
||||
endif
|
||||
endif # WINNT
|
||||
|
Loading…
Reference in New Issue
Block a user