summaryrefslogtreecommitdiffstats
blob: 3bb4759e2ff660645013fe81b0dbe30214c18064 (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
Import("env")
import Version

################################################################################
# Flags
################################################################################

if env["SCONS_STAGE"] == "flags" :
	env["SWIFT_CONTROLLERS_FLAGS"] = {
			"LIBPATH": [Dir(".")],
			"LIBS": ["SwiftControllers"]
		}


################################################################################
# Build
################################################################################

if env["SCONS_STAGE"] == "build" :
	myenv = env.Clone()
	myenv.BuildVersion("BuildVersion.h", project = "swift")
	myenv.MergeFlags(env["BOOST_FLAGS"])
	myenv.StaticLibrary("SwiftControllers", [
			"Chat/ChatController.cpp",
			"Chat/ChatControllerBase.cpp",
			"Chat/ChatsManager.cpp",
			"Chat/MUCController.cpp",
			"Chat/MUCSearchController.cpp",
			"Chat/UserSearchController.cpp",
			"DiscoServiceWalker.cpp",
			"MainController.cpp",
			"ProfileController.cpp",
			"ContactEditController.cpp",
			"ViewHistoryController.cpp",
			"Roster/RosterController.cpp",
			"Roster/RosterGroupExpandinessPersister.cpp",
			"Roster/ContactRosterItem.cpp",
			"Roster/GroupRosterItem.cpp",
			"Roster/RosterItem.cpp",
			"Roster/Roster.cpp",
			"Roster/TableRoster.cpp",
			"EventWindowController.cpp",
			"SoundEventController.cpp",
			"SystemTrayController.cpp",
			"XMLConsoleController.cpp",
			"StatusTracker.cpp",
			"PresenceNotifier.cpp",
			"EventNotifier.cpp",
			"AdHocManager.cpp",
			"XMPPEvents/EventController.cpp",
			"UIEvents/UIEvent.cpp",
			"UIInterfaces/XMLConsoleWidget.cpp",
			"UIInterfaces/ChatListWindow.cpp",
			"PreviousStatusStore.cpp",
			"Storages/CertificateStorageFactory.cpp",
			"Storages/CertificateStorage.cpp",
			"Storages/CertificateFileStorage.cpp",
			"Storages/CertificateMemoryStorage.cpp",
			"Storages/AvatarFileStorage.cpp",
			"Storages/FileStorages.cpp",
			"Storages/RosterFileStorage.cpp",
			"Storages/CapsFileStorage.cpp",
			"Storages/VCardFileStorage.cpp",
			"StatusUtil.cpp",
			"Translator.cpp",
			"XMPPURIController.cpp",
			"ChatMessageSummarizer.cpp",
		])

	env.Append(UNITTEST_SOURCES = [
			File("Roster/UnitTest/RosterControllerTest.cpp"),
			File("Roster/UnitTest/RosterTest.cpp"),
			File("UnitTest/PreviousStatusStoreTest.cpp"),
			File("UnitTest/PresenceNotifierTest.cpp"),
			File("Chat/UnitTest/ChatsManagerTest.cpp"),
			File("Chat/UnitTest/MUCControllerTest.cpp"),
			File("UnitTest/MockChatWindow.cpp"),
			File("UnitTest/ChatMessageSummarizerTest.cpp"),
		])