-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzip-libraries.bat
57 lines (45 loc) · 1.25 KB
/
zip-libraries.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
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
setlocal ENABLEEXTENSIONS
setlocal ENABLEDELAYEDEXPANSION
@echo off
echo ""
echo ###################################
echo # zip native libraries
echo ###################################
echo ""
@set exit_code=0
@set error_msg=""
if not defined local_dir (
set error_msg=local_dir not defined
set exit_code=1
goto exit
)
if not defined local_dev_dir (
set error_msg=local_dev_dir not defined
set exit_code=1
goto exit
)
cd %local_dir%
7z a libs.7z libs
:: if in bulk:
:: 7z a include.7z include
:: but to avoid rezipping boost header files and other stable ones:
7z a include.7z include\boost\threadpool.hpp include\boost\threadpool include\sfsl include\wila include\cinterop include\datatypes include\moirai include\swift include\qpp include\qppcore
if not defined sf_out_dir (
set error_msg=ERROR: sf_out_dir not defined
set exit_code=1
goto exit
)
set sf_cpp_out_dir=%sf_out_dir%\cpp_core
if not exist %sf_cpp_out_dir% mkdir %sf_cpp_out_dir%
move include.7z %sf_cpp_out_dir%\
move libs.7z %sf_cpp_out_dir%\
cd %local_dev_dir%
7z a libs_debug.7z libs
move libs_debug.7z %sf_cpp_out_dir%\
:exit
if !exit_code! neq 0 (
echo ERROR: %error_msg%
) else (
echo INFO: zip-libraries completed without error
)
exit /b %exit_code%