summaryrefslogtreecommitdiffstats
blob: b9f31ea9417966e923f372087ae3b8ebaee77ca2 (plain)
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
Prerequisites
------------
- GCC
- Python
- OpenSSL (and development package)
- Qt Open Source Edition (and development package. Optional; not needed for Swiften)

Building
--------
- Swift uses Qt5 for the UI and on Unix-like platforms it is automatically detected
  using pkg-config.
  - The dependencies can be installed by running ./BuildTools/InstallSwiftDependencies.sh
- Run 
		./scons
- To build only a subdir, add the path as a target to scons. E.g., for Swift:
		./scons Swift

Running tests
-------------
If you want to run the unit tests (only interesting if you're doing development work)
- Run
		./scons test=unit
	for running the unit tests.

Installing
----------
- To install swift in /usr/local, run
		./scons SWIFT_INSTALLDIR=/usr/local /usr/local

Swiften-only
------------
- To compile just Swiften, add Swiften to the end of the scons command
		./scons Swiften
- To compile and install only Swiften, use SWIFTEN_INSTALLDIR
		./scons SWIFTEN_INSTALLDIR=/usr/local /usr/local