forked from psi-im/psi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme-cmake.txt
218 lines (115 loc) · 5.45 KB
/
Readme-cmake.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# Howto build Psi/Psi+ using cmake utility
## Prepare sources:
> $ mkdir build && cd build
> $ cmake FLAGS ..
instead of FLAGS can be the flags from "Usefull CMAKE FLAGS" section
## Build sources:
> $ cmake --build . --target all --
or
> $ make
## Install Psi/Psi+:
> $ cmake --build . --target install --
or
> $ make install
## To run Psi/Psi+ without installation:
> $ cmake --build . --target prepare-bin
or
> $ make prepare-bin
> $ cd psi && ./psi && cd .. #For Psi
> $ cd psi && ./psi-plus && cd .. #For Psi+
## Usefull CMAKE FLAGS:
> -DPSI_LIBDIR=${path}
Path to Psi/Psi+ libraries directory. Path to the directory
where Psi/Psi+ will search plugins.
> -DPSI_DATADIR=${path}
Path to Psi/Psi+ data directory. Path to the directory
where Psi/Psi+ will search datafiles (iconpacks, themes etc)
> -DCMAKE_INSTALL_PREFIX=prefix
to set installation prefix
> -DBUNDLED_IRIS=ON
to build iris library bundled (default ON)
> -DUSE_ENCHANT=ON
to use Enchant spellchecker (default OFF)
> -DUSE_HUNSPELL=ON
to use Hunspell spellchecker (default ON)
> -DSEPARATE_QJDNS=ON
to build qjdns library as separate library (default OFF)
> -DENABLE_WEBKIT = ON
enable support of QtWebKit or QtWebengine. If the flag is enabled and both libraries qtwebkit and qtwebengine are installed the qtwebengine script automatically selects qtwebengine. (default is ON)
> -DUSE_WEBKIT = OFF
use QtWebKit instead of QtWebengine with the ENABLE_WEBKIT flag turned on (default is OFF)
> -DUSE_WEBENGINE = OFF
use QtWebengine instead of QtWebKit. This flag is set automatically if the USE_WEBKIT flag is disabled and the Qt5Webengine>=5.6.0 library is installed. (default is OFF)
> -DPSI_VERSION=${version}
to set Psi/Psi+ version manually ( Example for Psi+: 1.0.40 (2017-06-05, Psi:a7d2d7b8, Psi+:055e945, webkit) ). Script sets this flag automatically from "version" file if it exists in sources directory
> -DCMAKE_BUILD_TYPE=Release (default: Release)
to set build type. Possible values: DEBUG, RELEASE, RELWITHDEBINFO, MINSIZEREL
> -USE_CCACHE=ON (default: ON)
to enable ccache utility support
> -DUSE_MXE=ON (default: OFF)
Enables MXE (M cross environment) support. Disables USE_CCACHE. Script can automatically detect MXE.
> -DVERBOSE_PROGRAM_NAME=ON
Verbose output program name. (default OFF)
Experimental flag. Exmaple of output name: psi-plus-webkit-sql
> -DPRODUCTION=ON
to build release version of Psi/Psi+
> -DUSE_KEYCHAIN=ON
to enable Qt5Keychain library support
> -DONLY_BINARY=OFF
If ON - only binary file will be installed
> -DINSTALL_EXTRA_FILES=ON
If OFF - sounds, certificates, iconsets, themes and cilent_icons.txt file will not be installed
> -DENABLE_PLUGINS=ON
to build psi plugins (default OFF)
> -DONLY_PLUGINS=ON
to build only psi plugins (default OFF). On enabling this flag ENABLE_PLUGINS flag turns on automatically
## Work with plugins:
### Next flags are working only if ENABLE_PLUGINS or ONLY_PLUGINS are enabled
> -DBUILD_PLUGINS=${plugins}
set list of plugins to build. To build all plugins: -DBUILD_PLUGINS="ALL" or do not set this flag
- possible values for ${plugins}:
historykeeperplugin stopspamplugin juickplugin translateplugin gomokugameplugin attentionplugin
cleanerplugin autoreplyplugin contentdownloaderplugin qipxstatusesplugin skinsplugin icqdieplugin
clientswitcherplugin captchaformsplugin watcherplugin videostatusplugin screenshotplugin
jabberdiskplugin storagenotesplugin extendedoptionsplugin imageplugin extendedmenuplugin
birthdayreminderplugin gmailserviceplugin gnupgplugin pepchangenotifyplugin otrplugin
chessplugin conferenceloggerplugin gnome3supportplugin enummessagesplugin httpuploadplugin
imagepreviewplugin
Example:
> -DBUILD_PLUGINS="chessplugin;otrplugin;gnome3supportplugin"
> -DPLUGINS_ROOT_DIR=${path}
Path to the include directory to build plugins outside of Psi/Psi+
sources (path to the plugins.cmake file)
> -DPLUGINS_PATH=${path}
to install plugins into ${path}. To install into default suffix:
-DPLUGINS_PATH=lib/psi-plus/plugins or do not set this flag
For example to install plugins into ~/.local/share/psi+/plugins:
> -DCMAKE_INSTALL_PREFIX=$HOME/.local -DPLUGINS_PATH=share/psi+/plugins
For example to install plugins into /usr/share/psi-plus/plugins:
> -DCMAKE_INSTALL_PREFIX=/usr -DPLUGINS_PATH=share/psi-plus/plugins
## Win32 or MXE Section:
> -DQCA_DIR=DIRECTORY
to set Qca library root directory
> -DIDN_ROOT=DIRECTORY
to set Idn library root directory
> -DZLIB_ROOT=DIRECTORY
to set Zlib library root directory
> -DHUNSPELL_ROOT=DIRECTORY
to set Hunspell library root directory
> -DDEV_MODE=ON
to enable prepare-bin-libs target. Allows to copy needed libraries to run Psi/Psi+.
> -DENABLE_PORTABLE=ON
to build portable version (not need to rename binary). Enables prepare-bin-libs target
### To build OTRPLUGIN in OS WINDOWS you need to set additional variables
> -DLIBGCRYPT_ROOT=%LIBGCRYPT_ROOT%
path to LIBGCRYPT library root directory
> -DLIBGPGERROR_ROOT=%LIBGPGERROR_ROOT%
path to LIBGPG-ERROR library root directory
> -DLIBOTR_ROOT=%LIBOTR_ROOT%
path to LIBOTR library root directory
> -DLIBTIDY_ROOT=%LIBTIDY_ROOT%
path to LIBTIDY library root directory
For example:
> -DLIBGCRYPT_ROOT=C:\libgcrypt -DLIBGPGERROR_ROOT=C:\libgpg-error -DLIBOTR_ROOT=C:\libotr -DLIBTIDY_ROOT=C:\libtidy
### If you using Psi+ SDK you need to set SDK_PATH:
> -DSDK_PATH=path