xref: /haiku/src/tests/servers/app/Jamfile (revision 3111f163b56265dc44c154c31e9d0f08204ffd85)
1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src tests servers app ;
2338b8dc3SIngo Weinhold
3ca9e5772SIngo WeinholdSetSubDirSupportedPlatforms libbe_test ;
4338b8dc3SIngo Weinhold
5ca9e5772SIngo Weinhold# No need to define any of those targets, when not building for libbe_test
6ca9e5772SIngo Weinholdif $(TARGET_PLATFORM) = libbe_test {
7ee5f6d23SStephan Aßmus
82826a379SIngo WeinholdUseLibraryHeaders agg png zlib ;
9*3111f163SIngo WeinholdUsePrivateHeaders app graphics input interface shared storage ;
10*3111f163SIngo Weinhold
11*3111f163SIngo Weinhold# headers/build/private/kernel is needed for safemode.h and syscalls.h.
12*3111f163SIngo Weinhold# headers/private/kernel for the util/* stuff.
13*3111f163SIngo WeinholdUseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ;
14*3111f163SIngo WeinholdUsePrivateHeaders kernel ;
152826a379SIngo Weinhold
16338b8dc3SIngo Weinholdlocal appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
172826a379SIngo Weinhold
182826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing ] ;
192826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter ] ;
202826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ;
212826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ;
222826a379SIngo WeinholdUseFreeTypeHeaders ;
232826a379SIngo Weinhold
248b794301SAxel Dörfler# This overrides the definitions in private/servers/app/ServerConfig.h
258b794301SAxel Dörflerlocal defines = [ FDefines TEST_MODE=1 ] ;
26bd09e99dSAxel Dörfler	# USE_DIRECT_WINDOW_TEST_MODE=1
278b794301SAxel Dörfler
28264fe59dSStephan AßmusSubDirCcFlags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
29264fe59dSStephan AßmusSubDirC++Flags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
308b794301SAxel Dörfler
312826a379SIngo WeinholdSEARCH_SOURCE += $(appServerDir) [ FDirName $(appServerDir) drawing ] ;
322826a379SIngo Weinhold
33338b8dc3SIngo WeinholdSharedLibrary libhwinterface.so :
34a41a0db6SIngo Weinhold	BBitmapBuffer.cpp
35c2270088SStephan Aßmus	DWindowBuffer.cpp
362826a379SIngo Weinhold	HWInterface.cpp
37c2270088SStephan Aßmus	RGBColor.cpp
382826a379SIngo Weinhold
39ca9e5772SIngo Weinhold	: libhaikuappserver.so be
402826a379SIngo Weinhold;
412826a379SIngo Weinhold
422826a379SIngo Weinhold
432826a379SIngo Weinhold# The reason for this is that libhwinterfaceimpl.so needs to link against
442826a379SIngo Weinhold# libbe *first*, but simply adding it to the library list would add it to
452826a379SIngo Weinhold# LINKLIBS which is always appended after NEEDLIBS in the command line.
462826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
472826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so += -lbe ;
482826a379SIngo Weinhold
49338b8dc3SIngo WeinholdSharedLibrary libhwinterfaceimpl.so :
50a41a0db6SIngo Weinhold	ViewHWInterface.cpp
51c2270088SStephan Aßmus	DWindowHWInterface.cpp
5204768381SAxel Dörfler	MultiLocker.cpp
532826a379SIngo Weinhold
54264fe59dSStephan Aßmus#	trace.c
5562b965a6SStephan Aßmus	: be libhwinterface.so
562826a379SIngo Weinhold;
572826a379SIngo Weinhold
58338b8dc3SIngo WeinholdSharedLibrary libhaikuappserver.so :
592826a379SIngo Weinhold	Angle.cpp
609a44fdc9SAxel Dörfler	ClientMemoryAllocator.cpp
612826a379SIngo Weinhold	CursorData.cpp
62640b841dSAxel Dörfler	CursorManager.cpp
632826a379SIngo Weinhold	CursorSet.cpp
64e0d7d87fSAxel Dörfler	DesktopSettings.cpp
65aca4f50dSAxel Dörfler	DrawState.cpp
662826a379SIngo Weinhold	FontFamily.cpp
6704768381SAxel Dörfler	FontManager.cpp
6868e424c8SAdi Oanca	HashTable.cpp
69264fe59dSStephan Aßmus	IntPoint.cpp
70264fe59dSStephan Aßmus	IntRect.cpp
7104768381SAxel Dörfler	MultiLocker.cpp
720ac013e6SAxel Dörfler	Overlay.cpp
732826a379SIngo Weinhold	RGBColor.cpp
742826a379SIngo Weinhold	ServerBitmap.cpp
752826a379SIngo Weinhold	ServerCursor.cpp
762826a379SIngo Weinhold	ServerFont.cpp
772826a379SIngo Weinhold	SystemPalette.cpp
782826a379SIngo Weinhold
792826a379SIngo Weinhold	# drawing
802826a379SIngo Weinhold	PatternHandler.cpp
812826a379SIngo Weinhold
82264fe59dSStephan Aßmus#	trace.c
83264fe59dSStephan Aßmus
842826a379SIngo Weinhold	# libraries
8504768381SAxel Dörfler	: be libtextencoding.so libfreetype.so
862826a379SIngo Weinhold;
872826a379SIngo Weinhold
882826a379SIngo WeinholdAddResources haiku_app_server : app_server.rdef ;
892826a379SIngo Weinhold
902826a379SIngo WeinholdServer haiku_app_server :
912826a379SIngo Weinhold	# Misc. Sources
92e7869c4cSStephan Aßmus	Decorator.cpp
932826a379SIngo Weinhold	DebugInfoManager.cpp
942826a379SIngo Weinhold	PNGDump.cpp
952826a379SIngo Weinhold	RAMLinkMsgReader.cpp
962826a379SIngo Weinhold	MessageLooper.cpp
970e29f57aSAxel Dörfler	EventDispatcher.cpp
980e29f57aSAxel Dörfler	EventStream.cpp
992826a379SIngo Weinhold
1002826a379SIngo Weinhold	# Manager Classes
101be05d56cSAxel Dörfler	BitmapManager.cpp
1022826a379SIngo Weinhold	DecorManager.cpp
103f7598223SAxel Dörfler	InputManager.cpp
1042826a379SIngo Weinhold	ScreenManager.cpp
1052826a379SIngo Weinhold
1062826a379SIngo Weinhold	AppServer.cpp
1072826a379SIngo Weinhold	Desktop.cpp
1082826a379SIngo Weinhold
1092826a379SIngo Weinhold	ServerApp.cpp
1102826a379SIngo Weinhold	ServerWindow.cpp
1112826a379SIngo Weinhold
112fcd75d63SStephan Aßmus	# DrawingEngine Classes
1132826a379SIngo Weinhold	AccelerantBuffer.cpp
1142826a379SIngo Weinhold	AccelerantHWInterface.cpp
1152826a379SIngo Weinhold	BitmapBuffer.cpp
116dd98ed8dSStephan Aßmus	drawing_support.cpp
117fcd75d63SStephan Aßmus	DrawingEngine.cpp
1182826a379SIngo Weinhold	MallocBuffer.cpp
1192826a379SIngo Weinhold	UpdateQueue.cpp
1202826a379SIngo Weinhold
1212826a379SIngo Weinhold	VirtualScreen.cpp
1222826a379SIngo Weinhold	BitmapHWInterface.cpp
1232826a379SIngo Weinhold	DefaultDecorator.cpp
1242826a379SIngo Weinhold	OffscreenServerWindow.cpp
125be2f498eSAxel Dörfler	OffscreenWindowLayer.cpp
12639c9925fSStephan Aßmus	RegionPool.cpp
1272826a379SIngo Weinhold	ServerPicture.cpp
1282826a379SIngo Weinhold	ServerScreen.cpp
129e83820edSAxel Dörfler	ViewLayer.cpp
130be2f498eSAxel Dörfler	WindowLayer.cpp
131e83820edSAxel Dörfler	WindowList.cpp
1322826a379SIngo Weinhold	Workspace.cpp
1332826a379SIngo Weinhold	WorkspacesLayer.cpp
1342826a379SIngo Weinhold
1352826a379SIngo Weinhold	# libraries
1362826a379SIngo Weinhold	:
137338b8dc3SIngo Weinhold	z libpng.so libhaikuappserver.so
13862b965a6SStephan Aßmus	libpainter.a be
1392826a379SIngo Weinhold	libhwinterface.so libhwinterfaceimpl.so
1402826a379SIngo Weinhold	libagg.a libfreetype.so libtextencoding.so
1412826a379SIngo Weinhold;
1422826a379SIngo Weinhold
143338b8dc3SIngo Weinhold# install in the test dir
144338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
145040ce757SStephan Aßmus	: libpng.so libhaikuappserver.so libbe_haiku.so libbeadapter.so
146040ce757SStephan Aßmus	  libhwinterface.so libhwinterfaceimpl.so libfreetype.so
147040ce757SStephan Aßmus	  libtextencoding.so
148338b8dc3SIngo Weinhold	: tests!apps ;
149338b8dc3SIngo Weinhold
150338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server
151338b8dc3SIngo Weinhold	: tests!apps ;
152338b8dc3SIngo Weinhold
153ca9e5772SIngo Weinhold} # if $(TARGET_PLATFORM) = libbe_test
1542826a379SIngo Weinhold
1559813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app archived_view ;
1567362a1d7SAxel DörflerSubInclude HAIKU_TOP src tests servers app avoid_focus ;
1579813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
158338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
159c3b8f9f6SAxel DörflerSubInclude HAIKU_TOP src tests servers app code_to_name ;
160338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app copy_bits ;
161da07353dSAxel DörflerSubInclude HAIKU_TOP src tests servers app cursor_test ;
16294dc3ed6SAxel DörflerSubInclude HAIKU_TOP src tests servers app desktop_window ;
163fc505229SAxel DörflerSubInclude HAIKU_TOP src tests servers app event_mask ;
164dd98ed8dSStephan AßmusSubInclude HAIKU_TOP src tests servers app following ;
165a7e6679bSAxel DörflerSubInclude HAIKU_TOP src tests servers app look_and_feel ;
166338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app painter ;
167338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app playground ;
168338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app resize_limits ;
169338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app scrolling ;
170e7df4a48SStephan AßmusSubInclude HAIKU_TOP src tests servers app stress_test ;
171338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app textview ;
172338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app regularapps ;
173e0d7d87fSAxel DörflerSubInclude HAIKU_TOP src tests servers app view_state ;
174