project :
    requirements
##	<define>DATASTORAGE_SCRAMBLE
##	<define>DATASTORAGE_MEMORY
;

alias platform-src :
	windows/CDataStorage.cpp 
	windows/CStreamHandler.cpp 
	windows/dataStorageDefs.cpp
	: <os>NT ;
	
alias platform-src : 
	posix/CDataStorage.cpp 
	posix/CStreamHandler.cpp 
	posix/dataStorageDefs.cpp
	: <os>LINUX ;
	
alias platform-src : 
	posix/CDataStorage.cpp 
	posix/CStreamHandler.cpp 
	posix/dataStorageDefs.cpp
	: <os>MACOSX ;


lib DataStorage :
	DataScrambler.cpp 
	memory/MemoryDataStorageDefs.cpp
	memory/CMemoryDataStorage.cpp
	platform-src : <link>static ;

alias platform-src-test :
	UnitTests/windows/main.cpp
	: <os>NT ;
	
alias platform-src-test : 
	UnitTests/posix/main.cpp
	: <os>LINUX ;
	
alias platform-src-test : 
	UnitTests/posix/main.cpp
	: <os>MACOSX ;

unit-test UTestDataStorage : 
	platform-src-test 
	.//DataStorage 
	../Logger//Logger 
	..//funambol 
	../common//Common 
	:
	<os>LINUX:<library>..//boost
	<os>MACOSX:<library>..//boost
;
