summaryrefslogtreecommitdiffstats
blob: 0af821608d652b0c39c609db4d2a2e4b8ad89f7e (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
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
TEMPLATE = app
QT += webkit phonon
CONFIG += debug
unix:!mac {
	TARGET = swift
}
else {
	TARGET = Swift
}

DEPENDPATH += . ../.. ../../3rdParty/Boost
INCLUDEPATH += . ../.. ../../3rdParty/Boost
exists(config.pri) {
	LIBS += ../Controllers/Controllers.a ../../Swiften/Swiften.a
	include(config.pri)
}
else {
	# Legacy build type
	HAVE_EXPAT=yes
	USE_BUNDLED_EXPAT=yes
	DEFINES += HAVE_EXPAT

	HAVE_OPENSSL=yes
	DEFINES += HAVE_OPENSSL
	INCLUDEPATH += C:/OpenSSL/include
	LIBS += -LC:/OpenSSL/lib/VC -llibeay32MT -lssleay32MT
	LIBS += -ldnsapi -lws2_32 -lwsock32

	include(Swiften.pri)
}

win32 {
	CONFIG += console
}

# Resources
win32 {
	RC_FILE = ../resources/Windows/Swift.rc
}
mac {
	ICON = ../resources/MacOSX/Swift.icns
}

DEFINES += BOOST_SIGNALS_NAMESPACE=bsignals BOOST_ALL_NO_LIB

HEADERS += \
	QtChatWindow.h \
	QtChatWindowFactory.h \
	QtJoinMUCDialog.h \
	QtLoginWindow.h \
	QtLoginWindowFactory.h \
	QtMainEventLoop.h \
	QtMainWindow.h \
	QtMainWindowFactory.h \
	QtSettingsProvider.h \
	QtStatusWidget.h \
	QtSwift.h \
	QtTreeWidget.h \
	QtTreeWidgetFactory.h \
	QtTreeWidgetItem.h \
	QtChatView.h \
	QtChatTabs.h \
	QtSoundPlayer.h \
	QtSystemTray.h \
	QtTabbable.h \
	ChatSnippet.h \
	MessageSnippet.h \
	SystemMessageSnippet.h

SOURCES += \
	main.cpp \
	QtChatWindow.cpp \
	QtChatWindowFactory.cpp \
	QtJoinMUCDialog.cpp \
	QtLoginWindow.cpp \
	QtLoginWindowFactory.cpp \
	QtMainWindow.cpp \
	QtMainWindowFactory.cpp \
	QtSettingsProvider.cpp \
	QtStatusWidget.cpp \
	QtSwift.cpp \
	QtTreeWidget.cpp \
	QtChatView.cpp	\
	QtChatTabs.cpp \
	QtSoundPlayer.cpp \
	QtSystemTray.cpp \
	QtTabbable.cpp \
	ChatSnippet.cpp \
	MessageSnippet.cpp \
	SystemMessageSnippet.cpp

FORMS += QtJoinMUCDialog.ui

RESOURCES += Swift.qrc DefaultTheme.qrc

win32 {
	DefaultThemeQRC.target = DefaultTheme.qrc
	DefaultThemeQRC.commands = ..\..\tools\ThemeQRC.py ../resources/themes/Default > DefaultTheme.qrc
	QMAKE_EXTRA_TARGETS = DefaultThemeQRC
}