SubDir OBOS_TOP src servers app server ;

Depends app_server : install_fonts ;

AddResources app_server : app_server.rdef ;

UseLibraryHeaders png zlib ;
UsePrivateHeaders app interface [ FDirName servers app ] ;
UseFreeTypeHeaders ;

SharedLibrary appserver :
	areafunc.c
	bget.c
	BitmapManager.cpp
	ColorSet.cpp
	Decorator.cpp
	DisplayDriver.cpp
	FontFamily.cpp
	LayerData.cpp
	PatternHandler.cpp
	RectUtils.cpp
	RGBColor.cpp
	ServerBitmap.cpp
	ServerCursor.cpp
	ServerFont.cpp
	FontServer.cpp
	SysCursor.cpp
	SystemPalette.cpp
	TokenHandler.cpp
;

LinkSharedOSLibs libappserver.so : root be 							  
	<boot!home!config!lib>libopenbeos.so
	<boot!home!config!lib>libfreetype.so ;

Server app_server :
	# Misc. Sources
	Angle.cpp
	CursorData.cpp
	FMWList.cpp
	PicturePlayer.cpp
	PNGDump.cpp
	SessionStreamReader.cpp
	Utils.cpp

	# Manager Classes
	AppServer.cpp
	BitmapDriver.cpp
	CursorManager.cpp
	Desktop.cpp
	ServerApp.cpp
	ServerWindow.cpp

	# Display Classes
	# Clipper.cpp
	AccelerantDriver.cpp

	# We'll just remove this from the build for a little while...
	#ScreenDriver.cpp
	ViewDriver.cpp
	DefaultDecorator.cpp
	Layer.cpp
	RootLayer.cpp
	ServerPicture.cpp
	ServerScreen.cpp
	WinBorder.cpp
	Workspace.cpp

;

LINKFLAGS on app_server ?= $(LINKFLAGS) ;
LINKFLAGS on app_server += -lbe ;

LinkSharedOSLibs app_server : root game translation libz.so libpng.so libappserver.so
							   <boot!home!config!lib>libopenbeos.so 
							   <boot!home!config!lib>libfreetype.so ;

SubInclude OBOS_TOP src servers app server fonts ;
