-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile_shl.bat
More file actions
27 lines (21 loc) · 831 Bytes
/
Copy pathcompile_shl.bat
File metadata and controls
27 lines (21 loc) · 831 Bytes
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
@echo off
setlocal
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath 2^>nul`) do (
set InstallDir=%%i
)
if exist "%InstallDir%\VC\Auxiliary\Build\vcvars64.bat" (
call "%InstallDir%\VC\Auxiliary\Build\vcvars64.bat"
) else (
echo Warning: Could not automatically find vcvars64.bat. Build may fail if run outside Developer Command Prompt.
)
if not exist build_cpp mkdir build_cpp
cd build_cpp
echo Configuring CMake...
cmake ..
echo Building Release Configuration...
cmake --build . --config Release
echo Copying binary...
copy /Y Release\shell_lite_exec.exe ..\shlcpp.exe
copy /Y Release\shell_lite_lib.dll ..\shell_lite_lib.dll
cd ..
echo Build complete!