File: BuildingOnWindows.txt

package info (click to toggle)
swift-im 2.0~beta1%2Bdev47-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,508 kB
  • sloc: cpp: 79,149; python: 1,397; xml: 546; sh: 150; ansic: 54; makefile: 40
file content (37 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download
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
Prerequisites
------------
- Microsoft Visual C++ Express Edition
- Python
- OpenSSL
  * Download and extract the Windows binary version of OpenSSL from
    http://www.slproweb.com/products/Win32OpenSSL.html
- Qt Open Source Edition (optional; not needed for Swiften)

Building Qt for Microsoft Visual C++
------------------------------------
- From the 'Visual C++' 'Programs' group, launch the Visual C++ command prompt
- Go to the dir where you installed Qt
- Configure Qt:
    configure
- Build Qt:
    nmake

Building Swift
--------------
- From the 'Visual C++' 'Programs' group, launch the Visual C++ command prompt
- Go to the Swift source dir
- Create a file 'config.py' with the following contents, reflecting your local
  setup:
		openssl = "path\to\openssl"
		qt = "path\to\qt"
- Run 'scons'
- To build only a subdir, add the path as a target to scons. E.g., for Swift:
		scons Swift

Running tests
-------------
- Run
		scons test=unit
	for running the unit tests, or
		scons test=all
	for running all tests.