xref: /haiku/src/tests/servers/app/Jamfile (revision 76ab3f88df26cbb595ca663798c7d84f9758c7c4)
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
323f3c9fddSStephan AßmusSEARCH_SOURCE += $(appServerDir) ;
333f3c9fddSStephan AßmusSEARCH_SOURCE += [ FDirName $(appServerDir) drawing ] ;
343f3c9fddSStephan AßmusSEARCH_SOURCE += [ FDirName $(appServerDir) drawing Painter ] ;
352826a379SIngo Weinhold
36338b8dc3SIngo WeinholdSharedLibrary libhwinterface.so :
37a41a0db6SIngo Weinhold	BBitmapBuffer.cpp
38c2270088SStephan Aßmus	DWindowBuffer.cpp
392826a379SIngo Weinhold	HWInterface.cpp
40c2270088SStephan Aßmus	RGBColor.cpp
413f3c9fddSStephan Aßmus	UpdateQueue.cpp
422826a379SIngo Weinhold
432c69b5b6SAxel Dörfler	: libtestappserver.so
442826a379SIngo Weinhold;
452826a379SIngo Weinhold
462826a379SIngo Weinhold
472826a379SIngo Weinhold# The reason for this is that libhwinterfaceimpl.so needs to link against
482826a379SIngo Weinhold# libbe *first*, but simply adding it to the library list would add it to
492826a379SIngo Weinhold# LINKLIBS which is always appended after NEEDLIBS in the command line.
502826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
512826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so += -lbe ;
522826a379SIngo Weinhold
53338b8dc3SIngo WeinholdSharedLibrary libhwinterfaceimpl.so :
54a41a0db6SIngo Weinhold	ViewHWInterface.cpp
55c2270088SStephan Aßmus	DWindowHWInterface.cpp
5604768381SAxel Dörfler	MultiLocker.cpp
572826a379SIngo Weinhold
58264fe59dSStephan Aßmus#	trace.c
592c69b5b6SAxel Dörfler	: libhwinterface.so
602826a379SIngo Weinhold;
612826a379SIngo Weinhold
622c69b5b6SAxel DörflerSharedLibrary libtestappserver.so :
632826a379SIngo Weinhold	Angle.cpp
649a44fdc9SAxel Dörfler	ClientMemoryAllocator.cpp
652826a379SIngo Weinhold	CursorData.cpp
66640b841dSAxel Dörfler	CursorManager.cpp
672826a379SIngo Weinhold	CursorSet.cpp
68e0d7d87fSAxel Dörfler	DesktopSettings.cpp
6919b850b3SStephan Aßmus	DirectWindowInfo.cpp
70aca4f50dSAxel Dörfler	DrawState.cpp
712222864eSStephan Aßmus	FontCache.cpp
722222864eSStephan Aßmus	FontCacheEntry.cpp
732222864eSStephan Aßmus	FontEngine.cpp
742826a379SIngo Weinhold	FontFamily.cpp
7504768381SAxel Dörfler	FontManager.cpp
76fd5d46e0SStephan Aßmus	FontStyle.cpp
7759e13a3fSStephan Aßmus	GlobalSubpixelSettings.cpp
7868e424c8SAdi Oanca	HashTable.cpp
79264fe59dSStephan Aßmus	IntPoint.cpp
80264fe59dSStephan Aßmus	IntRect.cpp
8104768381SAxel Dörfler	MultiLocker.cpp
820ac013e6SAxel Dörfler	Overlay.cpp
832826a379SIngo Weinhold	RGBColor.cpp
842826a379SIngo Weinhold	ServerBitmap.cpp
852826a379SIngo Weinhold	ServerCursor.cpp
862826a379SIngo Weinhold	ServerFont.cpp
872826a379SIngo Weinhold	SystemPalette.cpp
882826a379SIngo Weinhold
892826a379SIngo Weinhold	# drawing
902826a379SIngo Weinhold	PatternHandler.cpp
912826a379SIngo Weinhold
92264fe59dSStephan Aßmus#	trace.c
93264fe59dSStephan Aßmus
942826a379SIngo Weinhold	# libraries
952222864eSStephan Aßmus	: be libpainter.a libtextencoding.so libfreetype.so libshared.a
962826a379SIngo Weinhold;
972826a379SIngo Weinhold
982c69b5b6SAxel DörflerAddResources test_app_server : app_server.rdef ;
992826a379SIngo Weinhold
1002c69b5b6SAxel DörflerServer test_app_server :
1012826a379SIngo Weinhold	# Misc. Sources
102e7869c4cSStephan Aßmus	Decorator.cpp
10367f3be42SStephan Aßmus	ProfileMessageSupport.cpp
1040e29f57aSAxel Dörfler	EventDispatcher.cpp
1050e29f57aSAxel Dörfler	EventStream.cpp
10667f3be42SStephan Aßmus	MessageLooper.cpp
1072826a379SIngo Weinhold
1082826a379SIngo Weinhold	# Manager Classes
109be05d56cSAxel Dörfler	BitmapManager.cpp
1102826a379SIngo Weinhold	DecorManager.cpp
111f7598223SAxel Dörfler	InputManager.cpp
1122826a379SIngo Weinhold	ScreenManager.cpp
1132826a379SIngo Weinhold
1142826a379SIngo Weinhold	AppServer.cpp
1152826a379SIngo Weinhold	Desktop.cpp
1162826a379SIngo Weinhold
1172826a379SIngo Weinhold	ServerApp.cpp
1182826a379SIngo Weinhold	ServerWindow.cpp
1192826a379SIngo Weinhold
120fcd75d63SStephan Aßmus	# DrawingEngine Classes
121d3f08e7fSStephan Aßmus#	AccelerantBuffer.cpp
122d3f08e7fSStephan Aßmus#	AccelerantHWInterface.cpp
1232826a379SIngo Weinhold	BitmapBuffer.cpp
124ae50fc51SIngo Weinhold	BitmapDrawingEngine.cpp
125dd98ed8dSStephan Aßmus	drawing_support.cpp
126fcd75d63SStephan Aßmus	DrawingEngine.cpp
1272826a379SIngo Weinhold	MallocBuffer.cpp
1282826a379SIngo Weinhold
1292826a379SIngo Weinhold	VirtualScreen.cpp
1302826a379SIngo Weinhold	BitmapHWInterface.cpp
1312826a379SIngo Weinhold	DefaultDecorator.cpp
1322826a379SIngo Weinhold	OffscreenServerWindow.cpp
133437b1927SAxel Dörfler	OffscreenWindow.cpp
13439c9925fSStephan Aßmus	RegionPool.cpp
135437b1927SAxel Dörfler	Screen.cpp
13619b850b3SStephan Aßmus	ScreenConfigurations.cpp
1372826a379SIngo Weinhold	ServerPicture.cpp
138437b1927SAxel Dörfler	View.cpp
139437b1927SAxel Dörfler	Window.cpp
140e83820edSAxel Dörfler	WindowList.cpp
1412826a379SIngo Weinhold	Workspace.cpp
142437b1927SAxel Dörfler	WorkspacesView.cpp
1432826a379SIngo Weinhold
1442826a379SIngo Weinhold	# libraries
1452826a379SIngo Weinhold	:
1462c69b5b6SAxel Dörfler	z libtestappserver.so libpainter.a be
1472826a379SIngo Weinhold	libhwinterface.so libhwinterfaceimpl.so
1482826a379SIngo Weinhold	libagg.a libfreetype.so libtextencoding.so
149b671e9bbSStephan Aßmus	$(TARGET_LIBSTDC++) $(TARGET_LIBSUPC++)
1502826a379SIngo Weinhold;
1512826a379SIngo Weinhold
152338b8dc3SIngo Weinhold# install in the test dir
153338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
1542c69b5b6SAxel Dörfler	: libtestappserver.so libbe_test.so
155040ce757SStephan Aßmus	  libhwinterface.so libhwinterfaceimpl.so libfreetype.so
156040ce757SStephan Aßmus	  libtextencoding.so
157338b8dc3SIngo Weinhold	: tests!apps ;
158338b8dc3SIngo Weinhold
1592c69b5b6SAxel DörflerHaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : test_app_server
160338b8dc3SIngo Weinhold	: tests!apps ;
161338b8dc3SIngo Weinhold
162ca9e5772SIngo Weinhold} # if $(TARGET_PLATFORM) = libbe_test
1632826a379SIngo Weinhold
1649813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app archived_view ;
165ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app async_drawing ;
1667362a1d7SAxel DörflerSubInclude HAIKU_TOP src tests servers app avoid_focus ;
1677c265858SStephan AßmusSubInclude HAIKU_TOP src tests servers app benchmark ;
1689813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
169338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
170c3b8f9f6SAxel DörflerSubInclude HAIKU_TOP src tests servers app code_to_name ;
171ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app constrain_clipping_region ;
172338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app copy_bits ;
173da07353dSAxel DörflerSubInclude HAIKU_TOP src tests servers app cursor_test ;
17494dc3ed6SAxel DörflerSubInclude HAIKU_TOP src tests servers app desktop_window ;
17511dbc914SStephan AßmusSubInclude HAIKU_TOP src tests servers app draw_after_children ;
17677e5acc0SStephan AßmusSubInclude HAIKU_TOP src tests servers app draw_string_offsets ;
1773c905d81SMichael LotzSubInclude HAIKU_TOP src tests servers app drawing_debugger ;
1783d75dfbbSMichael LotzSubInclude HAIKU_TOP src tests servers app drawing_modes ;
179fc505229SAxel DörflerSubInclude HAIKU_TOP src tests servers app event_mask ;
1805ae0bbaaSStephan AßmusSubInclude HAIKU_TOP src tests servers app find_view ;
181dd98ed8dSStephan AßmusSubInclude HAIKU_TOP src tests servers app following ;
182ea5c7202SAxel DörflerSubInclude HAIKU_TOP src tests servers app hide_and_show ;
18309f147fbSJérôme DuvalSubInclude HAIKU_TOP src tests servers app idle_test ;
184d36ae78cSStephan AßmusSubInclude HAIKU_TOP src tests servers app lagging_get_mouse ;
1853ecd9d8fSAxel DörflerSubInclude HAIKU_TOP src tests servers app lock_focus ;
186a7e6679bSAxel DörflerSubInclude HAIKU_TOP src tests servers app look_and_feel ;
1874c751e51SAxel DörflerSubInclude HAIKU_TOP src tests servers app menu_crash ;
188ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app no_pointer_history ;
189338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app painter ;
190338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app playground ;
191ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app regularapps ;
192338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app resize_limits ;
193ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app scrollbar ;
194338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app scrolling ;
195*76ab3f88SStephan AßmusSubInclude HAIKU_TOP src tests servers app shape_test ;
196d36ae78cSStephan AßmusSubInclude HAIKU_TOP src tests servers app statusbar ;
197e7df4a48SStephan AßmusSubInclude HAIKU_TOP src tests servers app stress_test ;
198338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app textview ;
199e0d7d87fSAxel DörflerSubInclude HAIKU_TOP src tests servers app view_state ;
20061e7172dSStephan AßmusSubInclude HAIKU_TOP src tests servers app view_transit ;
201ecef598eSStefano CeccheriniSubInclude HAIKU_TOP src tests servers app window_creation ;
202e527d809SAxel DörflerSubInclude HAIKU_TOP src tests servers app window_invalidation ;
203f0b714c8SAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_activated ;
2041214ef1bSAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_switcher ;
205