xref: /haiku/src/tests/servers/app/Jamfile (revision 264fe59ded1101a7eea8c965131b112748f4607c)
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 ;
916ed1e1dSAxel DörflerUsePrivateHeaders app graphics input interface kernel shared ;
102826a379SIngo Weinhold
11338b8dc3SIngo Weinholdlocal appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
122826a379SIngo Weinhold
132826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing ] ;
142826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter ] ;
152826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ;
162826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ;
172826a379SIngo WeinholdUseFreeTypeHeaders ;
182826a379SIngo Weinhold
198b794301SAxel Dörfler# This overrides the definitions in private/servers/app/ServerConfig.h
208b794301SAxel Dörflerlocal defines = [ FDefines TEST_MODE=1 ] ;
21bd09e99dSAxel Dörfler	# USE_DIRECT_WINDOW_TEST_MODE=1
228b794301SAxel Dörfler
23*264fe59dSStephan AßmusSubDirCcFlags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
24*264fe59dSStephan AßmusSubDirC++Flags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
258b794301SAxel Dörfler
262826a379SIngo WeinholdSEARCH_SOURCE += $(appServerDir) [ FDirName $(appServerDir) drawing ] ;
272826a379SIngo Weinhold
28338b8dc3SIngo WeinholdSharedLibrary libhwinterface.so :
29a41a0db6SIngo Weinhold	BBitmapBuffer.cpp
30c2270088SStephan Aßmus	DWindowBuffer.cpp
312826a379SIngo Weinhold	HWInterface.cpp
32c2270088SStephan Aßmus	RGBColor.cpp
332826a379SIngo Weinhold
34ca9e5772SIngo Weinhold	: libhaikuappserver.so be
352826a379SIngo Weinhold;
362826a379SIngo Weinhold
372826a379SIngo Weinhold
382826a379SIngo Weinhold# The reason for this is that libhwinterfaceimpl.so needs to link against
392826a379SIngo Weinhold# libbe *first*, but simply adding it to the library list would add it to
402826a379SIngo Weinhold# LINKLIBS which is always appended after NEEDLIBS in the command line.
412826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
422826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so += -lbe ;
432826a379SIngo Weinhold
44338b8dc3SIngo WeinholdSharedLibrary libhwinterfaceimpl.so :
45a41a0db6SIngo Weinhold	ViewHWInterface.cpp
46c2270088SStephan Aßmus	DWindowHWInterface.cpp
4704768381SAxel Dörfler	MultiLocker.cpp
482826a379SIngo Weinhold
49*264fe59dSStephan Aßmus#	trace.c
5062b965a6SStephan Aßmus	: be libhwinterface.so
512826a379SIngo Weinhold;
522826a379SIngo Weinhold
53338b8dc3SIngo WeinholdSharedLibrary libhaikuappserver.so :
542826a379SIngo Weinhold	Angle.cpp
559a44fdc9SAxel Dörfler	ClientMemoryAllocator.cpp
562826a379SIngo Weinhold	CursorData.cpp
57640b841dSAxel Dörfler	CursorManager.cpp
582826a379SIngo Weinhold	CursorSet.cpp
59e0d7d87fSAxel Dörfler	DesktopSettings.cpp
60aca4f50dSAxel Dörfler	DrawState.cpp
612826a379SIngo Weinhold	FontFamily.cpp
6204768381SAxel Dörfler	FontManager.cpp
6368e424c8SAdi Oanca	HashTable.cpp
64*264fe59dSStephan Aßmus	IntPoint.cpp
65*264fe59dSStephan Aßmus	IntRect.cpp
6604768381SAxel Dörfler	MultiLocker.cpp
670ac013e6SAxel Dörfler	Overlay.cpp
682826a379SIngo Weinhold	RGBColor.cpp
692826a379SIngo Weinhold	ServerBitmap.cpp
702826a379SIngo Weinhold	ServerCursor.cpp
712826a379SIngo Weinhold	ServerFont.cpp
722826a379SIngo Weinhold	SystemPalette.cpp
732826a379SIngo Weinhold
742826a379SIngo Weinhold	# drawing
752826a379SIngo Weinhold	PatternHandler.cpp
762826a379SIngo Weinhold
77*264fe59dSStephan Aßmus#	trace.c
78*264fe59dSStephan Aßmus
792826a379SIngo Weinhold	# libraries
8004768381SAxel Dörfler	: be libtextencoding.so libfreetype.so
812826a379SIngo Weinhold;
822826a379SIngo Weinhold
832826a379SIngo WeinholdAddResources haiku_app_server : app_server.rdef ;
842826a379SIngo Weinhold
852826a379SIngo WeinholdServer haiku_app_server :
862826a379SIngo Weinhold	# Misc. Sources
87e7869c4cSStephan Aßmus	Decorator.cpp
882826a379SIngo Weinhold	DebugInfoManager.cpp
892826a379SIngo Weinhold	PNGDump.cpp
902826a379SIngo Weinhold	RAMLinkMsgReader.cpp
912826a379SIngo Weinhold	MessageLooper.cpp
920e29f57aSAxel Dörfler	EventDispatcher.cpp
930e29f57aSAxel Dörfler	EventStream.cpp
942826a379SIngo Weinhold
952826a379SIngo Weinhold	# Manager Classes
96be05d56cSAxel Dörfler	BitmapManager.cpp
972826a379SIngo Weinhold	DecorManager.cpp
98f7598223SAxel Dörfler	InputManager.cpp
992826a379SIngo Weinhold	ScreenManager.cpp
1002826a379SIngo Weinhold
1012826a379SIngo Weinhold	AppServer.cpp
1022826a379SIngo Weinhold	Desktop.cpp
1032826a379SIngo Weinhold
1042826a379SIngo Weinhold	ServerApp.cpp
1052826a379SIngo Weinhold	ServerWindow.cpp
1062826a379SIngo Weinhold
107fcd75d63SStephan Aßmus	# DrawingEngine Classes
1082826a379SIngo Weinhold	AccelerantBuffer.cpp
1092826a379SIngo Weinhold	AccelerantHWInterface.cpp
1102826a379SIngo Weinhold	BitmapBuffer.cpp
111dd98ed8dSStephan Aßmus	drawing_support.cpp
112fcd75d63SStephan Aßmus	DrawingEngine.cpp
1132826a379SIngo Weinhold	MallocBuffer.cpp
1142826a379SIngo Weinhold	UpdateQueue.cpp
1152826a379SIngo Weinhold
1162826a379SIngo Weinhold	VirtualScreen.cpp
1172826a379SIngo Weinhold	BitmapHWInterface.cpp
1182826a379SIngo Weinhold	DefaultDecorator.cpp
1192826a379SIngo Weinhold	OffscreenServerWindow.cpp
120be2f498eSAxel Dörfler	OffscreenWindowLayer.cpp
12139c9925fSStephan Aßmus	RegionPool.cpp
1222826a379SIngo Weinhold	ServerPicture.cpp
1232826a379SIngo Weinhold	ServerScreen.cpp
124e83820edSAxel Dörfler	ViewLayer.cpp
125be2f498eSAxel Dörfler	WindowLayer.cpp
126e83820edSAxel Dörfler	WindowList.cpp
1272826a379SIngo Weinhold	Workspace.cpp
1282826a379SIngo Weinhold	WorkspacesLayer.cpp
1292826a379SIngo Weinhold
1302826a379SIngo Weinhold	# libraries
1312826a379SIngo Weinhold	:
132338b8dc3SIngo Weinhold	z libpng.so libhaikuappserver.so
13362b965a6SStephan Aßmus	libpainter.a be
1342826a379SIngo Weinhold	libhwinterface.so libhwinterfaceimpl.so
1352826a379SIngo Weinhold	libagg.a libfreetype.so libtextencoding.so
1362826a379SIngo Weinhold;
1372826a379SIngo Weinhold
138338b8dc3SIngo Weinhold# install in the test dir
139338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
140040ce757SStephan Aßmus	: libpng.so libhaikuappserver.so libbe_haiku.so libbeadapter.so
141040ce757SStephan Aßmus	  libhwinterface.so libhwinterfaceimpl.so libfreetype.so
142040ce757SStephan Aßmus	  libtextencoding.so
143338b8dc3SIngo Weinhold	: tests!apps ;
144338b8dc3SIngo Weinhold
145338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server
146338b8dc3SIngo Weinhold	: tests!apps ;
147338b8dc3SIngo Weinhold
148ca9e5772SIngo Weinhold} # if $(TARGET_PLATFORM) = libbe_test
1492826a379SIngo Weinhold
1509813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app archived_view ;
1517362a1d7SAxel DörflerSubInclude HAIKU_TOP src tests servers app avoid_focus ;
1529813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
153338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
154c3b8f9f6SAxel DörflerSubInclude HAIKU_TOP src tests servers app code_to_name ;
155338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app copy_bits ;
156da07353dSAxel DörflerSubInclude HAIKU_TOP src tests servers app cursor_test ;
15794dc3ed6SAxel DörflerSubInclude HAIKU_TOP src tests servers app desktop_window ;
158fc505229SAxel DörflerSubInclude HAIKU_TOP src tests servers app event_mask ;
159dd98ed8dSStephan AßmusSubInclude HAIKU_TOP src tests servers app following ;
160a7e6679bSAxel DörflerSubInclude HAIKU_TOP src tests servers app look_and_feel ;
161338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app painter ;
162338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app playground ;
163338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app resize_limits ;
164338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app scrolling ;
165e7df4a48SStephan AßmusSubInclude HAIKU_TOP src tests servers app stress_test ;
166338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app textview ;
167338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app regularapps ;
168e0d7d87fSAxel DörflerSubInclude HAIKU_TOP src tests servers app view_state ;
169