aboutsummaryrefslogtreecommitdiffstats
path: root/src/script/make_dll_x64_log.bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/make_dll_x64_log.bat')
-rw-r--r--src/script/make_dll_x64_log.bat50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/script/make_dll_x64_log.bat b/src/script/make_dll_x64_log.bat
new file mode 100644
index 0000000..414936d
--- /dev/null
+++ b/src/script/make_dll_x64_log.bat
@@ -0,0 +1,50 @@
+@echo off
+set ARCH=x64
+set LOG=ON
+set MODE=%1
+
+if "%MODE%" == "" (
+ set MODE=Release
+)
+if not "%MODE%" == "Debug" (
+ if not "%MODE%" == "Release" (
+ echo Usage: %0 Debug or Release
+ goto end
+ )
+)
+set LOGLABEL=
+if "%LOG%" == "ON" (
+ set LOGLABEL=_log
+) else (
+ set LOGLABEL=
+)
+
+set CMAKE_OPTION=
+if "%ARCH%" == "x86" (
+ set CMAKE_OPTION="Visual Studio 15 2017"
+) else if "%ARCH%" == "x64" (
+ set CMAKE_OPTION="Visual Studio 15 2017 Win64"
+)
+
+set DIRNAME=build_%ARCH%%LOGLABEL%
+set OUTNAME=%MODE%_%ARCH%%LOGLABEL%
+
+if exist "%DIRNAME%\" (
+ goto exec_make
+)
+
+mkdir %DIRNAME%
+cd %DIRNAME%
+
+if "%LOG%" == "ON" (
+ cmake -G %CMAKE_OPTION% ..
+) else (
+ cmake -G %CMAKE_OPTION% -DNOLOG=1 ..
+)
+cd ..
+
+:exec_make
+cmake --build %DIRNAME% --config %MODE%
+
+:end
+echo done.