forked from psi-im/psi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadme-cmake.txt
292 lines (160 loc) · 6.84 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# 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:
> -PSI_PLUS=OFF
Build Psi+ client instead of Psi (default OFF)
> -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)
> -DBUNDLED_QCA=ON
to build qca library from https://github.com/psi-im/qca with Psi
Adds: DTLS, Blake2b and other useful for XMPP crypto-stuff
> -DJINGLE_SCTP=ON
enable SCTP over ICE Jingle transport / data channels
adds BUNDLED_USRSCTP option if ON (default ON)
> -DBUNDLED_USRSCTP=ON
to build usrsctp library from official github repository
Compile compatible usrsctp lib when system one is not available or
uncompatible (required for p2p file transfer. Available only if
JINGLE_SCTP flag set to ON)
> -DUSE_ASPELL=OFF
to use Aspell spellchecker (default OFF)
> -DUSE_ENCHANT=ON
to use Enchant spellchecker (default OFF)
> -DUSE_HUNSPELL=ON
to use Hunspell spellchecker (default ON)
> -DUSE_HUNSPELL=ON
to use Aspell spellchecker (default OFF)
> -DCHAT_TYPE = BASIC
to set type of chatlog engine. Possible values: WEBKIT, WEBENGINE, BASIC
default value - BASIC
> -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
> -DPRODUCTION=ON
to build release version of Psi/Psi+
> -DUSE_KEYCHAIN=ON
to enable Qt5Keychain library support
> -DBUILD_PSIMEDIA=ON
build psimedia plugin if sources found in project folder
> -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
> -DINSTALL_PLUGINS_SDK=ON
If this flag ON than with psi will be installed PluginsAPI that needed
to build plugins separately of main program sources
(default OFF)
> -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
> -DDEV_MODE=ON
In OS Windows enables prepare-bin-libs target. Allows to copy needed libraries to run Psi/Psi+.
In Linux sets PSI_DATA directory to current binary direrctory (Usefull to debug plugins)
> -DUSE_XSS=ON
In Linux OS adds XScreensaver support (default ON).
> -DUSE_DBUS = ON
In Linux OS enables DBus support for client management, notifications, tunes (default ON).
> -DUSE_X11=ON
Enable X11 features support (default ON)
> -DLIMIT_X11_USAGE=ON
Disable usage of X11 features which may crash program (default OFF)
## 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
clientswitcherplugin watcherplugin videostatusplugin screenshotplugin jabberdiskplugin
storagenotesplugin extendedoptionsplugin imageplugin extendedmenuplugin birthdayreminderplugin
pepchangenotifyplugin omemoplugin openpgpplugin otrplugin chessplugin conferenceloggerplugin
enummessagesplugin httpuploadplugin imagepreviewplugin
Example:
> -DBUILD_PLUGINS="chessplugin;otrplugin"
The BUILD_PLUGINS variable can also be used as a blacklist.
In this case, all plugins will be compiled, except those indicated.
To do this, just specify the variable as
> -DBUILD_PLUGINS = "-chessplugin;-otrplugin"
and plugins chessplugin and otrplugin will not be assembled
ATTENTION! Mixing white and black lists is not allowed.
> -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
> -DZLIB_ROOT=DIRECTORY
to set Zlib library root directory
> -DHUNSPELL_ROOT=DIRECTORY
to set Hunspell library root directory
> -DENABLE_PORTABLE=ON
to build portable version (not need to rename binary).
Enables prepare-bin-libs target.
> -DNO_DEBUG_OPTIMIZATION=OFF
Disable optimization for debug builds. Windows only (default OFF)
### 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
### macOS specific flags
> -DUSE_SPARKLE=ON
Use Sparkle for macOS builds (default ON)
> -DUSE_GROWL=OFF
Use growl for macOS builds (default OFF)
> -DUSE_MAC_DOC=OFF
Use macOS dock (default OFF)