forked from rime/weasel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
85 lines (57 loc) · 1.75 KB
/
INSTALL.txt
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
76
77
78
79
80
81
82
83
84
85
= How to Rime with Weasel =
0. Preparation
Assume we already have a default installation of Visual Studio 2010.
Install dev tools: git, cmake
Download third-party libraries: boost(==1.47.0)
NOTE: higher versions of boost are not garranteed to work,
due to the breaking changes in boost::inter_process.
1. Checkout source code
{{{
git clone git@github.com:lotem/weasel.git
cd weasel
git submodule update --init
}}}
2. Setup environment variables
Edit librime\env.bat.template according to your setup, save it as librime\env.bat .
3. Start VC command line tools from librime\shell.bat .
4. Build Boost
Make sure BOOST_ROOT is set to \path\to\boost_1_47_0 in librime\env.bat .
In the command line, issue the following command from weasel directory:
{{{
cd librime
vcbuild.bat boost
}}}
5. Build other third-party libraries
including: glog, kyotocabinet, opencc, yaml-cpp
{{{
vcbuild.bat thirdparty
}}}
6. Build librime
{{{
vcbuild.bat
}}}
With some luck, you now have a copy of the built library in vcbuild\lib\Release:
* shared library - rime.dll / rime.lib
* static library - librime.lib - if built with `vcbuild.bat static`
7. Play with Rime command line tools
{{{
copy /Y thirdparty\bin\*.dll vcbuild\bin\
copy /Y vcbuild\lib\Release\rime.dll vcbuild\bin\
cd vcbuild\bin
echo zhongzhouyunshurufa | Release\rime_console.exe > output.txt
}}}
8. Build weasel
Edit weasel\weasel.props.template, save it to weasel\weasel.props .
{{{
cd \path\to\weasel
copy /Y librime\thirdparty\lib\*.lib lib\
copy /Y librime\thirdparty\bin\*.dll output\
copy /Y librime\vcbuild\lib\Release\rime.dll output\
build.bat all
}}}
Voila.
9. Install and try it live
{{{
cd output
install.bat
}}}