summaryrefslogtreecommitdiffstats
blob: d9915ed4f3bc82935ef1cd78bb6ce4b6d4bb9c05 (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
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",
		"ComponentHandshakeParser.cpp",
		"PayloadParserFactory.cpp",
		"PayloadParserFactoryCollection.cpp",
		"PayloadParsers/BodyParser.cpp",
		"PayloadParsers/SubjectParser.cpp",
		"PayloadParsers/ChatStateParser.cpp",
		"PayloadParsers/CapsInfoParser.cpp",
		"PayloadParsers/DiscoInfoParser.cpp",
		"PayloadParsers/DiscoItemsParser.cpp",
		"PayloadParsers/DelayParserFactory.cpp",
		"PayloadParsers/ErrorParser.cpp",
		"PayloadParsers/FormParser.cpp",
		"PayloadParsers/IBBParser.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/NicknameParser.cpp",
		"PayloadParsers/ReplaceParser.cpp",
		"PlatformXMLParserFactory.cpp",
		"PresenceParser.cpp",
		"SerializingParser.cpp",
		"StanzaParser.cpp",
		"StreamErrorParser.cpp",
		"StreamFeaturesParser.cpp",
		"StreamManagementEnabledParser.cpp",
		"StreamResumeParser.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])