xref: /haiku/src/tests/servers/app/Jamfile (revision f0b714c8b1efea8eaf7b051d205ae2d59daba8f7)
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 ;
93111f163SIngo WeinholdUsePrivateHeaders app graphics input interface shared storage ;
103ee83016SIngo WeinholdUsePrivateHeaders [ FDirName graphics common ] ;
113111f163SIngo Weinhold
123111f163SIngo Weinhold# headers/build/private/kernel is needed for safemode.h and syscalls.h.
133111f163SIngo Weinhold# headers/private/kernel for the util/* stuff.
143111f163SIngo WeinholdUseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ;
153111f163SIngo WeinholdUsePrivateHeaders kernel ;
162826a379SIngo Weinhold
17338b8dc3SIngo Weinholdlocal appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
182826a379SIngo Weinhold
192826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing ] ;
202826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter ] ;
212826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ;
222826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ;
232826a379SIngo WeinholdUseFreeTypeHeaders ;
242826a379SIngo Weinhold
258b794301SAxel Dörfler# This overrides the definitions in private/servers/app/ServerConfig.h
268b794301SAxel Dörflerlocal defines = [ FDefines TEST_MODE=1 ] ;
27bd09e99dSAxel Dörfler	# USE_DIRECT_WINDOW_TEST_MODE=1
288b794301SAxel Dörfler
29264fe59dSStephan AßmusSubDirCcFlags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
30264fe59dSStephan AßmusSubDirC++Flags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
318b794301SAxel Dörfler
322826a379SIngo WeinholdSEARCH_SOURCE += $(appServerDir) [ FDirName $(appServerDir) drawing ] ;
332826a379SIngo Weinhold
34338b8dc3SIngo WeinholdSharedLibrary libhwinterface.so :
35a41a0db6SIngo Weinhold	BBitmapBuffer.cpp
36c2270088SStephan Aßmus	DWindowBuffer.cpp
372826a379SIngo Weinhold	HWInterface.cpp
38c2270088SStephan Aßmus	RGBColor.cpp
392826a379SIngo Weinhold
40ca9e5772SIngo Weinhold	: libhaikuappserver.so be
412826a379SIngo Weinhold;
422826a379SIngo Weinhold
432826a379SIngo Weinhold
442826a379SIngo Weinhold# The reason for this is that libhwinterfaceimpl.so needs to link against
452826a379SIngo Weinhold# libbe *first*, but simply adding it to the library list would add it to
462826a379SIngo Weinhold# LINKLIBS which is always appended after NEEDLIBS in the command line.
472826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
482826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so += -lbe ;
492826a379SIngo Weinhold
50338b8dc3SIngo WeinholdSharedLibrary libhwinterfaceimpl.so :
51a41a0db6SIngo Weinhold	ViewHWInterface.cpp
52c2270088SStephan Aßmus	DWindowHWInterface.cpp
5304768381SAxel Dörfler	MultiLocker.cpp
542826a379SIngo Weinhold
55264fe59dSStephan Aßmus#	trace.c
5662b965a6SStephan Aßmus	: be libhwinterface.so
572826a379SIngo Weinhold;
582826a379SIngo Weinhold
59338b8dc3SIngo WeinholdSharedLibrary libhaikuappserver.so :
602826a379SIngo Weinhold	Angle.cpp
619a44fdc9SAxel Dörfler	ClientMemoryAllocator.cpp
622826a379SIngo Weinhold	CursorData.cpp
63640b841dSAxel Dörfler	CursorManager.cpp
642826a379SIngo Weinhold	CursorSet.cpp
65e0d7d87fSAxel Dörfler	DesktopSettings.cpp
66aca4f50dSAxel Dörfler	DrawState.cpp
672222864eSStephan Aßmus	FontCache.cpp
682222864eSStephan Aßmus	FontCacheEntry.cpp
692222864eSStephan Aßmus	FontEngine.cpp
702826a379SIngo Weinhold	FontFamily.cpp
7104768381SAxel Dörfler	FontManager.cpp
72fd5d46e0SStephan Aßmus	FontStyle.cpp
7368e424c8SAdi Oanca	HashTable.cpp
74264fe59dSStephan Aßmus	IntPoint.cpp
75264fe59dSStephan Aßmus	IntRect.cpp
7604768381SAxel Dörfler	MultiLocker.cpp
770ac013e6SAxel Dörfler	Overlay.cpp
782826a379SIngo Weinhold	RGBColor.cpp
792826a379SIngo Weinhold	ServerBitmap.cpp
802826a379SIngo Weinhold	ServerCursor.cpp
812826a379SIngo Weinhold	ServerFont.cpp
822826a379SIngo Weinhold	SystemPalette.cpp
832826a379SIngo Weinhold
842826a379SIngo Weinhold	# drawing
852826a379SIngo Weinhold	PatternHandler.cpp
862826a379SIngo Weinhold
87264fe59dSStephan Aßmus#	trace.c
88264fe59dSStephan Aßmus
892826a379SIngo Weinhold	# libraries
902222864eSStephan Aßmus	: be libpainter.a libtextencoding.so libfreetype.so libshared.a
912826a379SIngo Weinhold;
922826a379SIngo Weinhold
932826a379SIngo WeinholdAddResources haiku_app_server : app_server.rdef ;
942826a379SIngo Weinhold
952826a379SIngo WeinholdServer haiku_app_server :
962826a379SIngo Weinhold	# Misc. Sources
97e7869c4cSStephan Aßmus	Decorator.cpp
9867f3be42SStephan Aßmus	ProfileMessageSupport.cpp
990e29f57aSAxel Dörfler	EventDispatcher.cpp
1000e29f57aSAxel Dörfler	EventStream.cpp
10167f3be42SStephan Aßmus	MessageLooper.cpp
10267f3be42SStephan Aßmus	PNGDump.cpp
10367f3be42SStephan Aßmus	RAMLinkMsgReader.cpp
1042826a379SIngo Weinhold
1052826a379SIngo Weinhold	# Manager Classes
106be05d56cSAxel Dörfler	BitmapManager.cpp
1072826a379SIngo Weinhold	DecorManager.cpp
108f7598223SAxel Dörfler	InputManager.cpp
1092826a379SIngo Weinhold	ScreenManager.cpp
1102826a379SIngo Weinhold
1112826a379SIngo Weinhold	AppServer.cpp
1122826a379SIngo Weinhold	Desktop.cpp
1132826a379SIngo Weinhold
1142826a379SIngo Weinhold	ServerApp.cpp
1152826a379SIngo Weinhold	ServerWindow.cpp
1162826a379SIngo Weinhold
117fcd75d63SStephan Aßmus	# DrawingEngine Classes
118d3f08e7fSStephan Aßmus#	AccelerantBuffer.cpp
119d3f08e7fSStephan Aßmus#	AccelerantHWInterface.cpp
1202826a379SIngo Weinhold	BitmapBuffer.cpp
121dd98ed8dSStephan Aßmus	drawing_support.cpp
122fcd75d63SStephan Aßmus	DrawingEngine.cpp
1232826a379SIngo Weinhold	MallocBuffer.cpp
1242826a379SIngo Weinhold	UpdateQueue.cpp
1252826a379SIngo Weinhold
1262826a379SIngo Weinhold	VirtualScreen.cpp
1272826a379SIngo Weinhold	BitmapHWInterface.cpp
1282826a379SIngo Weinhold	DefaultDecorator.cpp
1292826a379SIngo Weinhold	OffscreenServerWindow.cpp
130437b1927SAxel Dörfler	OffscreenWindow.cpp
13139c9925fSStephan Aßmus	RegionPool.cpp
132437b1927SAxel Dörfler	Screen.cpp
1332826a379SIngo Weinhold	ServerPicture.cpp
134437b1927SAxel Dörfler	View.cpp
135437b1927SAxel Dörfler	Window.cpp
136e83820edSAxel Dörfler	WindowList.cpp
1372826a379SIngo Weinhold	Workspace.cpp
138437b1927SAxel Dörfler	WorkspacesView.cpp
1392826a379SIngo Weinhold
1402826a379SIngo Weinhold	# libraries
1412826a379SIngo Weinhold	:
1422222864eSStephan Aßmus	z libpng.so libhaikuappserver.so libpainter.a be
1432826a379SIngo Weinhold	libhwinterface.so libhwinterfaceimpl.so
1442826a379SIngo Weinhold	libagg.a libfreetype.so libtextencoding.so
1452826a379SIngo Weinhold;
1462826a379SIngo Weinhold
147338b8dc3SIngo Weinhold# install in the test dir
148338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
149040ce757SStephan Aßmus	: libpng.so libhaikuappserver.so libbe_haiku.so libbeadapter.so
150040ce757SStephan Aßmus	  libhwinterface.so libhwinterfaceimpl.so libfreetype.so
151040ce757SStephan Aßmus	  libtextencoding.so
152338b8dc3SIngo Weinhold	: tests!apps ;
153338b8dc3SIngo Weinhold
154338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server
155338b8dc3SIngo Weinhold	: tests!apps ;
156338b8dc3SIngo Weinhold
157ca9e5772SIngo Weinhold} # if $(TARGET_PLATFORM) = libbe_test
1582826a379SIngo Weinhold
1599813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app archived_view ;
1607362a1d7SAxel DörflerSubInclude HAIKU_TOP src tests servers app avoid_focus ;
1619813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
162338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
163c3b8f9f6SAxel DörflerSubInclude HAIKU_TOP src tests servers app code_to_name ;
164338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app copy_bits ;
165da07353dSAxel DörflerSubInclude HAIKU_TOP src tests servers app cursor_test ;
16694dc3ed6SAxel DörflerSubInclude HAIKU_TOP src tests servers app desktop_window ;
16711dbc914SStephan AßmusSubInclude HAIKU_TOP src tests servers app draw_after_children ;
168fc505229SAxel DörflerSubInclude HAIKU_TOP src tests servers app event_mask ;
169dd98ed8dSStephan AßmusSubInclude HAIKU_TOP src tests servers app following ;
17009f147fbSJérôme DuvalSubInclude HAIKU_TOP src tests servers app idle_test ;
1713ecd9d8fSAxel DörflerSubInclude HAIKU_TOP src tests servers app lock_focus ;
172a7e6679bSAxel DörflerSubInclude HAIKU_TOP src tests servers app look_and_feel ;
1734c751e51SAxel DörflerSubInclude HAIKU_TOP src tests servers app menu_crash ;
174ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app no_pointer_history ;
175338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app painter ;
176338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app playground ;
177ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app regularapps ;
178338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app resize_limits ;
179338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app scrolling ;
180e7df4a48SStephan AßmusSubInclude HAIKU_TOP src tests servers app stress_test ;
181338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app textview ;
182e0d7d87fSAxel DörflerSubInclude HAIKU_TOP src tests servers app view_state ;
183ecef598eSStefano CeccheriniSubInclude HAIKU_TOP src tests servers app window_creation ;
184*f0b714c8SAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_activated ;
1851214ef1bSAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_switcher ;
186