xref: /haiku/src/tests/servers/app/Jamfile (revision 345d9bb4a26e957e7a3e353d23f1e6df956d5d9a)
1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src tests servers app ;
2338b8dc3SIngo Weinhold
31d219b3aSAxel DörflerUsePrivateHeaders app graphics input interface shared storage ;
41d219b3aSAxel Dörfler
51d219b3aSAxel DörflerSimpleTest app_server_debug :
61d219b3aSAxel Dörfler	app_server_debug.cpp
71d219b3aSAxel Dörfler	: be
81d219b3aSAxel Dörfler;
91d219b3aSAxel Dörfler
10ca9e5772SIngo WeinholdSetSubDirSupportedPlatforms libbe_test ;
11338b8dc3SIngo Weinhold
12ca9e5772SIngo Weinhold# No need to define any of those targets, when not building for libbe_test
13ca9e5772SIngo Weinholdif $(TARGET_PLATFORM) = libbe_test {
14ee5f6d23SStephan Aßmus
157c6bff17SIngo WeinholdUseLibraryHeaders agg png ;
167c6bff17SIngo WeinholdUseBuildFeatureHeaders zlib ;
173ee83016SIngo WeinholdUsePrivateHeaders [ FDirName graphics common ] ;
183111f163SIngo Weinhold
193111f163SIngo Weinhold# headers/build/private/kernel is needed for safemode.h and syscalls.h.
203111f163SIngo Weinhold# headers/private/kernel for the util/* stuff.
213111f163SIngo WeinholdUseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ;
2212776185SAxel DörflerUsePrivateHeaders kernel support ;
232826a379SIngo Weinhold
24338b8dc3SIngo Weinholdlocal appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
252826a379SIngo Weinhold
2612776185SAxel DörflerUseHeaders [ FDirName $(appServerDir) decorator ] ;
272826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing ] ;
288e7d9c72SAdrien DestuguesUseHeaders [ FDirName $(appServerDir) drawing interface html5 ] ;
298e7d9c72SAdrien DestuguesUseHeaders [ FDirName $(appServerDir) drawing interface remote ] ;
302826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter ] ;
312826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ;
322826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ;
3312776185SAxel DörflerUseHeaders [ FDirName $(appServerDir) font ] ;
3412776185SAxel DörflerUseHeaders [ FDirName $(appServerDir) stackandtile ] ;
3529f8805fSIngo WeinholdUseBuildFeatureHeaders freetype ;
3612776185SAxel DörflerUseLibraryHeaders agg lp_solve linprog ;
372826a379SIngo Weinhold
388b794301SAxel Dörfler# This overrides the definitions in private/servers/app/ServerConfig.h
398b794301SAxel Dörflerlocal defines = [ FDefines TEST_MODE=1 ] ;
40bd09e99dSAxel Dörfler	# USE_DIRECT_WINDOW_TEST_MODE=1
418b794301SAxel Dörfler
42264fe59dSStephan AßmusSubDirCcFlags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
43264fe59dSStephan AßmusSubDirC++Flags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
448b794301SAxel Dörfler
453f3c9fddSStephan AßmusSEARCH_SOURCE += $(appServerDir) ;
4612776185SAxel DörflerSEARCH_SOURCE += [ FDirName $(appServerDir) decorator ] ;
473f3c9fddSStephan AßmusSEARCH_SOURCE += [ FDirName $(appServerDir) drawing ] ;
483f3c9fddSStephan AßmusSEARCH_SOURCE += [ FDirName $(appServerDir) drawing Painter ] ;
4912776185SAxel DörflerSEARCH_SOURCE += [ FDirName $(appServerDir) font ] ;
502826a379SIngo Weinhold
51338b8dc3SIngo WeinholdSharedLibrary libhwinterface.so :
52a41a0db6SIngo Weinhold	BBitmapBuffer.cpp
53c2270088SStephan Aßmus	DWindowBuffer.cpp
542826a379SIngo Weinhold	HWInterface.cpp
55c2270088SStephan Aßmus	RGBColor.cpp
563f3c9fddSStephan Aßmus	UpdateQueue.cpp
572826a379SIngo Weinhold
582c69b5b6SAxel Dörfler	: libtestappserver.so
592826a379SIngo Weinhold;
602826a379SIngo Weinhold
612826a379SIngo Weinhold
622826a379SIngo Weinhold# The reason for this is that libhwinterfaceimpl.so needs to link against
632826a379SIngo Weinhold# libbe *first*, but simply adding it to the library list would add it to
642826a379SIngo Weinhold# LINKLIBS which is always appended after NEEDLIBS in the command line.
652826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
662826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so += -lbe ;
672826a379SIngo Weinhold
68338b8dc3SIngo WeinholdSharedLibrary libhwinterfaceimpl.so :
69a41a0db6SIngo Weinhold	ViewHWInterface.cpp
70c2270088SStephan Aßmus	DWindowHWInterface.cpp
7104768381SAxel Dörfler	MultiLocker.cpp
722826a379SIngo Weinhold
73264fe59dSStephan Aßmus#	trace.c
742c69b5b6SAxel Dörfler	: libhwinterface.so
752826a379SIngo Weinhold;
762826a379SIngo Weinhold
778e8869a9SStephan Aßmuslocal decorator_src =
788e8869a9SStephan Aßmus	DecorManager.cpp
798e8869a9SStephan Aßmus	Decorator.cpp
808e8869a9SStephan Aßmus	DefaultDecorator.cpp
818e8869a9SStephan Aßmus	DefaultWindowBehaviour.cpp
828e8869a9SStephan Aßmus	MagneticBorder.cpp
83cb7de03cSStephan Aßmus	TabDecorator.cpp
848e8869a9SStephan Aßmus	WindowBehaviour.cpp
858e8869a9SStephan Aßmus	;
868e8869a9SStephan Aßmus
878e8869a9SStephan Aßmuslocal font_src =
888e8869a9SStephan Aßmus	FontCache.cpp
898e8869a9SStephan Aßmus	FontCacheEntry.cpp
908e8869a9SStephan Aßmus	FontEngine.cpp
918e8869a9SStephan Aßmus	FontFamily.cpp
928e8869a9SStephan Aßmus	FontManager.cpp
938e8869a9SStephan Aßmus	FontStyle.cpp
948e8869a9SStephan Aßmus	;
958e8869a9SStephan Aßmus
96c2dcc4d5SAdrien Destugues# These files are shared between the test_app_server and the libhwintreface, so
97c2dcc4d5SAdrien Destugues# they can talk together.
982c69b5b6SAxel DörflerSharedLibrary libtestappserver.so :
992826a379SIngo Weinhold	Angle.cpp
1009a44fdc9SAxel Dörfler	ClientMemoryAllocator.cpp
1012826a379SIngo Weinhold	CursorData.cpp
102640b841dSAxel Dörfler	CursorManager.cpp
1032826a379SIngo Weinhold	CursorSet.cpp
10412776185SAxel Dörfler	DesktopListener.cpp
10519b850b3SStephan Aßmus	DirectWindowInfo.cpp
106f74afb82SAxel Dörfler	DrawingEngine.cpp
107aca4f50dSAxel Dörfler	DrawState.cpp
1088e8869a9SStephan Aßmus	$(font_src)
10959e13a3fSStephan Aßmus	GlobalSubpixelSettings.cpp
11068e424c8SAdi Oanca	HashTable.cpp
111264fe59dSStephan Aßmus	IntPoint.cpp
112264fe59dSStephan Aßmus	IntRect.cpp
11304768381SAxel Dörfler	MultiLocker.cpp
1140ac013e6SAxel Dörfler	Overlay.cpp
1152826a379SIngo Weinhold	RGBColor.cpp
1162826a379SIngo Weinhold	ServerBitmap.cpp
1172826a379SIngo Weinhold	ServerCursor.cpp
1182826a379SIngo Weinhold	ServerFont.cpp
1192826a379SIngo Weinhold	SystemPalette.cpp
1202826a379SIngo Weinhold
1212826a379SIngo Weinhold	# drawing
1222826a379SIngo Weinhold	PatternHandler.cpp
1232826a379SIngo Weinhold
124264fe59dSStephan Aßmus#	trace.c
125264fe59dSStephan Aßmus
1262826a379SIngo Weinhold	# Misc. Sources
12767f3be42SStephan Aßmus	ProfileMessageSupport.cpp
1280e29f57aSAxel Dörfler	EventDispatcher.cpp
1290e29f57aSAxel Dörfler	EventStream.cpp
130e3d73948SJulian Harnath	TestServerLoopAdapter.cpp
13167f3be42SStephan Aßmus	MessageLooper.cpp
1322826a379SIngo Weinhold
133f74afb82SAxel Dörfler	# Decorator
1348e8869a9SStephan Aßmus	$(decorator_src)
135f74afb82SAxel Dörfler
1362826a379SIngo Weinhold	# Manager Classes
137be05d56cSAxel Dörfler	BitmapManager.cpp
138f7598223SAxel Dörfler	InputManager.cpp
1392826a379SIngo Weinhold	ScreenManager.cpp
1402826a379SIngo Weinhold
1412826a379SIngo Weinhold	AppServer.cpp
1422826a379SIngo Weinhold	Desktop.cpp
1432826a379SIngo Weinhold	ServerApp.cpp
1442826a379SIngo Weinhold	ServerWindow.cpp
1452826a379SIngo Weinhold
146fcd75d63SStephan Aßmus	# DrawingEngine Classes
147d3f08e7fSStephan Aßmus#	AccelerantBuffer.cpp
148d3f08e7fSStephan Aßmus#	AccelerantHWInterface.cpp
1492826a379SIngo Weinhold	BitmapBuffer.cpp
150ae50fc51SIngo Weinhold	BitmapDrawingEngine.cpp
151dd98ed8dSStephan Aßmus	drawing_support.cpp
1522826a379SIngo Weinhold	MallocBuffer.cpp
1532826a379SIngo Weinhold
15435d6e0feSAdrien Destugues	AlphaMask.cpp
155345d9bb4SJulian Harnath	AlphaMaskCache.cpp
1562826a379SIngo Weinhold	BitmapHWInterface.cpp
157ab1bd2fdSJulian Harnath	Canvas.cpp
158c2dcc4d5SAdrien Destugues	DesktopSettings.cpp
159551438b9SJulian Harnath	Layer.cpp
1602826a379SIngo Weinhold	OffscreenServerWindow.cpp
161437b1927SAxel Dörfler	OffscreenWindow.cpp
1628511f6acSJulian Harnath	PictureBoundingBoxPlayer.cpp
16339c9925fSStephan Aßmus	RegionPool.cpp
164437b1927SAxel Dörfler	Screen.cpp
16519b850b3SStephan Aßmus	ScreenConfigurations.cpp
1662826a379SIngo Weinhold	ServerPicture.cpp
167437b1927SAxel Dörfler	View.cpp
168c2dcc4d5SAdrien Destugues	VirtualScreen.cpp
169437b1927SAxel Dörfler	Window.cpp
170e83820edSAxel Dörfler	WindowList.cpp
1712826a379SIngo Weinhold	Workspace.cpp
172437b1927SAxel Dörfler	WorkspacesView.cpp
1732826a379SIngo Weinhold
17435d6e0feSAdrien Destugues	# libraries
175fe868323SAdrien Destugues	: be libpainter.a libagg.a libtextencoding.so libshared.a libstackandtile.a
176fe868323SAdrien Destugues	liblinprog.a
17735d6e0feSAdrien Destugues	[ BuildFeatureAttribute freetype : library ]
17835d6e0feSAdrien Destugues;
17935d6e0feSAdrien Destugues
180ab1bd2fdSJulian HarnathIncludes [ FGristFiles AppServer.cpp BitmapManager.cpp Canvas.cpp
1818e8869a9SStephan Aßmus	ClientMemoryAllocator.cpp Desktop.cpp DesktopSettings.cpp
182ab1bd2fdSJulian Harnath	DrawState.cpp DrawingEngine.cpp ServerApp.cpp
1838e8869a9SStephan Aßmus	ServerBitmap.cpp ServerCursor.cpp ServerFont.cpp ServerPicture.cpp
1848e8869a9SStephan Aßmus	ServerWindow.cpp View.cpp Window.cpp WorkspacesView.cpp
1858e8869a9SStephan Aßmus	$(decorator_src) $(font_src) ]
1868e8869a9SStephan Aßmus	: [ BuildFeatureAttribute freetype : headers ] ;
1878e8869a9SStephan Aßmus
1888e8869a9SStephan Aßmus
18935d6e0feSAdrien DestuguesAddResources test_app_server : test_app_server.rdef ;
19035d6e0feSAdrien Destugues
19135d6e0feSAdrien DestuguesServer test_app_server :
19235d6e0feSAdrien Destugues
19335d6e0feSAdrien Destugues	# drawing
19435d6e0feSAdrien Destugues	drawing_support.cpp
195f74afb82SAxel Dörfler
1962826a379SIngo Weinhold	# libraries
1972826a379SIngo Weinhold	:
1987c6bff17SIngo Weinhold	[ BuildFeatureAttribute zlib : library ] libtestappserver.so be
19935d6e0feSAdrien Destugues	libhwinterface.so libhwinterfaceimpl.so libtextencoding.so
2008e7d9c72SAdrien Destugues	[ BuildFeatureAttribute freetype : library ]
201220d0402SOliver Tappe	[ TargetLibstdc++ ] [ TargetLibsupc++ ]
2022826a379SIngo Weinhold;
2032826a379SIngo Weinhold
204338b8dc3SIngo Weinhold# install in the test dir
205338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
2062c69b5b6SAxel Dörfler	: libtestappserver.so libbe_test.so
2078e7d9c72SAdrien Destugues	libhwinterface.so libhwinterfaceimpl.so libtextencoding.so
208338b8dc3SIngo Weinhold	: tests!apps ;
209338b8dc3SIngo Weinhold
2102c69b5b6SAxel DörflerHaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : test_app_server
211338b8dc3SIngo Weinhold	: tests!apps ;
212338b8dc3SIngo Weinhold
213ca9e5772SIngo Weinhold} # if $(TARGET_PLATFORM) = libbe_test
2142826a379SIngo Weinhold
2159813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app archived_view ;
216ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app async_drawing ;
2177362a1d7SAxel DörflerSubInclude HAIKU_TOP src tests servers app avoid_focus ;
2187c265858SStephan AßmusSubInclude HAIKU_TOP src tests servers app benchmark ;
2199813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
220338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
221c3b8f9f6SAxel DörflerSubInclude HAIKU_TOP src tests servers app code_to_name ;
22270ebf47bSAdrien DestuguesSubInclude HAIKU_TOP src tests servers app clip_to_picture ;
223ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app constrain_clipping_region ;
224338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app copy_bits ;
225da07353dSAxel DörflerSubInclude HAIKU_TOP src tests servers app cursor_test ;
22694dc3ed6SAxel DörflerSubInclude HAIKU_TOP src tests servers app desktop_window ;
22711dbc914SStephan AßmusSubInclude HAIKU_TOP src tests servers app draw_after_children ;
22877e5acc0SStephan AßmusSubInclude HAIKU_TOP src tests servers app draw_string_offsets ;
2293c905d81SMichael LotzSubInclude HAIKU_TOP src tests servers app drawing_debugger ;
2303d75dfbbSMichael LotzSubInclude HAIKU_TOP src tests servers app drawing_modes ;
231fc505229SAxel DörflerSubInclude HAIKU_TOP src tests servers app event_mask ;
2325ae0bbaaSStephan AßmusSubInclude HAIKU_TOP src tests servers app find_view ;
233dd98ed8dSStephan AßmusSubInclude HAIKU_TOP src tests servers app following ;
234cb7de03cSStephan AßmusSubInclude HAIKU_TOP src tests servers app font_spacing ;
2351f3acfaaSAdrien DestuguesSubInclude HAIKU_TOP src tests servers app gradients ;
236ea5c7202SAxel DörflerSubInclude HAIKU_TOP src tests servers app hide_and_show ;
23709f147fbSJérôme DuvalSubInclude HAIKU_TOP src tests servers app idle_test ;
238d36ae78cSStephan AßmusSubInclude HAIKU_TOP src tests servers app lagging_get_mouse ;
2393ecd9d8fSAxel DörflerSubInclude HAIKU_TOP src tests servers app lock_focus ;
240a7e6679bSAxel DörflerSubInclude HAIKU_TOP src tests servers app look_and_feel ;
2414c751e51SAxel DörflerSubInclude HAIKU_TOP src tests servers app menu_crash ;
242ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app no_pointer_history ;
243338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app painter ;
244338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app playground ;
245f9ba150bSMichael LotzSubInclude HAIKU_TOP src tests servers app pulsed_drawing ;
246ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app regularapps ;
247338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app resize_limits ;
248ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app scrollbar ;
249338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app scrolling ;
25076ab3f88SStephan AßmusSubInclude HAIKU_TOP src tests servers app shape_test ;
251*afc5d438SAdrien DestuguesSubInclude HAIKU_TOP src tests servers app stacktile ;
252d36ae78cSStephan AßmusSubInclude HAIKU_TOP src tests servers app statusbar ;
253e7df4a48SStephan AßmusSubInclude HAIKU_TOP src tests servers app stress_test ;
254338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app textview ;
25508e109e5SStephan AßmusSubInclude HAIKU_TOP src tests servers app transformation ;
256ad53a0d9SJulian HarnathSubInclude HAIKU_TOP src tests servers app unit_tests ;
257e0d7d87fSAxel DörflerSubInclude HAIKU_TOP src tests servers app view_state ;
25861e7172dSStephan AßmusSubInclude HAIKU_TOP src tests servers app view_transit ;
259ecef598eSStefano CeccheriniSubInclude HAIKU_TOP src tests servers app window_creation ;
260e527d809SAxel DörflerSubInclude HAIKU_TOP src tests servers app window_invalidation ;
261f0b714c8SAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_activated ;
2621214ef1bSAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_switcher ;
263