1SubDir HAIKU_TOP src servers app ;
2
3UseLibraryHeaders agg ;
4UsePrivateHeaders app graphics input interface kernel shared storage support ;
5
6UseHeaders [ FDirName $(HAIKU_TOP) src servers app drawing ] ;
7UseHeaders [ FDirName $(HAIKU_TOP) src servers app drawing Painter ] ;
8UseHeaders [ FDirName $(HAIKU_TOP) src servers app drawing Painter drawing_modes ] ;
9UseHeaders [ FDirName $(HAIKU_TOP) src servers app drawing interface local ] ;
10UseHeaders [ FDirName $(HAIKU_TOP) src servers app drawing interface remote ] ;
11UseHeaders [ FDirName $(HAIKU_TOP) src servers app stackandtile ] ;
12
13UseHeaders [ FDirName $(HAIKU_TOP) src servers app decorator ] ;
14local decorator_src =
15	DecorManager.cpp
16	Decorator.cpp
17	DefaultDecorator.cpp
18	DefaultWindowBehaviour.cpp
19	MagneticBorder.cpp
20	TabDecorator.cpp
21	WindowBehaviour.cpp
22	;
23
24UseHeaders [ FDirName $(HAIKU_TOP) src servers app font ] ;
25local font_src =
26	FontCache.cpp
27	FontCacheEntry.cpp
28	FontEngine.cpp
29	FontFamily.cpp
30	FontManager.cpp
31	FontStyle.cpp
32	GlobalFontManager.cpp
33	AppFontManager.cpp
34	;
35
36UseBuildFeatureHeaders freetype ;
37if [ FIsBuildFeatureEnabled fontconfig ] {
38	SubDirC++Flags -DFONTCONFIG_ENABLED ;
39	UseBuildFeatureHeaders fontconfig ;
40	Includes [ FGristFiles AppServer.cpp BitmapManager.cpp Canvas.cpp
41	ClientMemoryAllocator.cpp Desktop.cpp DesktopSettings.cpp
42	DrawState.cpp DrawingEngine.cpp Layer.cpp PictureBoundingBoxPlayer.cpp
43	ServerApp.cpp ServerBitmap.cpp ServerCursor.cpp ServerFont.cpp
44	ServerPicture.cpp ServerWindow.cpp View.cpp Window.cpp WorkspacesView.cpp
45	$(decorator_src) $(font_src) ]
46	: [ BuildFeatureAttribute freetype : headers ]
47	  [ BuildFeatureAttribute fontconfig : headers ] ;
48} else {
49	Includes [ FGristFiles AppServer.cpp BitmapManager.cpp Canvas.cpp
50	ClientMemoryAllocator.cpp Desktop.cpp DesktopSettings.cpp
51	DrawState.cpp DrawingEngine.cpp Layer.cpp PictureBoundingBoxPlayer.cpp
52	ServerApp.cpp ServerBitmap.cpp ServerCursor.cpp ServerFont.cpp
53	ServerPicture.cpp ServerWindow.cpp View.cpp Window.cpp WorkspacesView.cpp
54	$(decorator_src) $(font_src) ]
55	: [ BuildFeatureAttribute freetype : headers ] ;
56}
57
58Server app_server :
59	Angle.cpp
60	AppServer.cpp
61	#BitfieldRegion.cpp
62	BitmapManager.cpp
63	Canvas.cpp
64	ClientMemoryAllocator.cpp
65	CursorData.cpp
66	CursorManager.cpp
67	CursorSet.cpp
68	DelayedMessage.cpp
69	Desktop.cpp
70	DesktopListener.cpp
71	DesktopSettings.cpp
72	DirectWindowInfo.cpp
73	DrawState.cpp
74	EventDispatcher.cpp
75	EventStream.cpp
76	InputManager.cpp
77	IntPoint.cpp
78	IntRect.cpp
79	Layer.cpp
80	MessageLooper.cpp
81	MultiLocker.cpp
82	OffscreenServerWindow.cpp
83	OffscreenWindow.cpp
84	PictureBoundingBoxPlayer.cpp
85	ProfileMessageSupport.cpp
86	RGBColor.cpp
87	RegionPool.cpp
88	Screen.cpp
89	ScreenConfigurations.cpp
90	ScreenManager.cpp
91	ServerApp.cpp
92	ServerBitmap.cpp
93	ServerCursor.cpp
94	ServerFont.cpp
95	ServerPicture.cpp
96	ServerWindow.cpp
97	SystemPalette.cpp
98	View.cpp
99	VirtualScreen.cpp
100	Window.cpp
101	WindowList.cpp
102	Workspace.cpp
103	WorkspacesView.cpp
104
105	$(decorator_src)
106	$(font_src)
107
108	# libraries
109	:
110	libtranslation.so libbe.so libbnetapi.so
111	libaslocal.a libasremote.a
112	libasdrawing.a libpainter.a libagg.a
113	[ BuildFeatureAttribute freetype : library ]
114	[ BuildFeatureAttribute fontconfig : library ]
115	libstackandtile.a liblinprog.a libtextencoding.so shared
116	[ TargetLibstdc++ ]
117
118	: app_server.rdef
119;
120
121SEARCH on [ FGristFiles $(decorator_src) ] = [ FDirName $(HAIKU_TOP) src servers app decorator ] ;
122SEARCH on [ FGristFiles $(font_src) ] = [ FDirName $(HAIKU_TOP) src servers app font ] ;
123
124
125SubInclude HAIKU_TOP src servers app drawing ;
126SubInclude HAIKU_TOP src servers app stackandtile ;
127