build_win.cmd 369 Bytes
Newer Older
SWHL's avatar
SWHL committed
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
@echo off
set CURDIR=%cd%

rem win32 |x64

call:CompileLib %CURDIR% x64 

cd %CURDIR%
call:CompileLib %CURDIR% win32

cd %CURDIR%


rem  编译函数

:CompileLib
cd %~1
cd openfst
if exist build  ( rd  /q /s build )
mkdir build
cd build
cmake ..  -A  %~2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winlib/%~2
cmake --build .  --config Release -j8
GOTO:EOF