1SubDir HAIKU_TOP src tests kits app bmessenger testapps ; 2 3AddSubDirSupportedPlatforms libbe_test ; 4 5SubDirHdrs [ FDirName $(HAIKU_TOP) src tests kits app common ] ; 6 7local commonObjects = <src!tests!kits!app!common>CommonTestApp.o ; 8 9rule SimpleBMessengerTestApp 10{ 11 # SimpleBMessengerTestApp <sources> : <resources> : <use objects> ; 12 local sources = $(1) ; 13 local resources = $(2) ; 14 local useObjects = $(3) ; 15 local name = $(sources[1]) ; 16 name = $(name:B) ; 17 SimpleBMessengerTestApp2 $(name) : $(sources) : $(resources) 18 : $(useObjects) ; 19} 20 21rule SimpleBMessengerTestApp2 22{ 23 # SimpleBMessengerTestApp <name> : <sources> : <resources> : <use objects> ; 24 local name = $(1) ; 25 local sources = $(2) ; 26 local resources = $(3) ; 27 local useObjects = $(4) ; 28 29 UnitTest $(name) 30 : $(sources) 31 : be [ TargetLibstdc++ ] $(useObjects) 32 : $(resources) 33 ; 34} 35 36rule CopyBMessengerTestApp 37{ 38 # CopyBMessengerTestApp <target> : <source> ; 39 local target = $(1) ; 40 local source = $(2) ; 41 42 MakeLocate $(target) : $(TARGET_UNIT_TEST_DIR) ; 43 File $(target) : $(source) ; 44 MODE on $(target) = $(EXEMODE) ; 45 MimeSet $(target) ; 46} 47 48# BMessenger::BMessenger() test apps 49# 50 51local messengerTestApp1 = [ FGristFiles BMessengerTestApp1$(SUFOBJ) ] ; 52 53SimpleBMessengerTestApp BMessengerTestApp1.cpp : BMessengerTestApp1.rsrc 54 : $(commonObjects) ; 55