1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src tests servers app ; 2338b8dc3SIngo Weinhold 31d219b3aSAxel DörflerUsePrivateHeaders app graphics input interface shared storage ; 41d219b3aSAxel Dörfler 51d219b3aSAxel DörflerSimpleTest app_server_debug : 61d219b3aSAxel Dörfler app_server_debug.cpp 71d219b3aSAxel Dörfler : be 81d219b3aSAxel Dörfler; 91d219b3aSAxel Dörfler 10ca9e5772SIngo WeinholdSetSubDirSupportedPlatforms libbe_test ; 11338b8dc3SIngo Weinhold 12ca9e5772SIngo Weinhold# No need to define any of those targets, when not building for libbe_test 13ca9e5772SIngo Weinholdif $(TARGET_PLATFORM) = libbe_test { 14ee5f6d23SStephan Aßmus 157c6bff17SIngo WeinholdUseLibraryHeaders agg png ; 167c6bff17SIngo WeinholdUseBuildFeatureHeaders zlib ; 173ee83016SIngo WeinholdUsePrivateHeaders [ FDirName graphics common ] ; 183111f163SIngo Weinhold 193111f163SIngo Weinhold# headers/build/private/kernel is needed for safemode.h and syscalls.h. 203111f163SIngo Weinhold# headers/private/kernel for the util/* stuff. 213111f163SIngo WeinholdUseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ; 2212776185SAxel DörflerUsePrivateHeaders kernel support ; 232826a379SIngo Weinhold 24338b8dc3SIngo Weinholdlocal appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ; 252826a379SIngo Weinhold 2612776185SAxel DörflerUseHeaders [ FDirName $(appServerDir) decorator ] ; 272826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing ] ; 288e7d9c72SAdrien DestuguesUseHeaders [ FDirName $(appServerDir) drawing interface html5 ] ; 298e7d9c72SAdrien DestuguesUseHeaders [ FDirName $(appServerDir) drawing interface remote ] ; 302826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter ] ; 312826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ; 322826a379SIngo WeinholdUseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ; 3312776185SAxel DörflerUseHeaders [ FDirName $(appServerDir) font ] ; 3412776185SAxel DörflerUseHeaders [ FDirName $(appServerDir) stackandtile ] ; 3529f8805fSIngo WeinholdUseBuildFeatureHeaders freetype ; 3612776185SAxel DörflerUseLibraryHeaders agg lp_solve linprog ; 372826a379SIngo Weinhold 388b794301SAxel Dörfler# This overrides the definitions in private/servers/app/ServerConfig.h 398b794301SAxel Dörflerlocal defines = [ FDefines TEST_MODE=1 ] ; 40bd09e99dSAxel Dörfler # USE_DIRECT_WINDOW_TEST_MODE=1 418b794301SAxel Dörfler 42264fe59dSStephan AßmusSubDirCcFlags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ; 43264fe59dSStephan AßmusSubDirC++Flags $(defines) ; #-finstrument-functions ; #-fcheck-memory-usage -D_NO_INLINE_ASM ; 448b794301SAxel Dörfler 453f3c9fddSStephan AßmusSEARCH_SOURCE += $(appServerDir) ; 4612776185SAxel DörflerSEARCH_SOURCE += [ FDirName $(appServerDir) decorator ] ; 473f3c9fddSStephan AßmusSEARCH_SOURCE += [ FDirName $(appServerDir) drawing ] ; 483f3c9fddSStephan AßmusSEARCH_SOURCE += [ FDirName $(appServerDir) drawing Painter ] ; 4912776185SAxel DörflerSEARCH_SOURCE += [ FDirName $(appServerDir) font ] ; 502826a379SIngo Weinhold 51338b8dc3SIngo WeinholdSharedLibrary libhwinterface.so : 52a41a0db6SIngo Weinhold BBitmapBuffer.cpp 53c2270088SStephan Aßmus DWindowBuffer.cpp 542826a379SIngo Weinhold HWInterface.cpp 55c2270088SStephan Aßmus RGBColor.cpp 563f3c9fddSStephan Aßmus UpdateQueue.cpp 572826a379SIngo Weinhold 582c69b5b6SAxel Dörfler : libtestappserver.so 592826a379SIngo Weinhold; 602826a379SIngo Weinhold 612826a379SIngo Weinhold 622826a379SIngo Weinhold# The reason for this is that libhwinterfaceimpl.so needs to link against 632826a379SIngo Weinhold# libbe *first*, but simply adding it to the library list would add it to 642826a379SIngo Weinhold# LINKLIBS which is always appended after NEEDLIBS in the command line. 652826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ; 662826a379SIngo WeinholdLINKFLAGS on libhwinterfaceimpl.so += -lbe ; 672826a379SIngo Weinhold 68338b8dc3SIngo WeinholdSharedLibrary libhwinterfaceimpl.so : 69a41a0db6SIngo Weinhold ViewHWInterface.cpp 70c2270088SStephan Aßmus DWindowHWInterface.cpp 7104768381SAxel Dörfler MultiLocker.cpp 722826a379SIngo Weinhold 73264fe59dSStephan Aßmus# trace.c 742c69b5b6SAxel Dörfler : libhwinterface.so 752826a379SIngo Weinhold; 762826a379SIngo Weinhold 778e8869a9SStephan Aßmuslocal decorator_src = 788e8869a9SStephan Aßmus DecorManager.cpp 798e8869a9SStephan Aßmus Decorator.cpp 808e8869a9SStephan Aßmus DefaultDecorator.cpp 818e8869a9SStephan Aßmus DefaultWindowBehaviour.cpp 828e8869a9SStephan Aßmus MagneticBorder.cpp 83cb7de03cSStephan Aßmus TabDecorator.cpp 848e8869a9SStephan Aßmus WindowBehaviour.cpp 858e8869a9SStephan Aßmus ; 868e8869a9SStephan Aßmus 878e8869a9SStephan Aßmuslocal font_src = 888e8869a9SStephan Aßmus FontCache.cpp 898e8869a9SStephan Aßmus FontCacheEntry.cpp 908e8869a9SStephan Aßmus FontEngine.cpp 918e8869a9SStephan Aßmus FontFamily.cpp 928e8869a9SStephan Aßmus FontManager.cpp 938e8869a9SStephan Aßmus FontStyle.cpp 948e8869a9SStephan Aßmus ; 958e8869a9SStephan Aßmus 96c2dcc4d5SAdrien Destugues# These files are shared between the test_app_server and the libhwintreface, so 97c2dcc4d5SAdrien Destugues# they can talk together. 982c69b5b6SAxel DörflerSharedLibrary libtestappserver.so : 992826a379SIngo Weinhold Angle.cpp 1009a44fdc9SAxel Dörfler ClientMemoryAllocator.cpp 1012826a379SIngo Weinhold CursorData.cpp 102640b841dSAxel Dörfler CursorManager.cpp 1032826a379SIngo Weinhold CursorSet.cpp 10412776185SAxel Dörfler DesktopListener.cpp 10519b850b3SStephan Aßmus DirectWindowInfo.cpp 106f74afb82SAxel Dörfler DrawingEngine.cpp 107aca4f50dSAxel Dörfler DrawState.cpp 1088e8869a9SStephan Aßmus $(font_src) 10959e13a3fSStephan Aßmus GlobalSubpixelSettings.cpp 11068e424c8SAdi Oanca HashTable.cpp 111264fe59dSStephan Aßmus IntPoint.cpp 112264fe59dSStephan Aßmus IntRect.cpp 11304768381SAxel Dörfler MultiLocker.cpp 1140ac013e6SAxel Dörfler Overlay.cpp 1152826a379SIngo Weinhold RGBColor.cpp 1162826a379SIngo Weinhold ServerBitmap.cpp 1172826a379SIngo Weinhold ServerCursor.cpp 1182826a379SIngo Weinhold ServerFont.cpp 1192826a379SIngo Weinhold SystemPalette.cpp 1202826a379SIngo Weinhold 1212826a379SIngo Weinhold # drawing 1222826a379SIngo Weinhold PatternHandler.cpp 1232826a379SIngo Weinhold 124264fe59dSStephan Aßmus# trace.c 125264fe59dSStephan Aßmus 1262826a379SIngo Weinhold # Misc. Sources 12767f3be42SStephan Aßmus ProfileMessageSupport.cpp 1280e29f57aSAxel Dörfler EventDispatcher.cpp 1290e29f57aSAxel Dörfler EventStream.cpp 13067f3be42SStephan Aßmus MessageLooper.cpp 1312826a379SIngo Weinhold 132f74afb82SAxel Dörfler # Decorator 1338e8869a9SStephan Aßmus $(decorator_src) 134f74afb82SAxel Dörfler 1352826a379SIngo Weinhold # Manager Classes 136be05d56cSAxel Dörfler BitmapManager.cpp 137f7598223SAxel Dörfler InputManager.cpp 1382826a379SIngo Weinhold ScreenManager.cpp 1392826a379SIngo Weinhold 1402826a379SIngo Weinhold AppServer.cpp 1412826a379SIngo Weinhold Desktop.cpp 1422826a379SIngo Weinhold ServerApp.cpp 1432826a379SIngo Weinhold ServerWindow.cpp 1442826a379SIngo Weinhold 145fcd75d63SStephan Aßmus # DrawingEngine Classes 146d3f08e7fSStephan Aßmus# AccelerantBuffer.cpp 147d3f08e7fSStephan Aßmus# AccelerantHWInterface.cpp 1482826a379SIngo Weinhold BitmapBuffer.cpp 149ae50fc51SIngo Weinhold BitmapDrawingEngine.cpp 150dd98ed8dSStephan Aßmus drawing_support.cpp 1512826a379SIngo Weinhold MallocBuffer.cpp 1522826a379SIngo Weinhold 15335d6e0feSAdrien Destugues AlphaMask.cpp 1542826a379SIngo Weinhold BitmapHWInterface.cpp 155ab1bd2fdSJulian Harnath Canvas.cpp 156c2dcc4d5SAdrien Destugues DesktopSettings.cpp 1572826a379SIngo Weinhold OffscreenServerWindow.cpp 158437b1927SAxel Dörfler OffscreenWindow.cpp 15939c9925fSStephan Aßmus RegionPool.cpp 160437b1927SAxel Dörfler Screen.cpp 16119b850b3SStephan Aßmus ScreenConfigurations.cpp 1622826a379SIngo Weinhold ServerPicture.cpp 163437b1927SAxel Dörfler View.cpp 164c2dcc4d5SAdrien Destugues VirtualScreen.cpp 165437b1927SAxel Dörfler Window.cpp 166e83820edSAxel Dörfler WindowList.cpp 1672826a379SIngo Weinhold Workspace.cpp 168437b1927SAxel Dörfler WorkspacesView.cpp 1692826a379SIngo Weinhold 17035d6e0feSAdrien Destugues # libraries 171fe868323SAdrien Destugues : be libpainter.a libagg.a libtextencoding.so libshared.a libstackandtile.a 172fe868323SAdrien Destugues liblinprog.a 17335d6e0feSAdrien Destugues [ BuildFeatureAttribute freetype : library ] 17435d6e0feSAdrien Destugues; 17535d6e0feSAdrien Destugues 176ab1bd2fdSJulian HarnathIncludes [ FGristFiles AppServer.cpp BitmapManager.cpp Canvas.cpp 1778e8869a9SStephan Aßmus ClientMemoryAllocator.cpp Desktop.cpp DesktopSettings.cpp 178ab1bd2fdSJulian Harnath DrawState.cpp DrawingEngine.cpp ServerApp.cpp 1798e8869a9SStephan Aßmus ServerBitmap.cpp ServerCursor.cpp ServerFont.cpp ServerPicture.cpp 1808e8869a9SStephan Aßmus ServerWindow.cpp View.cpp Window.cpp WorkspacesView.cpp 1818e8869a9SStephan Aßmus $(decorator_src) $(font_src) ] 1828e8869a9SStephan Aßmus : [ BuildFeatureAttribute freetype : headers ] ; 1838e8869a9SStephan Aßmus 1848e8869a9SStephan Aßmus 18535d6e0feSAdrien DestuguesAddResources test_app_server : test_app_server.rdef ; 18635d6e0feSAdrien Destugues 18735d6e0feSAdrien DestuguesServer test_app_server : 18835d6e0feSAdrien Destugues 18935d6e0feSAdrien Destugues # drawing 19035d6e0feSAdrien Destugues drawing_support.cpp 191f74afb82SAxel Dörfler 1922826a379SIngo Weinhold # libraries 1932826a379SIngo Weinhold : 1947c6bff17SIngo Weinhold [ BuildFeatureAttribute zlib : library ] libtestappserver.so be 19535d6e0feSAdrien Destugues libhwinterface.so libhwinterfaceimpl.so libtextencoding.so 1968e7d9c72SAdrien Destugues [ BuildFeatureAttribute freetype : library ] 197220d0402SOliver Tappe [ TargetLibstdc++ ] [ TargetLibsupc++ ] 1982826a379SIngo Weinhold; 1992826a379SIngo Weinhold 200338b8dc3SIngo Weinhold# install in the test dir 201338b8dc3SIngo WeinholdHaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR) 2022c69b5b6SAxel Dörfler : libtestappserver.so libbe_test.so 2038e7d9c72SAdrien Destugues libhwinterface.so libhwinterfaceimpl.so libtextencoding.so 204338b8dc3SIngo Weinhold : tests!apps ; 205338b8dc3SIngo Weinhold 2062c69b5b6SAxel DörflerHaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : test_app_server 207338b8dc3SIngo Weinhold : tests!apps ; 208338b8dc3SIngo Weinhold 209ca9e5772SIngo Weinhold} # if $(TARGET_PLATFORM) = libbe_test 2102826a379SIngo Weinhold 2119813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app archived_view ; 212ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app async_drawing ; 2137362a1d7SAxel DörflerSubInclude HAIKU_TOP src tests servers app avoid_focus ; 2147c265858SStephan AßmusSubInclude HAIKU_TOP src tests servers app benchmark ; 2159813f97fSStephan AßmusSubInclude HAIKU_TOP src tests servers app bitmap_bounds ; 216338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app bitmap_drawing ; 217c3b8f9f6SAxel DörflerSubInclude HAIKU_TOP src tests servers app code_to_name ; 21870ebf47bSAdrien DestuguesSubInclude HAIKU_TOP src tests servers app clip_to_picture ; 219ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app constrain_clipping_region ; 220338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app copy_bits ; 221da07353dSAxel DörflerSubInclude HAIKU_TOP src tests servers app cursor_test ; 22294dc3ed6SAxel DörflerSubInclude HAIKU_TOP src tests servers app desktop_window ; 22311dbc914SStephan AßmusSubInclude HAIKU_TOP src tests servers app draw_after_children ; 22477e5acc0SStephan AßmusSubInclude HAIKU_TOP src tests servers app draw_string_offsets ; 2253c905d81SMichael LotzSubInclude HAIKU_TOP src tests servers app drawing_debugger ; 2263d75dfbbSMichael LotzSubInclude HAIKU_TOP src tests servers app drawing_modes ; 227fc505229SAxel DörflerSubInclude HAIKU_TOP src tests servers app event_mask ; 2285ae0bbaaSStephan AßmusSubInclude HAIKU_TOP src tests servers app find_view ; 229dd98ed8dSStephan AßmusSubInclude HAIKU_TOP src tests servers app following ; 230cb7de03cSStephan AßmusSubInclude HAIKU_TOP src tests servers app font_spacing ; 2311f3acfaaSAdrien DestuguesSubInclude HAIKU_TOP src tests servers app gradients ; 232ea5c7202SAxel DörflerSubInclude HAIKU_TOP src tests servers app hide_and_show ; 23309f147fbSJérôme DuvalSubInclude HAIKU_TOP src tests servers app idle_test ; 234d36ae78cSStephan AßmusSubInclude HAIKU_TOP src tests servers app lagging_get_mouse ; 2353ecd9d8fSAxel DörflerSubInclude HAIKU_TOP src tests servers app lock_focus ; 236a7e6679bSAxel DörflerSubInclude HAIKU_TOP src tests servers app look_and_feel ; 2374c751e51SAxel DörflerSubInclude HAIKU_TOP src tests servers app menu_crash ; 238ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app no_pointer_history ; 239338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app painter ; 240338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app playground ; 241f9ba150bSMichael LotzSubInclude HAIKU_TOP src tests servers app pulsed_drawing ; 242ffdeb47bSAxel DörflerSubInclude HAIKU_TOP src tests servers app regularapps ; 243338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app resize_limits ; 244ce158b43SStephan AßmusSubInclude HAIKU_TOP src tests servers app scrollbar ; 245338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app scrolling ; 24676ab3f88SStephan AßmusSubInclude HAIKU_TOP src tests servers app shape_test ; 247*afc5d438SAdrien DestuguesSubInclude HAIKU_TOP src tests servers app stacktile ; 248d36ae78cSStephan AßmusSubInclude HAIKU_TOP src tests servers app statusbar ; 249e7df4a48SStephan AßmusSubInclude HAIKU_TOP src tests servers app stress_test ; 250338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src tests servers app textview ; 25108e109e5SStephan AßmusSubInclude HAIKU_TOP src tests servers app transformation ; 252ad53a0d9SJulian HarnathSubInclude HAIKU_TOP src tests servers app unit_tests ; 253e0d7d87fSAxel DörflerSubInclude HAIKU_TOP src tests servers app view_state ; 25461e7172dSStephan AßmusSubInclude HAIKU_TOP src tests servers app view_transit ; 255ecef598eSStefano CeccheriniSubInclude HAIKU_TOP src tests servers app window_creation ; 256e527d809SAxel DörflerSubInclude HAIKU_TOP src tests servers app window_invalidation ; 257f0b714c8SAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_activated ; 2581214ef1bSAxel DörflerSubInclude HAIKU_TOP src tests servers app workspace_switcher ; 259