-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeBuild.bat
32 lines (24 loc) · 1.11 KB
/
CMakeBuild.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
@echo off
RMDIR dist /S /Q
cmake -S . --preset=pre-ae --check-stamp-file "build\pre-ae\CMakeFiles\generate.stamp"
if %ERRORLEVEL% NEQ 0 exit 1
cmake --build build/pre-ae --config Release
if %ERRORLEVEL% NEQ 0 exit 1
cmake -S . --preset=post-ae --check-stamp-file "build\post-ae\CMakeFiles\generate.stamp"
if %ERRORLEVEL% NEQ 0 exit 1
cmake --build build/post-ae --config Release
if %ERRORLEVEL% NEQ 0 exit 1
cmake -S . --preset=pre-ae-w --check-stamp-file "build\pre-ae-w\CMakeFiles\generate.stamp"
if %ERRORLEVEL% NEQ 0 exit 1
cmake --build build/pre-ae-w --config Release
if %ERRORLEVEL% NEQ 0 exit 1
cmake -S . --preset=post-ae-w --check-stamp-file "build\post-ae-w\CMakeFiles\generate.stamp"
if %ERRORLEVEL% NEQ 0 exit 1
cmake --build build/post-ae-w --config Release
if %ERRORLEVEL% NEQ 0 exit 1
xcopy "build\pre-ae\release\*.dll" "dist\pre-ae\SKSE\Plugins\" /I /Y
xcopy "build\post-ae\release\*.dll" "dist\post-ae\SKSE\Plugins\" /I /Y
xcopy "build\pre-ae-w\release\*.dll" "dist\pre-ae-w\SKSE\Plugins\" /I /Y
xcopy "build\post-ae-w\release\*.dll" "dist\post-ae-w\SKSE\Plugins\" /I /Y
xcopy "package" "dist" /I /Y /E
pause