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