xref: /haiku/src/tests/servers/app/Jamfile (revision d3d8b26997fac34a84981e6d2b649521de2cc45a)
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 kernel shared ;
10
11local appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
12
13UseHeaders [ FDirName $(appServerDir) drawing ] ;
14UseHeaders [ FDirName $(appServerDir) drawing Painter ] ;
15UseHeaders [ FDirName $(appServerDir) drawing Painter drawing_modes ] ;
16UseHeaders [ FDirName $(appServerDir) drawing Painter font_support ] ;
17UseFreeTypeHeaders ;
18
19# This overrides the definitions in private/servers/app/ServerConfig.h
20local defines = [ FDefines TEST_MODE=1 ] ;
21	# USE_DIRECT_WINDOW_TEST_MODE=1
22
23SubDirCcFlags $(defines) ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
24SubDirC++Flags $(defines) ; #-fcheck-memory-usage -D_NO_INLINE_ASM ;
25
26SEARCH_SOURCE += $(appServerDir) [ FDirName $(appServerDir) drawing ] ;
27
28SharedLibrary libhwinterface.so :
29	BBitmapBuffer.cpp
30	DWindowBuffer.cpp
31	HWInterface.cpp
32	RGBColor.cpp
33
34	: libhaikuappserver.so be
35;
36
37
38# The reason for this is that libhwinterfaceimpl.so needs to link against
39# libbe *first*, but simply adding it to the library list would add it to
40# LINKLIBS which is always appended after NEEDLIBS in the command line.
41LINKFLAGS on libhwinterfaceimpl.so ?= $(LINKFLAGS) ;
42LINKFLAGS on libhwinterfaceimpl.so += -lbe ;
43
44SharedLibrary libhwinterfaceimpl.so :
45	ViewHWInterface.cpp
46	DWindowHWInterface.cpp
47	MultiLocker.cpp
48
49	: be libhwinterface.so
50;
51
52SharedLibrary libhaikuappserver.so :
53	Angle.cpp
54	ClientMemoryAllocator.cpp
55	CursorData.cpp
56	CursorManager.cpp
57	CursorSet.cpp
58	DesktopSettings.cpp
59	DrawState.cpp
60	FontFamily.cpp
61	FontManager.cpp
62	HashTable.cpp
63	MultiLocker.cpp
64	Overlay.cpp
65	RGBColor.cpp
66	ServerBitmap.cpp
67	ServerCursor.cpp
68	ServerFont.cpp
69	SystemPalette.cpp
70
71	# drawing
72	PatternHandler.cpp
73
74	# libraries
75	: be libtextencoding.so libfreetype.so
76;
77
78AddResources haiku_app_server : app_server.rdef ;
79
80Server haiku_app_server :
81	# Misc. Sources
82	Decorator.cpp
83	DebugInfoManager.cpp
84	PNGDump.cpp
85	RAMLinkMsgReader.cpp
86	MessageLooper.cpp
87	EventDispatcher.cpp
88	EventStream.cpp
89
90	# Manager Classes
91	BitmapManager.cpp
92	DecorManager.cpp
93	InputManager.cpp
94	ScreenManager.cpp
95
96	AppServer.cpp
97	Desktop.cpp
98
99	ServerApp.cpp
100	ServerWindow.cpp
101
102	# DrawingEngine Classes
103	AccelerantBuffer.cpp
104	AccelerantHWInterface.cpp
105	BitmapBuffer.cpp
106	drawing_support.cpp
107	DrawingEngine.cpp
108	MallocBuffer.cpp
109	UpdateQueue.cpp
110
111	VirtualScreen.cpp
112	BitmapHWInterface.cpp
113	DefaultDecorator.cpp
114	OffscreenServerWindow.cpp
115	OffscreenWindowLayer.cpp
116	RegionPool.cpp
117	ServerPicture.cpp
118	ServerScreen.cpp
119	ViewLayer.cpp
120	WindowLayer.cpp
121	WindowList.cpp
122	Workspace.cpp
123	WorkspacesLayer.cpp
124
125	# libraries
126	:
127	z libpng.so libhaikuappserver.so
128	libpainter.a be
129	libhwinterface.so libhwinterfaceimpl.so
130	libagg.a libfreetype.so libtextencoding.so
131;
132
133# install in the test dir
134HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
135	: libpng.so libhaikuappserver.so libbe_haiku.so libbeadapter.so
136	  libhwinterface.so libhwinterfaceimpl.so libfreetype.so
137	  libtextencoding.so
138	: tests!apps ;
139
140HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server
141	: tests!apps ;
142
143} # if $(TARGET_PLATFORM) = libbe_test
144
145SubInclude HAIKU_TOP src tests servers app avoid_focus ;
146SubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
147SubInclude HAIKU_TOP src tests servers app code_to_name ;
148SubInclude HAIKU_TOP src tests servers app copy_bits ;
149SubInclude HAIKU_TOP src tests servers app cursor_test ;
150SubInclude HAIKU_TOP src tests servers app desktop_window ;
151SubInclude HAIKU_TOP src tests servers app event_mask ;
152SubInclude HAIKU_TOP src tests servers app following ;
153SubInclude HAIKU_TOP src tests servers app look_and_feel ;
154SubInclude HAIKU_TOP src tests servers app painter ;
155SubInclude HAIKU_TOP src tests servers app playground ;
156SubInclude HAIKU_TOP src tests servers app resize_limits ;
157SubInclude HAIKU_TOP src tests servers app scrolling ;
158SubInclude HAIKU_TOP src tests servers app stress_test ;
159SubInclude HAIKU_TOP src tests servers app textview ;
160SubInclude HAIKU_TOP src tests servers app regularapps ;
161SubInclude HAIKU_TOP src tests servers app view_state ;
162