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 ProfileMessageSupport.cpp 99 EventDispatcher.cpp 100 EventStream.cpp 101 MessageLooper.cpp 102 PNGDump.cpp 103 RAMLinkMsgReader.cpp 104 105 # Manager Classes 106 BitmapManager.cpp 107 DecorManager.cpp 108 InputManager.cpp 109 ScreenManager.cpp 110 111 AppServer.cpp 112 Desktop.cpp 113 114 ServerApp.cpp 115 ServerWindow.cpp 116 117 # DrawingEngine Classes 118# AccelerantBuffer.cpp 119# AccelerantHWInterface.cpp 120 BitmapBuffer.cpp 121 drawing_support.cpp 122 DrawingEngine.cpp 123 MallocBuffer.cpp 124 UpdateQueue.cpp 125 126 VirtualScreen.cpp 127 BitmapHWInterface.cpp 128 DefaultDecorator.cpp 129 OffscreenServerWindow.cpp 130 OffscreenWindow.cpp 131 RegionPool.cpp 132 Screen.cpp 133 ServerPicture.cpp 134 View.cpp 135 Window.cpp 136 WindowList.cpp 137 Workspace.cpp 138 WorkspacesView.cpp 139 140 # libraries 141 : 142 z libpng.so libhaikuappserver.so libpainter.a be 143 libhwinterface.so libhwinterfaceimpl.so 144 libagg.a libfreetype.so libtextencoding.so 145; 146 147# install in the test dir 148HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR) 149 : libpng.so libhaikuappserver.so libbe_haiku.so libbeadapter.so 150 libhwinterface.so libhwinterfaceimpl.so libfreetype.so 151 libtextencoding.so 152 : tests!apps ; 153 154HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server 155 : tests!apps ; 156 157} # if $(TARGET_PLATFORM) = libbe_test 158 159SubInclude HAIKU_TOP src tests servers app archived_view ; 160SubInclude HAIKU_TOP src tests servers app async_drawing ; 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 constrain_clipping_region ; 166SubInclude HAIKU_TOP src tests servers app copy_bits ; 167SubInclude HAIKU_TOP src tests servers app cursor_test ; 168SubInclude HAIKU_TOP src tests servers app desktop_window ; 169SubInclude HAIKU_TOP src tests servers app draw_after_children ; 170SubInclude HAIKU_TOP src tests servers app drawing_debugger ; 171SubInclude HAIKU_TOP src tests servers app event_mask ; 172SubInclude HAIKU_TOP src tests servers app following ; 173SubInclude HAIKU_TOP src tests servers app idle_test ; 174SubInclude HAIKU_TOP src tests servers app lock_focus ; 175SubInclude HAIKU_TOP src tests servers app look_and_feel ; 176SubInclude HAIKU_TOP src tests servers app menu_crash ; 177SubInclude HAIKU_TOP src tests servers app no_pointer_history ; 178SubInclude HAIKU_TOP src tests servers app painter ; 179SubInclude HAIKU_TOP src tests servers app playground ; 180SubInclude HAIKU_TOP src tests servers app regularapps ; 181SubInclude HAIKU_TOP src tests servers app resize_limits ; 182SubInclude HAIKU_TOP src tests servers app scrollbar ; 183SubInclude HAIKU_TOP src tests servers app scrolling ; 184SubInclude HAIKU_TOP src tests servers app stress_test ; 185SubInclude HAIKU_TOP src tests servers app textview ; 186SubInclude HAIKU_TOP src tests servers app view_state ; 187SubInclude HAIKU_TOP src tests servers app window_creation ; 188SubInclude HAIKU_TOP src tests servers app workspace_activated ; 189SubInclude HAIKU_TOP src tests servers app workspace_switcher ; 190