xref: /haiku/src/tests/servers/registrar/Jamfile (revision d9cebac2b77547b7064f22497514eecd2d047160)
1SubDir HAIKU_TOP src tests servers registrar ;
2
3UsePublicHeaders [ FDirName add-ons registrar ] ;
4UseArchHeaders $(TARGET_ARCH) ;
5
6# some test programs
7
8SetSubDirSupportedPlatformsBeOSCompatible ;
9
10SimpleTest RegistrarTest1
11	: RegistrarTest1.cpp
12	: be
13;
14
15SimpleTest RosterShell
16	: RosterShell.cpp
17	: be $(TARGET_LIBSTDC++)
18;
19
20SimpleTest message_deliverer_test : message_deliverer_test.cpp : be ;
21
22
23# libbe_test related stuff
24
25SetSubDirSupportedPlatforms libbe_test ;
26
27SimpleTest run_haiku_registrar
28	: run_haiku_registrar.cpp
29	: be
30;
31
32# a shutdown working with the emulation under R5
33UsePrivateHeaders app ;
34UsePrivateHeaders kernel ;
35
36SimpleTest <test>shutdown
37	: shutdown.cpp
38	: be ;
39
40SEARCH on [ FGristFiles shutdown.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ;
41
42# Two small test apps for testing the shutdown process.
43
44SimpleTest no_shutdown_reply
45	: no_shutdown_reply.cpp
46	: be
47;
48
49SimpleTest negative_shutdown_reply
50	: negative_shutdown_reply.cpp
51	: be
52;
53
54SimpleTest user_shutdown_reply
55	: user_shutdown_reply.cpp
56	: be
57;
58
59
60# the registrar itself
61
62UsePrivateHeaders app ;
63UsePrivateHeaders kernel ;
64UsePrivateHeaders shared ;
65UsePrivateHeaders storage ;
66UsePrivateHeaders tracker ;
67
68SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src servers registrar ] ;
69
70Server haiku_registrar
71 	:
72	AppInfoList.cpp
73	AppInfoListMessagingTargetSet.cpp
74	Clipboard.cpp
75	ClipboardHandler.cpp
76	Event.cpp
77	EventMaskWatcher.cpp
78	EventQueue.cpp
79	MessageDeliverer.cpp
80	MessageEvent.cpp
81	MessageHandler.cpp
82	MessageRunnerManager.cpp
83	MessagingService.cpp
84	MIMEManager.cpp
85	PriorityMessageQueue.cpp
86	RecentApps.cpp
87	RecentEntries.cpp
88	Registrar.cpp
89	RosterAppInfo.cpp
90	RosterSettingsCharStream.cpp
91	ShutdownProcess.cpp
92	TextSnifferAddon.cpp
93	TRoster.cpp
94	Watcher.cpp
95	WatchingService.cpp
96
97	R5Compatibility.cpp
98	:
99	be
100	$(TARGET_LIBSTDC++)
101	:
102	registrar.rdef
103;
104
105if $(TARGET_PLATFORM) = libbe_test {
106	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_registrar
107		: tests!apps ;
108	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : run_haiku_registrar
109		: tests!apps ;
110}
111