summaryrefslogtreecommitdiffstats
path: root/src/script/make_dll_x64_log.bat
diff options
context:
space:
mode:
authorKenji Hosokawa <khosokawa@jp.adit-jv.com>2020-08-24 21:58:42 +0900
committerKenji Hosokawa <khosokawa@jp.adit-jv.com>2020-08-24 21:58:42 +0900
commit2b4ae7fde370bc3316ab30cc38b74d23e785b360 (patch)
tree41b6eb70b3419c2fbd192ed133c5890a985eddec /src/script/make_dll_x64_log.bat
parent6694a4d2952ebd171564932200cac00d6e5792f4 (diff)
Signed-off-by: Kenji Hosokawa <khosokawa@jp.adit-jv.com> Change-Id: I381abb0a6521f5349768a76ef7ceecbce4b2d701
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.