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