xref: /haiku/src/tests/servers/app/Jamfile (revision e8cd7007416a323259791ac09c013dcce2956976)
1SubDir HAIKU_TOP src tests servers app ;
2
3UsePrivateHeaders app graphics input interface shared storage ;
4
5SimpleTest app_server_debug :
6	app_server_debug.cpp
7	: be
8;
9
10SetSubDirSupportedPlatforms libbe_test ;
11
12# No need to define any of those targets, when not building for libbe_test
13if $(TARGET_PLATFORM) = libbe_test {
14
15UseLibraryHeaders agg png zlib ;
16UsePrivateHeaders [ FDirName graphics common ] ;
17
18# headers/build/private/kernel is needed for safemode.h and syscalls.h.
19# headers/private/kernel for the util/* stuff.
20UseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ;
21UsePrivateHeaders kernel ;
22
23local appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
24
25UseHeaders [ FDirName $(appServerDir) drawing ] ;
26UseHeaders [ FDirName $(appServerDir) drawing Painter ] ;
27UseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ;
28UseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ;
29UseFreeTypeHeaders ;
30
31# This overrides the definitions in private/servers/app/ServerConfig.h
32local defines = [ FDefines TEST_MODE=1 ] ;
33	# USE_DIRECT_WINDOW_TEST_MODE=1
34
35SubDirCcFlags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
36SubDirC++Flags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
37
38SEARCH_SOURCE += $(appServerDir) ;
39SEARCH_SOURCE += [ FDirName $(appServerDir) drawing ] ;
40SEARCH_SOURCE += [ FDirName $(appServerDir) drawing Painter ] ;
41
42SharedLibrary libhwinterface.so :
43	BBitmapBuffer.cpp
44	DWindowBuffer.cpp
45	HWInterface.cpp
46	RGBColor.cpp
47	UpdateQueue.cpp
48
49	: libtestappserver.so
50;
51
52
53# The reason for this is that libhwinterfaceimpl.so needs to link against
54# libbe *first*, but simply adding it to the library list would add it to
55# LINKLIBS which is always appended after NEEDLIBS in the command line.
56LINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
57LINKFLAGS on libhwinterfaceimpl.so += -lbe ;
58
59SharedLibrary libhwinterfaceimpl.so :
60	ViewHWInterface.cpp
61	DWindowHWInterface.cpp
62	MultiLocker.cpp
63
64#	trace.c
65	: libhwinterface.so
66;
67
68SharedLibrary libtestappserver.so :
69	Angle.cpp
70	ClientMemoryAllocator.cpp
71	CursorData.cpp
72	CursorManager.cpp
73	CursorSet.cpp
74	DesktopSettings.cpp
75	DirectWindowInfo.cpp
76	DrawState.cpp
77	FontCache.cpp
78	FontCacheEntry.cpp
79	FontEngine.cpp
80	FontFamily.cpp
81	FontManager.cpp
82	FontStyle.cpp
83	GlobalSubpixelSettings.cpp
84	HashTable.cpp
85	IntPoint.cpp
86	IntRect.cpp
87	MultiLocker.cpp
88	Overlay.cpp
89	RGBColor.cpp
90	ServerBitmap.cpp
91	ServerCursor.cpp
92	ServerFont.cpp
93	SystemPalette.cpp
94
95	# drawing
96	PatternHandler.cpp
97
98#	trace.c
99
100	# libraries
101	: be libpainter.a libtextencoding.so libfreetype.so libshared.a
102;
103
104AddResources test_app_server : app_server.rdef ;
105
106Server test_app_server :
107	# Misc. Sources
108	Decorator.cpp
109	ProfileMessageSupport.cpp
110	EventDispatcher.cpp
111	EventStream.cpp
112	MessageLooper.cpp
113
114	# Manager Classes
115	BitmapManager.cpp
116	DecorManager.cpp
117	InputManager.cpp
118	ScreenManager.cpp
119
120	AppServer.cpp
121	Desktop.cpp
122
123	ServerApp.cpp
124	ServerWindow.cpp
125
126	# DrawingEngine Classes
127#	AccelerantBuffer.cpp
128#	AccelerantHWInterface.cpp
129	BitmapBuffer.cpp
130	BitmapDrawingEngine.cpp
131	drawing_support.cpp
132	DrawingEngine.cpp
133	MallocBuffer.cpp
134
135	VirtualScreen.cpp
136	BitmapHWInterface.cpp
137	DefaultDecorator.cpp
138	OffscreenServerWindow.cpp
139	OffscreenWindow.cpp
140	RegionPool.cpp
141	Screen.cpp
142	ScreenConfigurations.cpp
143	ServerPicture.cpp
144	View.cpp
145	Window.cpp
146	WindowList.cpp
147	Workspace.cpp
148	WorkspacesView.cpp
149
150	# libraries
151	:
152	z libtestappserver.so libpainter.a be
153	libhwinterface.so libhwinterfaceimpl.so
154	libagg.a libfreetype.so libtextencoding.so
155	$(TARGET_LIBSTDC++) $(TARGET_LIBSUPC++)
156;
157
158# install in the test dir
159HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
160	: libtestappserver.so libbe_test.so
161	  libhwinterface.so libhwinterfaceimpl.so libfreetype.so
162	  libtextencoding.so
163	: tests!apps ;
164
165HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : test_app_server
166	: tests!apps ;
167
168} # if $(TARGET_PLATFORM) = libbe_test
169
170SubInclude HAIKU_TOP src tests servers app archived_view ;
171SubInclude HAIKU_TOP src tests servers app async_drawing ;
172SubInclude HAIKU_TOP src tests servers app avoid_focus ;
173SubInclude HAIKU_TOP src tests servers app benchmark ;
174SubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
175SubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
176SubInclude HAIKU_TOP src tests servers app code_to_name ;
177SubInclude HAIKU_TOP src tests servers app constrain_clipping_region ;
178SubInclude HAIKU_TOP src tests servers app copy_bits ;
179SubInclude HAIKU_TOP src tests servers app cursor_test ;
180SubInclude HAIKU_TOP src tests servers app desktop_window ;
181SubInclude HAIKU_TOP src tests servers app draw_after_children ;
182SubInclude HAIKU_TOP src tests servers app draw_string_offsets ;
183SubInclude HAIKU_TOP src tests servers app drawing_debugger ;
184SubInclude HAIKU_TOP src tests servers app drawing_modes ;
185SubInclude HAIKU_TOP src tests servers app event_mask ;
186SubInclude HAIKU_TOP src tests servers app find_view ;
187SubInclude HAIKU_TOP src tests servers app following ;
188SubInclude HAIKU_TOP src tests servers app hide_and_show ;
189SubInclude HAIKU_TOP src tests servers app idle_test ;
190SubInclude HAIKU_TOP src tests servers app lagging_get_mouse ;
191SubInclude HAIKU_TOP src tests servers app lock_focus ;
192SubInclude HAIKU_TOP src tests servers app look_and_feel ;
193SubInclude HAIKU_TOP src tests servers app menu_crash ;
194SubInclude HAIKU_TOP src tests servers app no_pointer_history ;
195SubInclude HAIKU_TOP src tests servers app painter ;
196SubInclude HAIKU_TOP src tests servers app playground ;
197SubInclude HAIKU_TOP src tests servers app regularapps ;
198SubInclude HAIKU_TOP src tests servers app resize_limits ;
199SubInclude HAIKU_TOP src tests servers app scrollbar ;
200SubInclude HAIKU_TOP src tests servers app scrolling ;
201SubInclude HAIKU_TOP src tests servers app shape_test ;
202SubInclude HAIKU_TOP src tests servers app statusbar ;
203SubInclude HAIKU_TOP src tests servers app stress_test ;
204SubInclude HAIKU_TOP src tests servers app textview ;
205SubInclude HAIKU_TOP src tests servers app view_state ;
206SubInclude HAIKU_TOP src tests servers app view_transit ;
207SubInclude HAIKU_TOP src tests servers app window_creation ;
208SubInclude HAIKU_TOP src tests servers app window_invalidation ;
209SubInclude HAIKU_TOP src tests servers app workspace_activated ;
210SubInclude HAIKU_TOP src tests servers app workspace_switcher ;
211