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 HashTable.cpp 74 IntPoint.cpp 75 IntRect.cpp 76 MultiLocker.cpp 77 Overlay.cpp 78 RGBColor.cpp 79 ServerBitmap.cpp 80 ServerCursor.cpp 81 ServerFont.cpp 82 SystemPalette.cpp 83 84 # drawing 85 PatternHandler.cpp 86 87# trace.c 88 89 # libraries 90 : be libpainter.a libtextencoding.so libfreetype.so libshared.a 91; 92 93AddResources haiku_app_server : app_server.rdef ; 94 95Server haiku_app_server : 96 # Misc. Sources 97 Decorator.cpp 98 DebugInfoManager.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 drawing_support.cpp 123 DrawingEngine.cpp 124 MallocBuffer.cpp 125 UpdateQueue.cpp 126 127 VirtualScreen.cpp 128 BitmapHWInterface.cpp 129 DefaultDecorator.cpp 130 OffscreenServerWindow.cpp 131 OffscreenWindowLayer.cpp 132 RegionPool.cpp 133 ServerPicture.cpp 134 ServerScreen.cpp 135 ViewLayer.cpp 136 WindowLayer.cpp 137 WindowList.cpp 138 Workspace.cpp 139 WorkspacesLayer.cpp 140 141 # libraries 142 : 143 z libpng.so libhaikuappserver.so libpainter.a be 144 libhwinterface.so libhwinterfaceimpl.so 145 libagg.a libfreetype.so libtextencoding.so 146; 147 148# install in the test dir 149HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR) 150 : libpng.so libhaikuappserver.so libbe_haiku.so libbeadapter.so 151 libhwinterface.so libhwinterfaceimpl.so libfreetype.so 152 libtextencoding.so 153 : tests!apps ; 154 155HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server 156 : tests!apps ; 157 158} # if $(TARGET_PLATFORM) = libbe_test 159 160SubInclude HAIKU_TOP src tests servers app archived_view ; 161SubInclude HAIKU_TOP src tests servers app avoid_focus ; 162SubInclude HAIKU_TOP src tests servers app bitmap_bounds ; 163SubInclude HAIKU_TOP src tests servers app bitmap_drawing ; 164SubInclude HAIKU_TOP src tests servers app code_to_name ; 165SubInclude HAIKU_TOP src tests servers app copy_bits ; 166SubInclude HAIKU_TOP src tests servers app cursor_test ; 167SubInclude HAIKU_TOP src tests servers app desktop_window ; 168SubInclude HAIKU_TOP src tests servers app draw_after_children ; 169SubInclude HAIKU_TOP src tests servers app event_mask ; 170SubInclude HAIKU_TOP src tests servers app following ; 171SubInclude HAIKU_TOP src tests servers app idle_test ; 172SubInclude HAIKU_TOP src tests servers app lock_focus ; 173SubInclude HAIKU_TOP src tests servers app look_and_feel ; 174SubInclude HAIKU_TOP src tests servers app menu_crash ; 175SubInclude HAIKU_TOP src tests servers app no_pointer_history ; 176SubInclude HAIKU_TOP src tests servers app painter ; 177SubInclude HAIKU_TOP src tests servers app playground ; 178SubInclude HAIKU_TOP src tests servers app regularapps ; 179SubInclude HAIKU_TOP src tests servers app resize_limits ; 180SubInclude HAIKU_TOP src tests servers app scrolling ; 181SubInclude HAIKU_TOP src tests servers app stress_test ; 182SubInclude HAIKU_TOP src tests servers app textview ; 183SubInclude HAIKU_TOP src tests servers app view_state ; 184SubInclude HAIKU_TOP src tests servers app window_creation ; 185SubInclude HAIKU_TOP src tests servers app workspace_switcher ; 186