Build: Add architecture rule for libshared.a.
[haiku.git] / src / tests / servers / app / Jamfile
blob732c19e32360691d37f50dda945a96d95f2c3ef8
1 SubDir HAIKU_TOP src tests servers app ;
3 UsePrivateHeaders app graphics input interface shared storage ;
5 SimpleTest app_server_debug :
6         app_server_debug.cpp
7         : be
10 SetSubDirSupportedPlatforms libbe_test ;
12 # No need to define any of those targets, when not building for libbe_test
13 if $(TARGET_PLATFORM) = libbe_test {
15 UseLibraryHeaders agg png ;
16 UseBuildFeatureHeaders zlib ;
17 UsePrivateHeaders [ FDirName graphics common ] ;
19 # headers/build/private/kernel is needed for safemode.h and syscalls.h.
20 # headers/private/kernel for the util/* stuff.
21 UseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ;
22 UsePrivateHeaders kernel support ;
24 local appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
26 UseHeaders [ FDirName $(appServerDir) decorator ] ;
27 UseHeaders [ FDirName $(appServerDir) drawing ] ;
28 UseHeaders [ FDirName $(appServerDir) drawing interface html5 ] ;
29 UseHeaders [ FDirName $(appServerDir) drawing interface remote ] ;
30 UseHeaders [ FDirName $(appServerDir) drawing Painter ] ;
31 UseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ;
32 UseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ;
33 UseHeaders [ FDirName $(appServerDir) font ] ;
34 UseHeaders [ FDirName $(appServerDir) stackandtile ] ;
35 UseBuildFeatureHeaders freetype ;
36 UseLibraryHeaders agg lp_solve linprog ;
38 # This overrides the definitions in private/servers/app/ServerConfig.h
39 local defines = [ FDefines TEST_MODE=1 ] ;
40         # USE_DIRECT_WINDOW_TEST_MODE=1
42 SubDirCcFlags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
43 SubDirC++Flags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
45 SEARCH_SOURCE += $(appServerDir) ;
46 SEARCH_SOURCE += [ FDirName $(appServerDir) decorator ] ;
47 SEARCH_SOURCE += [ FDirName $(appServerDir) drawing ] ;
48 SEARCH_SOURCE += [ FDirName $(appServerDir) drawing Painter ] ;
49 SEARCH_SOURCE += [ FDirName $(appServerDir) font ] ;
51 SharedLibrary libhwinterface.so :
52         BBitmapBuffer.cpp
53         DWindowBuffer.cpp
54         HWInterface.cpp
55         RGBColor.cpp
56         UpdateQueue.cpp
58         : libtestappserver.so
62 # The reason for this is that libhwinterfaceimpl.so needs to link against
63 # libbe *first*, but simply adding it to the library list would add it to
64 # LINKLIBS which is always appended after NEEDLIBS in the command line.
65 LINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
66 LINKFLAGS on libhwinterfaceimpl.so += -lbe ;
68 SharedLibrary libhwinterfaceimpl.so :
69         ViewHWInterface.cpp
70         DWindowHWInterface.cpp
71         MultiLocker.cpp
73 #       trace.c
74         : libhwinterface.so
77 local decorator_src =
78         DecorManager.cpp
79         Decorator.cpp
80         DefaultDecorator.cpp
81         DefaultWindowBehaviour.cpp
82         MagneticBorder.cpp
83         TabDecorator.cpp
84         WindowBehaviour.cpp
85         ;
87 local font_src =
88         FontCache.cpp
89         FontCacheEntry.cpp
90         FontEngine.cpp
91         FontFamily.cpp
92         FontManager.cpp
93         FontStyle.cpp
94         ;
96 # These files are shared between the test_app_server and the libhwintreface, so
97 # they can talk together.
98 SharedLibrary libtestappserver.so :
99         Angle.cpp
100         ClientMemoryAllocator.cpp
101         CursorData.cpp
102         CursorManager.cpp
103         CursorSet.cpp
104         DesktopListener.cpp
105         DirectWindowInfo.cpp
106         DrawingEngine.cpp
107         DrawState.cpp
108         $(font_src)
109         GlobalSubpixelSettings.cpp
110         HashTable.cpp
111         IntPoint.cpp
112         IntRect.cpp
113         MultiLocker.cpp
114         Overlay.cpp
115         RGBColor.cpp
116         ServerBitmap.cpp
117         ServerCursor.cpp
118         ServerFont.cpp
119         SystemPalette.cpp
121         # drawing
122         PatternHandler.cpp
124 #       trace.c
126         # Misc. Sources
127         ProfileMessageSupport.cpp
128         EventDispatcher.cpp
129         EventStream.cpp
130         TestServerLoopAdapter.cpp
131         MessageLooper.cpp
133         # Decorator
134         $(decorator_src)
136         # Manager Classes
137         BitmapManager.cpp
138         InputManager.cpp
139         ScreenManager.cpp
141         AppServer.cpp
142         Desktop.cpp
143         ServerApp.cpp
144         ServerWindow.cpp
146         # DrawingEngine Classes
147 #       AccelerantBuffer.cpp
148 #       AccelerantHWInterface.cpp
149         BitmapBuffer.cpp
150         BitmapDrawingEngine.cpp
151         drawing_support.cpp
152         MallocBuffer.cpp
154         AlphaMask.cpp
155         AlphaMaskCache.cpp
156         BitmapHWInterface.cpp
157         Canvas.cpp
158         DesktopSettings.cpp
159         Layer.cpp
160         OffscreenServerWindow.cpp
161         OffscreenWindow.cpp
162         PictureBoundingBoxPlayer.cpp
163         RegionPool.cpp
164         Screen.cpp
165         ScreenConfigurations.cpp
166         ServerPicture.cpp
167         View.cpp
168         VirtualScreen.cpp
169         Window.cpp
170         WindowList.cpp
171         Workspace.cpp
172         WorkspacesView.cpp
174         # libraries
175         : be libpainter.a libagg.a libtextencoding.so shared libstackandtile.a
176         liblinprog.a
177         [ BuildFeatureAttribute freetype : library ]
180 Includes [ FGristFiles AppServer.cpp BitmapManager.cpp Canvas.cpp
181         ClientMemoryAllocator.cpp Desktop.cpp DesktopSettings.cpp
182         DrawState.cpp DrawingEngine.cpp ServerApp.cpp
183         ServerBitmap.cpp ServerCursor.cpp ServerFont.cpp ServerPicture.cpp
184         ServerWindow.cpp View.cpp Window.cpp WorkspacesView.cpp
185         $(decorator_src) $(font_src) ]
186         : [ BuildFeatureAttribute freetype : headers ] ;
189 AddResources test_app_server : test_app_server.rdef ;
191 Server test_app_server :
193         # drawing
194         drawing_support.cpp
196         # libraries
197         :
198         [ BuildFeatureAttribute zlib : library ] libtestappserver.so be
199         libhwinterface.so libhwinterfaceimpl.so libtextencoding.so
200         [ BuildFeatureAttribute freetype : library ]
201         [ TargetLibstdc++ ] [ TargetLibsupc++ ]
204 # install in the test dir
205 HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
206         : libtestappserver.so libbe_test.so
207         libhwinterface.so libhwinterfaceimpl.so libtextencoding.so
208         : tests!apps ;
210 HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : test_app_server
211         : tests!apps ;
213 } # if $(TARGET_PLATFORM) = libbe_test
215 SubInclude HAIKU_TOP src tests servers app archived_view ;
216 SubInclude HAIKU_TOP src tests servers app async_drawing ;
217 SubInclude HAIKU_TOP src tests servers app avoid_focus ;
218 SubInclude HAIKU_TOP src tests servers app benchmark ;
219 SubInclude HAIKU_TOP src tests servers app bitmap_bounds ;
220 SubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
221 SubInclude HAIKU_TOP src tests servers app code_to_name ;
222 SubInclude HAIKU_TOP src tests servers app clip_to_picture ;
223 SubInclude HAIKU_TOP src tests servers app constrain_clipping_region ;
224 SubInclude HAIKU_TOP src tests servers app copy_bits ;
225 SubInclude HAIKU_TOP src tests servers app cursor_test ;
226 SubInclude HAIKU_TOP src tests servers app desktop_window ;
227 SubInclude HAIKU_TOP src tests servers app draw_after_children ;
228 SubInclude HAIKU_TOP src tests servers app draw_string_offsets ;
229 SubInclude HAIKU_TOP src tests servers app drawing_debugger ;
230 SubInclude HAIKU_TOP src tests servers app drawing_modes ;
231 SubInclude HAIKU_TOP src tests servers app event_mask ;
232 SubInclude HAIKU_TOP src tests servers app find_view ;
233 SubInclude HAIKU_TOP src tests servers app following ;
234 SubInclude HAIKU_TOP src tests servers app font_spacing ;
235 SubInclude HAIKU_TOP src tests servers app gradients ;
236 SubInclude HAIKU_TOP src tests servers app hide_and_show ;
237 SubInclude HAIKU_TOP src tests servers app idle_test ;
238 SubInclude HAIKU_TOP src tests servers app lagging_get_mouse ;
239 SubInclude HAIKU_TOP src tests servers app lock_focus ;
240 SubInclude HAIKU_TOP src tests servers app look_and_feel ;
241 SubInclude HAIKU_TOP src tests servers app menu_crash ;
242 SubInclude HAIKU_TOP src tests servers app no_pointer_history ;
243 SubInclude HAIKU_TOP src tests servers app painter ;
244 SubInclude HAIKU_TOP src tests servers app playground ;
245 SubInclude HAIKU_TOP src tests servers app pulsed_drawing ;
246 SubInclude HAIKU_TOP src tests servers app regularapps ;
247 SubInclude HAIKU_TOP src tests servers app resize_limits ;
248 SubInclude HAIKU_TOP src tests servers app scrollbar ;
249 SubInclude HAIKU_TOP src tests servers app scrolling ;
250 SubInclude HAIKU_TOP src tests servers app shape_test ;
251 SubInclude HAIKU_TOP src tests servers app stacktile ;
252 SubInclude HAIKU_TOP src tests servers app statusbar ;
253 SubInclude HAIKU_TOP src tests servers app stress_test ;
254 SubInclude HAIKU_TOP src tests servers app textview ;
255 SubInclude HAIKU_TOP src tests servers app transformation ;
256 SubInclude HAIKU_TOP src tests servers app unit_tests ;
257 SubInclude HAIKU_TOP src tests servers app view_state ;
258 SubInclude HAIKU_TOP src tests servers app view_transit ;
259 SubInclude HAIKU_TOP src tests servers app window_creation ;
260 SubInclude HAIKU_TOP src tests servers app window_invalidation ;
261 SubInclude HAIKU_TOP src tests servers app workspace_activated ;
262 SubInclude HAIKU_TOP src tests servers app workspace_switcher ;