summaryrefslogtreecommitdiffstats
blob: 449a39b5dbe34b16adb7b7a71c6584b6c5cf76d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Import("swiften_env")

myenv = swiften_env.Clone()
myenv.MergeFlags(swiften_env["OPENSSL_FLAGS"])

sources = [
		"HighLayer.cpp",
		"LowLayer.cpp",
		"PlatformTLSLayerFactory.cpp",
		"StreamStack.cpp",
		"TLSLayerFactory.cpp",
		"WhitespacePingLayer.cpp",
		"XMPPLayer.cpp",
	]

if myenv.get("HAVE_OPENSSL", 0) :
	myenv.Append(CPPDEFINES = "HAVE_OPENSSL")
	sources += ["OpenSSLLayer.cpp"]

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