-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
44 lines (35 loc) · 1.2 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
setlocal enableextensions enabledelayedexpansion
rem // ------------------------------------------------------------------------
rem // Some boilerplate to set up the VC++ build environment.
rem // ------------------------------------------------------------------------
path %ProgramFiles(x86)%\Microsoft Visual Studio\Installer;%PATH%
set VCVARS64_BAT=""
for /f "usebackq tokens=*" %%i in (`vswhere -version 17 -find "**\vcvars64.bat"`) do (
set VCVARS64_BAT="%%i"
)
if %VCVARS64_BAT%=="" (
echo Visual Studio 2022 installation not found.
exit /B 1
)
call %VCVARS64_BAT%
rem // ------------------------------------------------------------------------
pushd "%~dp0"
set BIN_PATH=bin
if not exist "%BIN_PATH%" (
mkdir "%BIN_PATH%"
)
call :build_proxy_dll d3d11.dll
call :build_proxy_dll dxgi.dll
call :build_proxy_dll dinput8.dll
call :build_dll proxydll.h.template SekiroFpsUnlockDll.dll
exit /B
rem // ------------------------------------------------------------------------
:build_proxy_dll
call :build_dll proxydll\%1.h %1
exit /B
:build_dll
cp src\%1 src\proxydll.h
msbuild SekiroFpsUnlockDll.sln -m -p:Configuration=Release
cp x64\Release\SekiroFpsUnlockDll.dll %BIN_PATH%\%2
exit /B 0