xref: /haiku/src/tests/servers/app/Jamfile (revision 746cac055adc6ac3308c7bc2d29040fb95689cc9)
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) [ FDirName $(appServerDir) drawing ] ;
33
34SharedLibrary libhwinterface.so :
35	BBitmapBuffer.cpp
36	DWindowBuffer.cpp
37	HWInterface.cpp
38	RGBColor.cpp
39
40	: libhaikuappserver.so be
41;
42
43
44# The reason for this is that libhwinterfaceimpl.so needs to link against
45# libbe *first*, but simply adding it to the library list would add it to
46# LINKLIBS which is always appended after NEEDLIBS in the command line.
47LINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
48LINKFLAGS on libhwinterfaceimpl.so += -lbe ;
49
50SharedLibrary libhwinterfaceimpl.so :
51	ViewHWInterface.cpp
52	DWindowHWInterface.cpp
53	MultiLocker.cpp
54
55#	trace.c
56	: be libhwinterface.so
57;
58
59SharedLibrary libhaikuappserver.so :
60	Angle.cpp
61	ClientMemoryAllocator.cpp
62	CursorData.cpp
63	CursorManager.cpp
64	CursorSet.cpp
65	DesktopSettings.cpp
66	DrawState.cpp
67	FontCache.cpp
68	FontCacheEntry.cpp
69	FontEngine.cpp
70	FontFamily.cpp
71	FontManager.cpp
72	FontStyle.cpp
73	GlobalSubpixelSettings.cpp
74	HashTable.cpp
75	IntPoint.cpp
76	IntRect.cpp
77	MultiLocker.cpp
78	Overlay.cpp
79	RGBColor.cpp
80	ServerBitmap.cpp
81	ServerCursor.cpp
82	ServerFont.cpp
83	SystemPalette.cpp
84
85	# drawing
86	PatternHandler.cpp
87
88#	trace.c
89
90	# libraries
91	: be libpainter.a libtextencoding.so libfreetype.so libshared.a
92;
93
94AddResources haiku_app_server : app_server.rdef ;
95
96Server haiku_app_server :
97	# Misc. Sources
98	Decorator.cpp
99	ProfileMessageSupport.cpp
100	EventDispatcher.cpp
101	EventStream.cpp
102	MessageLooper.cpp
103	PNGDump.cpp
104	RAMLinkMsgReader.cpp
105
106	# Manager Classes
107	BitmapManager.cpp
108	DecorManager.cpp
109	InputManager.cpp
110	ScreenManager.cpp
111
112	AppServer.cpp
113	Desktop.cpp
114
115	ServerApp.cpp
116	ServerWindow.cpp
117
118	# DrawingEngine Classes
119#	AccelerantBuffer.cpp
120#	AccelerantHWInterface.cpp
121	BitmapBuffer.cpp
122	BitmapDrawingEngine.cpp
123	drawing_support.cpp
124	DrawingEngine.cpp
125	MallocBuffer.cpp
126	UpdateQueue.cpp
127
128	VirtualScreen.cpp
129	BitmapHWInterface.cpp
130	DefaultDecorator.cpp
131	OffscreenServerWindow.cpp
132	OffscreenWindow.cpp
133	RegionPool.cpp
134	Screen.cpp
135	ServerPicture.cpp
136	View.cpp
137	Window.cpp
138	WindowList.cpp
139	Workspace.cpp
140	WorkspacesView.cpp
141
142	# libraries
143	:
144	z libpng.so libhaikuappserver.so libpainter.a be
145	libhwinterface.so libhwinterfaceimpl.so
146	libagg.a libfreetype.so libtextencoding.so
147;
148
149# install in the test dir
150HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
151	: libpng.so libhaikuappserver.so libbe_haiku.so libbeadapter.so
152	  libhwinterface.so libhwinterfaceimpl.so libfreetype.so
153	  libtextencoding.so
154	: tests!apps ;
155
156HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server
157	: tests!apps ;
158
159} # if $(TARGET_PLATFORM) = libbe_test
160
161SubInclude HAIKU_TOP src tests servers app archived_view ;
162SubInclude HAIKU_TOP src tests servers app async_drawing ;
163SubInclude HAIKU_TOP src tests servers app avoid_focus ;
164SubInclude HAIKU_TOP src tests servers app benchmark ;
165SubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
166SubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
167SubInclude HAIKU_TOP src tests servers app code_to_name ;
168SubInclude HAIKU_TOP src tests servers app constrain_clipping_region ;
169SubInclude HAIKU_TOP src tests servers app copy_bits ;
170SubInclude HAIKU_TOP src tests servers app cursor_test ;
171SubInclude HAIKU_TOP src tests servers app desktop_window ;
172SubInclude HAIKU_TOP src tests servers app draw_after_children ;
173SubInclude HAIKU_TOP src tests servers app drawing_debugger ;
174SubInclude HAIKU_TOP src tests servers app drawing_modes ;
175SubInclude HAIKU_TOP src tests servers app event_mask ;
176SubInclude HAIKU_TOP src tests servers app following ;
177SubInclude HAIKU_TOP src tests servers app idle_test ;
178SubInclude HAIKU_TOP src tests servers app lagging_get_mouse ;
179SubInclude HAIKU_TOP src tests servers app lock_focus ;
180SubInclude HAIKU_TOP src tests servers app look_and_feel ;
181SubInclude HAIKU_TOP src tests servers app menu_crash ;
182SubInclude HAIKU_TOP src tests servers app no_pointer_history ;
183SubInclude HAIKU_TOP src tests servers app painter ;
184SubInclude HAIKU_TOP src tests servers app playground ;
185SubInclude HAIKU_TOP src tests servers app regularapps ;
186SubInclude HAIKU_TOP src tests servers app resize_limits ;
187SubInclude HAIKU_TOP src tests servers app scrollbar ;
188SubInclude HAIKU_TOP src tests servers app scrolling ;
189SubInclude HAIKU_TOP src tests servers app statusbar ;
190SubInclude HAIKU_TOP src tests servers app stress_test ;
191SubInclude HAIKU_TOP src tests servers app textview ;
192SubInclude HAIKU_TOP src tests servers app view_state ;
193SubInclude HAIKU_TOP src tests servers app window_creation ;
194SubInclude HAIKU_TOP src tests servers app workspace_activated ;
195SubInclude HAIKU_TOP src tests servers app workspace_switcher ;
196