summaryrefslogtreecommitdiffstats
blob: 1797de1932086bfd53a56114e15dd7e88b6935f1 (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
110
111
112
113
114
115
116
117
118
119
120
Import("swiften_env")

myenv = swiften_env.Clone()
myenv.MergeFlags(swiften_env["BOOST_FLAGS"])
myenv.MergeFlags(swiften_env.get("LIBXML_FLAGS", ""))
myenv.MergeFlags(swiften_env.get("EXPAT_FLAGS", ""))

sources = [
        "AttributeMap.cpp",
        "AuthRequestParser.cpp",
        "AuthChallengeParser.cpp",
        "AuthSuccessParser.cpp",
        "AuthResponseParser.cpp",
        "CompressParser.cpp",
        "ElementParser.cpp",
        "IQParser.cpp",
        "MessageParser.cpp",
        "PayloadParser.cpp",
        "StanzaAckParser.cpp",
        "BOSHBodyExtractor.cpp",
        "ComponentHandshakeParser.cpp",
        "PayloadParserFactory.cpp",
        "PayloadParserFactoryCollection.cpp",
        "PayloadParsers/BodyParser.cpp",
        "PayloadParsers/SubjectParser.cpp",
        "PayloadParsers/ThreadParser.cpp",
        "PayloadParsers/CarbonsEnableParser.cpp",
        "PayloadParsers/CarbonsDisableParser.cpp",
        "PayloadParsers/CarbonsPrivateParser.cpp",
        "PayloadParsers/CarbonsReceivedParser.cpp",
        "PayloadParsers/CarbonsSentParser.cpp",
        "PayloadParsers/ChatStateParser.cpp",
        "PayloadParsers/ClientStateParser.cpp",
        "PayloadParsers/CapsInfoParser.cpp",
        "PayloadParsers/DiscoInfoParser.cpp",
        "PayloadParsers/DiscoItemsParser.cpp",
        "PayloadParsers/ErrorParser.cpp",
        "PayloadParsers/FormParser.cpp",
        "PayloadParsers/IBBParser.cpp",
        "PayloadParsers/JingleParser.cpp",
        "PayloadParsers/JingleReasonParser.cpp",
        "PayloadParsers/JingleContentPayloadParser.cpp",
        "PayloadParsers/JingleIBBTransportMethodPayloadParser.cpp",
        "PayloadParsers/JingleS5BTransportMethodPayloadParser.cpp",
        "PayloadParsers/JingleFileTransferDescriptionParser.cpp",
        "PayloadParsers/JingleFileTransferHashParser.cpp",
        "PayloadParsers/JingleFileTransferFileInfoParser.cpp",
        "PayloadParsers/StreamInitiationFileInfoParser.cpp",
        "PayloadParsers/CommandParser.cpp",
        "PayloadParsers/InBandRegistrationPayloadParser.cpp",
        "PayloadParsers/SearchPayloadParser.cpp",
        "PayloadParsers/FullPayloadParserFactoryCollection.cpp",
        "PayloadParsers/PriorityParser.cpp",
        "PayloadParsers/PrivateStorageParser.cpp",
        "PayloadParsers/RawXMLPayloadParser.cpp",
        "PayloadParsers/ResourceBindParser.cpp",
        "PayloadParsers/RosterItemExchangeParser.cpp",
        "PayloadParsers/RosterParser.cpp",
        "PayloadParsers/SecurityLabelParser.cpp",
        "PayloadParsers/SecurityLabelsCatalogParser.cpp",
        "PayloadParsers/SoftwareVersionParser.cpp",
        "PayloadParsers/StorageParser.cpp",
        "PayloadParsers/StatusParser.cpp",
        "PayloadParsers/StatusShowParser.cpp",
        "PayloadParsers/StreamInitiationParser.cpp",
        "PayloadParsers/BytestreamsParser.cpp",
        "PayloadParsers/VCardParser.cpp",
        "PayloadParsers/VCardUpdateParser.cpp",
        "PayloadParsers/DelayParser.cpp",
        "PayloadParsers/MUCUserPayloadParser.cpp",
        "PayloadParsers/MUCAdminPayloadParser.cpp",
        "PayloadParsers/MUCOwnerPayloadParser.cpp",
        "PayloadParsers/MUCDestroyPayloadParser.cpp",
        "PayloadParsers/MUCInvitationPayloadParser.cpp",
        "PayloadParsers/MUCItemParser.cpp",
        "PayloadParsers/NicknameParser.cpp",
        "PayloadParsers/ReplaceParser.cpp",
        "PayloadParsers/LastParser.cpp",
        "PayloadParsers/IdleParser.cpp",
        "PayloadParsers/S5BProxyRequestParser.cpp",
        "PayloadParsers/DeliveryReceiptParser.cpp",
        "PayloadParsers/DeliveryReceiptRequestParser.cpp",
        "PayloadParsers/UserLocationParser.cpp",
        "PayloadParsers/UserTuneParser.cpp",
        "PayloadParsers/WhiteboardParser.cpp",
        "PayloadParsers/PubSubErrorParserFactory.cpp",
        "PayloadParsers/ResultSetParser.cpp",
        "PayloadParsers/ForwardedParser.cpp",
        "PayloadParsers/MAMFinParser.cpp",
        "PayloadParsers/MAMResultParser.cpp",
        "PayloadParsers/MAMQueryParser.cpp",
        "PayloadParsers/IsodeIQDelegationParser.cpp",
        "PlatformXMLParserFactory.cpp",
        "PresenceParser.cpp",
        "SerializingParser.cpp",
        "StanzaParser.cpp",
        "StreamErrorParser.cpp",
        "StreamFeaturesParser.cpp",
        "StreamManagementEnabledParser.cpp",
        "StreamResumeParser.cpp",
        "StreamResumedParser.cpp",
        "Tree/ParserElement.cpp",
        "Tree/NullParserElement.cpp",
        "Tree/TreeReparser.cpp",
        "XMLParser.cpp",
        "XMLParserClient.cpp",
        "XMLParserFactory.cpp",
        "XMPPParser.cpp",
        "XMPPParserClient.cpp",
    ]

if myenv.get("HAVE_EXPAT", 0) :
    myenv.Append(CPPDEFINES = "HAVE_EXPAT")
    sources += ["ExpatParser.cpp"]
if myenv.get("HAVE_LIBXML", 0) :
    myenv.Append(CPPDEFINES = "HAVE_LIBXML")
    sources += ["LibXMLParser.cpp"]

objects = myenv.SwiftenObject(sources)
swiften_env.Append(SWIFTEN_OBJECTS = [objects])