Import("swiften_env", "env")

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

objects = myenv.SwiftenObject([
		"ClientAuthenticator.cpp",
		"PLAINClientAuthenticator.cpp",
		"PLAINMessage.cpp",
		"SCRAMSHA1ClientAuthenticator.cpp",
		"DIGESTMD5Properties.cpp",
		"DIGESTMD5ClientAuthenticator.cpp",
	])
swiften_env.Append(SWIFTEN_OBJECTS = [objects])

env.Append(UNITTEST_SOURCES = [
			File("UnitTest/PLAINMessageTest.cpp"),
			File("UnitTest/PLAINClientAuthenticatorTest.cpp"),
			File("UnitTest/SCRAMSHA1ClientAuthenticatorTest.cpp"),
			File("UnitTest/DIGESTMD5PropertiesTest.cpp"),
			File("UnitTest/DIGESTMD5ClientAuthenticatorTest.cpp"),
	])