-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostBuild.bat
More file actions
61 lines (52 loc) · 1.55 KB
/
postBuild.bat
File metadata and controls
61 lines (52 loc) · 1.55 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
SETLOCAL
set UNZIP_CMD=%~dp0..\tools\zip\unzip.bat
@echo =======================
@echo postBuild
@echo =======================
: ---- arguments ---- :
: "Win32" or "x64"
set PLATFORM=%1
@echo PLATFORM=%PLATFORM%
: "Debug" or "Release"
set CONFIGURATION=%2
@echo CONFIGURATION=%CONFIGURATION%
set DEST_DIR=%PLATFORM%\%CONFIGURATION%
set OUT_DIR=%~dp0..\%DEST_DIR%
: ---- bregonig.dll ---- :
set BREGONIG_DLL=bregonig.dll
set BRON_ZIP=..\installer\externals\bregonig\bron420.zip
set BRON_TMP=..\installer\temp\bron
if "%platform%" == "x64" (
set BRON_DIR=%~dp0%BRON_TMP%\x64
) else (
set BRON_DIR=%~dp0%BRON_TMP%
)
if not exist "%BRON_DIR%\%BREGONIG_DLL%" (
call "%UNZIP_CMD%" "%~dp0%BRON_ZIP%" "%~dp0%BRON_TMP%" > NUL || (echo error && exit /b 1)
)
if not exist "%OUT_DIR%\%BREGONIG_DLL%" (
@echo %BRON_ZIP% -^> %DEST_DIR%\%BREGONIG_DLL%
copy /Y /B "%BRON_DIR%\%BREGONIG_DLL%" "%OUT_DIR%\" > NUL
)
: ---- ctags.exe ---- :
set CTAGS_EXE=ctags.exe
if "%PLATFORM%" == "Win32" (
set CTAGS_PREFIX=x86
) else if "%PLATFORM%" == "x64" (
set CTAGS_PREFIX=x64
) else (
echo unknown PLATFORM %PLATFORM%
exit /b 1
)
set CTAGS_ZIP=..\installer\externals\universal-ctags\ctags-2020-01-12_feffe43a-%CTAGS_PREFIX%.zip
set CTAGS_TMP=..\installer\temp\ctags
set CTAGS_DIR=%~dp0%CTAGS_TMP%
if not exist "%CTAGS_DIR%\%CTAGS_EXE%" (
call "%UNZIP_CMD%" "%~dp0%CTAGS_ZIP%" "%CTAGS_DIR%" > NUL || (echo error && exit /b 1)
)
if not exist "%OUT_DIR%\%CTAGS_EXE%" (
@echo %CTAGS_ZIP% -^> %DEST_DIR%\%CTAGS_EXE%
copy /Y /B "%CTAGS_DIR%\%CTAGS_EXE%" "%OUT_DIR%\" > NUL
)
ENDLOCAL