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