SubDir TOP application ;

SubDirSysHdrs [ FDirName $(TOP) ] ;
SubDirSysHdrs [ FDirName $(TOP) libs ] ;
SubDirSysHdrs [ FDirName $(TOP) libs libjabber ] ;
SubDirSysHdrs [ FDirName $(TOP) libs librunview ] ;
SubDirSysHdrs [ FDirName $(TOP) libs libinterface ] ;
SubDirSysHdrs [ FDirName $(OPENSSL_INCLUDE_DIR) ] ;

SEARCH_SOURCE += [ FDirName $(TOP) application preferences ] ;
SEARCH_SOURCE += [ FDirName $(TOP) application views ] ;

# SVN revision
local svnRevisionFile = [ FGristFiles svn_revision ] ;
MakeLocate $(svnRevisionFile) : $(LOCATE_TARGET) ;
CreateSVNRevisionFile $(svnRevisionFile) ;

Application Caya :
	AboutWindow.cpp
	Account.cpp
	AccountManager.cpp
	CayaProtocolAddOn.cpp
	CayaUtils.cpp
	ChatWindow.cpp
	ContactLinker.cpp
	EditingFilter.cpp
	ImageCache.cpp
	Main.cpp
	MainWindow.cpp
	Notifier.cpp
	ProtocolLooper.cpp
	ProtocolManager.cpp
	ProtocolSettings.cpp
	Server.cpp
	TheApp.cpp
	WindowsManager.cpp
	svn_revision.cpp

	# preferences
	AccountDialog.cpp
	AccountListItem.cpp
	AccountView.cpp
	PreferencesDialog.cpp
	PreferencesAccounts.cpp
	PreferencesBehavior.cpp

	# views
	ContactPopUp.cpp
	NicknameTextControl.cpp
	RosterItem.cpp
	RosterListView.cpp
	StatusMenuItem.cpp
	StatusView.cpp
	CayaRenderView.cpp
	: be $(TARGET_LIBSTDC++) translation expat
	  libinterface.a librunview.a libsupport.a
	: Caya.rdef
;

Depends Caya : libinterface.a ;
Depends Caya : librunview.a ;
Depends Caya : libsupport.a ;

InstallBin $(CAYA_DIRECTORY) : Caya ;