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