This commit is contained in:
Nishi 2026-09-22 10:27:37 +09:00
commit dfa8c22f1a
3 changed files with 5 additions and 22 deletions

View file

@ -44,8 +44,8 @@ sub cobjs {
sub d3d9_detect_block {
return <<'EOF';
!if [where d3d9.h >nul 2>nul]
!if [for /f "delims=" %P in ('where d3d9.h 2^>nul') do @echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%~dpP">d3d9flags.mk]
!if [where /R "%DXSDK_DIR%\\Include" d3d9.h >nul 2>nul]
!if [for /f "delims=" %P in ('where /R "%DXSDK_DIR%\\Include" d3d9.h 2^>nul') do @echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%~dpP">d3d9flags.mk]
!endif
!else
!if [echo DX9_FLAGS =>d3d9flags.mk]
@ -131,9 +131,6 @@ sub generate {
$prefobj = "file ";
$needlibs = "${lib}clib3r.lib";
$c_dllout = "option implib=src${dir}Mw.lib";
$d3d9_flags = "\$(DX9_FLAGS)";
$d3d9_block = d3d9_detect_block();
}
open(OUT, ">", $output);