xref: /haiku/src/tests/kits/app/broster/testapps/Jamfile (revision e79e4e7c9e432c90415f79809b7160e864f79001)
1SubDir OBOS_TOP src tests kits app broster testapps ;
2
3#SubDirHdrs [ FDirName $(OBOS_TOP) src tests kits app common ] ;
4SubDirHdrs [ FDirName $(OBOS_TOP) src tests kits app broster ] ;
5
6UsePrivateHeaders app ;
7
8#local commonObjects = <src!tests!kits!app!common>CommonTestApp$(SUFOBJ) ;
9
10rule SimpleBRosterTestApp
11{
12	# SimpleBRosterTestApp <sources> : <resources> : <use objects> ;
13	local sources = $(1) ;
14	local resources = $(2) ;
15	local useObjects = $(3) ;
16	local name = $(sources[1]) ;
17	name = $(name:B) ;
18	SimpleBRosterTestApp2 $(name) : $(sources) : $(resources) : $(useObjects) ;
19}
20
21rule SimpleBRosterTestApp2
22{
23	# SimpleBRosterTestApp <name> : <sources> : <resources> : <use objects> ;
24	local name = $(1) ;
25	local sources = $(2) ;
26	local resources = $(3) ;
27	local useObjects = $(4) ;
28	local r5name = $(name)_r5 ;
29
30	local useR5Objects ;
31	local object ;
32	for object in $(useObjects) {
33		useR5Objects += $(object:B=$(object:B)_r5) ;
34	}
35
36	if $(resources) {
37		AddResources $(name) : $(resources) ;
38		AddResources $(r5name) : $(resources) ;
39	}
40	CommonUnitTest $(name)
41		: $(sources)
42		: kits app
43		: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects)
44		: be stdc++.r4 $(useR5Objects)
45		: app support
46	;
47}
48
49rule CopyBRosterTestApp
50{
51	# CopyBRosterTestApp  <target> : <source> ;
52	local target = $(1) ;
53	local source = $(2) ;
54	local r5target = $(target)_r5 ;
55	local r5source = $(source)_r5 ;
56	MakeLocate $(target) : [ FDirName $(OBOS_TEST_DIR) kits app ] ;
57	MakeLocate $(r5target) : [ FDirName $(OBOS_TEST_DIR) kits app ] ;
58	File $(target) : $(source) ;
59	File $(r5target) : $(r5source) ;
60	local file ;
61	for file in $(target) $(r5target) {
62		MODE on $(file) = $(EXEMODE) ;
63		MimeSet $(file) ;
64	}
65}
66
67# BRoster::Launch() test apps
68#
69
70SimpleBRosterTestApp RecentAppsTestQualifyingApp.cpp RecentAppsTestApp.cpp ;
71SimpleBRosterTestApp RecentAppsTestNonQualifyingApp.cpp RecentAppsTestApp.cpp ;
72SimpleBRosterTestApp RecentAppsTestEmptyApp.cpp RecentAppsTestApp.cpp ;
73SimpleBRosterTestApp RecentAppsTestControlApp.cpp RecentAppsTestApp.cpp ;
74SimpleBRosterTestApp RosterBroadcastTestApp1.cpp ;
75SimpleBRosterTestApp RosterLaunchTestApp1.cpp ;
76SimpleBRosterTestApp RosterWatchingTestApp1.cpp ;
77