-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJamfile
56 lines (45 loc) · 1.19 KB
/
Jamfile
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
#
# Boost.build by default enables /Zc:wchar_t option in tools/msvc.jam
# this flag tells the compiler to treat wchar_t as a native built in type.
# however Qt by default uses wchar_t- which means that wchar_t is
# unsigned short. If these two flags do not match then linker errors
# will ensue when calling functions such as QString::fromStdWString
# A simple fix is to enable wchar_t- in msvc.jam
import os ;
import path ;
import qt ;
path-constant QT_PATH : "../qt-4.8.6" ;
using qt : $(QT_PATH) ;
project pime :
requirements
<include>$(QT_PATH)/include/QtCore
<include>$(QT_PATH)/include
<threading>multi
<toolset>gcc:<cflags>-std=c++11
<toolset>clang:<clfags>-std=c++11
;
exe pinyin-translator :
main.cpp
mainwindow.h
mainwindow.cpp
mainwindow.ui
dictionary.cpp
freqtable.cpp
resource.qrc
dlgword.ui
dlgword.h
dlgdictionary.ui
dlgdictionary.h
dlgdictionary.cpp
/qt//QtCore
/qt//QtGui
qtmain_win.cpp
: <user-interface>gui
;
#build-project invaders ;
install dist_d : pinyin-translator translator.sh :
<variant>release:<location>dist
;
install dist_d/data : data/cedict.dic data/frequency.txt :
<variant>release:<location>dist/data
;