Import("env")

env["SWIFT_CONTROLLERS_FLAGS"] = {
		"LIBPATH": [Dir(".")],
		"LIBS": ["SwiftControllers"]
	}

myenv = env.Clone()
myenv.MergeFlags(env["BOOST_FLAGS"])
myenv.StaticLibrary("SwiftControllers", [
		"ChatController.cpp",
		"ChatControllerBase.cpp",
		"ChatsManager.cpp",
		"MainController.cpp",
		"NickResolver.cpp",
		"RosterController.cpp",
		"XMPPRosterController.cpp",
		"MUCController.cpp",
		"EventController.cpp",
		"SoundEventController.cpp",
		"SystemTrayController.cpp",
		"XMLConsoleController.cpp",
		"UIEvents/UIEvent.cpp",
		"UIInterfaces/XMLConsoleWidget.cpp",
		"PreviousStatusStore.cpp",
	])

env.Append(UNITTEST_SOURCES = [
		File("UnitTest/NickResolverTest.cpp"),
		File("UnitTest/RosterControllerTest.cpp"),
		File("UnitTest/XMPPRosterControllerTest.cpp"),
		File("UnitTest/PreviousStatusStoreTest.cpp"),
		File("UnitTest/ChatsManagerTest.cpp"),
		File("UnitTest/MockChatWindow.cpp"),
	])