-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
95 lines (68 loc) · 3.13 KB
/
INSTALL
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
Basic Installation
==================
CMake is designed for the build process to be done in a separate
directory. The simplest way to compile this plugin is:
1. `cd' into the extracted directory.
3. `cmake -B build -S . -DCMAKE_INSTALL_PREFIX=/usr' to create a location
for the sources and then configure the sources. There are more options
you can pass to cmake, see below for details.
4. `cmake --build build' to compile the plugin. This will also rerun
cmake for you if any CMakeLists.txt files have changed.
5. `cmake --install build' to install the plugin. This has to be done
with root privileges if installing to system directories, but the
rest of the build should be done with regular user privileges.
For packaging you can optionally install the plugin into a temporary
directory by setting the DESTDIR environment variable. For example,
`DESTDIR="alternate/directory" cmake --install build' will prepend
'alternate/directory' before all installation names.
Uninstallation
==============
1. `cmake --build build --target uninstall' to remove the installed
files. Note that if you provided a DESTDIR variable when installing,
be sure to provide the same variable. The DESTDIR variable must be
an absolute path when uninstalling.
Debug Builds
============
You should create different directories for each type of build:
1. `cmake -B debug -S . -DCMAKE_BUILD_TYPE=Debug' to configure the sources.
2. `cmake --build debug' to compile the plugin.
More CMake Options
==================
-DCMAKE_BUILD_TYPE=<type>
Choose the type of build. Possible values are:
'None' 'Debug' 'Release' 'RelWithDebInfo' 'MinSizeRel'
-DCMAKE_INSTALL_PREFIX=<path>
Choose the base location where the plugin is installed
(defaults to /usr/local).
-DCMAKE_INSTALL_BINDIR=<path>
Choose where binaries are installed
(defaults to $CMAKE_INSTALL_PREFIX/bin).
-DCMAKE_INSTALL_LIBDIR=<path>
Choose where libraries are installed
(defaults to $CMAKE_INSTALL_PREFIX/lib).
-DCMAKE_INSTALL_DATADIR=<path>
Choose where the data files are installed
(defaults to $CMAKE_INSTALL_PREFIX/share).
-DCMAKE_INSTALL_LOCALEDIR=<path>
Choose where the localization files are installed
(defaults to $CMAKE_INSTALL_DATADIR/locale).
-DCMAKE_INSTALL_MANDIR=<path>
Choose where manual pages are installed
(defaults to $CMAKE_INSTALL_DATADIR/man).
-DENABLE_ACCOUNTSSERVICE=[ON]
Check for the AccountsService library.
-DENABLE_VISIBILITY=[ON]
Make compiler hide local symbols in plugin.
-DENABLE_AS_NEEDED=[ON]
Pass -Wl,--as-needed to the linker to reduce symbols in plugin.
-DENABLE_LINKER_OPTIMIZED_HASH_TABLES=[ON]
Pass -Wl,-O1 to the linker to optimize hash tables in plugin.
-DENABLE_LINK_TIME_OPTIMIZATION=[ON]
Reduce size by optimizing entire plugin at link time.
(on by default in 'Release', 'RelWithDebInfo', 'MinSizeRel').
-DENABLE_STRIP=[ON]
Reduce size by removing symbols.
(on by default in 'Release', 'MinSizeRel').
-DENABLE_DEVELOPER_MODE=[OFF]
Enable strict checks which are not needed by users of the plugin
but are useful for development.