xref: /haiku/src/tests/kits/app/broster/testapps/Jamfile (revision 87e8603d9f4cecce2250564deb85bc2ef5c23bfa)
1SubDir HAIKU_TOP src tests kits app broster testapps ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4AddSubDirSupportedPlatforms libbe_test ;
5
6#SubDirHdrs [ FDirName $(HAIKU_TOP) src tests kits app common ] ;
7SubDirHdrs [ FDirName $(HAIKU_TOP) src tests kits app broster ] ;
8
9UsePrivateHeaders app ;
10
11#local commonObjects = <src!tests!kits!app!common>CommonTestApp$(SUFOBJ) ;
12
13rule SimpleBRosterTestApp
14{
15	# SimpleBRosterTestApp <sources> : <resources> : <use objects> ;
16	local sources = $(1) ;
17	local resources = $(2) ;
18	local useObjects = $(3) ;
19	local name = $(sources[1]) ;
20	name = $(name:B) ;
21	SimpleBRosterTestApp2 $(name) : $(sources) : $(resources) : $(useObjects) ;
22}
23
24rule SimpleBRosterTestApp2
25{
26	# SimpleBRosterTestApp <name> : <sources> : <resources> : <use objects> ;
27	local name = $(1) ;
28	local sources = $(2) ;
29	local resources = $(3) ;
30	local useObjects = $(4) ;
31
32	UnitTest $(name)
33		: $(sources)
34		: be [ TargetLibstdc++ ] $(useObjects)
35		: $(resources)
36	;
37}
38
39rule CopyBRosterTestApp
40{
41	# CopyBRosterTestApp  <target> : <source> ;
42	local target = $(1) ;
43	local source = $(2) ;
44
45	MakeLocate $(target) : $(TARGET_UNIT_TEST_DIR) ;
46	File $(target) : $(source) ;
47	MODE on $(target) = $(EXEMODE) ;
48	MimeSet $(target) ;
49}
50
51# BRoster::Launch() test apps
52#
53
54SimpleBRosterTestApp RecentAppsTestQualifyingApp.cpp RecentAppsTestApp.cpp ;
55SimpleBRosterTestApp RecentAppsTestNonQualifyingApp.cpp RecentAppsTestApp.cpp ;
56SimpleBRosterTestApp RecentAppsTestEmptyApp.cpp RecentAppsTestApp.cpp ;
57SimpleBRosterTestApp RecentAppsTestControlApp.cpp RecentAppsTestApp.cpp ;
58SimpleBRosterTestApp RosterBroadcastTestApp1.cpp ;
59SimpleBRosterTestApp RosterLaunchTestApp1.cpp ;
60SimpleBRosterTestApp RosterWatchingTestApp1.cpp ;
61