-
Notifications
You must be signed in to change notification settings - Fork 47
/
build-default.bat
75 lines (67 loc) · 2.12 KB
/
build-default.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@ECHO OFF
chcp 65001
cls
@SETLOCAL
IF "%1"=="" (
echo input VS_VER none, use v142
set VS_VER="v142"
)^
ELSE (
echo input VS_VER:%1
set VS_VER="%1"
)
mkdir win-BIN-CPU-x64
pushd win-BIN-CPU-x64
cmake -T "%VS_VER%,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="BIN" ^
-DOCR_BUILD_CRT="True" -DOCR_ONNX="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-BIN-CPU-Win32
pushd win-BIN-CPU-Win32
cmake -T "%VS_VER%,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="BIN" ^
-DOCR_BUILD_CRT="True" -DOCR_ONNX="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-JNI-CPU-x64
pushd win-JNI-CPU-x64
cmake -T "%VS_VER%,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="JNI" ^
-DOCR_BUILD_CRT="True" -DOCR_ONNX="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-JNI-CPU-Win32
pushd win-JNI-CPU-Win32
cmake -T "%VS_VER%,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="JNI" ^
-DOCR_BUILD_CRT="True" -DOCR_ONNX="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-CLIB-CPU-x64
pushd win-CLIB-CPU-x64
cmake -T "%VS_VER%,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="CLIB" ^
-DOCR_BUILD_CRT="True" -DOCR_ONNX="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-CLIB-CPU-Win32
pushd win-CLIB-CPU-Win32
cmake -T "%VS_VER%,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="CLIB" ^
-DOCR_BUILD_CRT="True" -DOCR_ONNX="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
@ENDLOCAL