summaryrefslogtreecommitdiffstats
blob: 0c3127c235804f87dcf12401d43bfefbb16d5f92 (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
101
102
103
104
105
106
107
108
109
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.UseFlags(env["SWIFTEN_FLAGS"])
    myenv.UseFlags(env["SWIFTEN_DEP_FLAGS"])
    myenv.StaticLibrary("SwiftControllers", [
            "AdHocController.cpp",
            "AdHocManager.cpp",
            "BlockListController.cpp",
            "Chat/ChatController.cpp",
            "Chat/ChatControllerBase.cpp",
            "Chat/ChatMessageParser.cpp",
            "Chat/ChatsManager.cpp",
            "Chat/MUCController.cpp",
            "Chat/MUCSearchController.cpp",
            "Chat/UserSearchController.cpp",
            "ChatMessageSummarizer.cpp",
            "Contact.cpp",
            "ContactEditController.cpp",
            "ContactProvider.cpp",
            "ContactSuggester.cpp",
            "ContactsFromXMPPRoster.cpp",
            "EventNotifier.cpp",
            "EventWindowController.cpp",
            "FileTransfer/FileTransferController.cpp",
            "FileTransfer/FileTransferOverview.cpp",
            "FileTransfer/FileTransferProgressInfo.cpp",
            "FileTransferListController.cpp",
            "Highlighting/HighlightAction.cpp",
            "Highlighting/HighlightEditorController.cpp",
            "Highlighting/HighlightManager.cpp",
            "Highlighting/Highlighter.cpp",
            "HistoryController.cpp",
            "HistoryViewController.cpp",
            "MainController.cpp",
            "PresenceNotifier.cpp",
            "PreviousStatusStore.cpp",
            "ProfileController.cpp",
            "ProfileSettingsProvider.cpp",
            "Roster/ContactRosterItem.cpp",
            "Roster/GroupRosterItem.cpp",
            "Roster/Roster.cpp",
            "Roster/RosterController.cpp",
            "Roster/RosterGroupExpandinessPersister.cpp",
            "Roster/RosterItem.cpp",
            "Roster/RosterVCardProvider.cpp",
            "Roster/TableRoster.cpp",
            "SettingConstants.cpp",
            "Settings/SettingsProviderHierachy.cpp",
            "Settings/XMLSettingsProvider.cpp",
            "ShowProfileController.cpp",
            "SoundEventController.cpp",
            "StatusCache.cpp",
            "StatusTracker.cpp",
            "StatusUtil.cpp",
            "Storages/AvatarFileStorage.cpp",
            "Storages/CapsFileStorage.cpp",
            "Storages/CertificateFileStorage.cpp",
            "Storages/CertificateMemoryStorage.cpp",
            "Storages/CertificateStorage.cpp",
            "Storages/CertificateStorageFactory.cpp",
            "Storages/FileStorages.cpp",
            "Storages/RosterFileStorage.cpp",
            "Storages/VCardFileStorage.cpp",
            "SystemTrayController.cpp",
            "Translator.cpp",
            "UIEvents/UIEvent.cpp",
            "UIInterfaces/ChatListWindow.cpp",
            "UIInterfaces/HighlightEditorWindow.cpp",
            "UIInterfaces/XMLConsoleWidget.cpp",
            "WhiteboardManager.cpp",
            "XMLConsoleController.cpp",
            "XMPPEvents/EventController.cpp",
            "XMPPURIController.cpp",
        ])

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