# copyright John Maddock 2003 subproject libs/regex/example ; # bring in the rules for testing import testing ; # # test for MFC by looking inside VC++ include directories: # if ! $(gMFC_CHECK) { gMFC_CHECK = true ; if $(VS71COMNTOOLS) { VS71COMNTOOLS = $(VS71COMNTOOLS:J=" ") ; if [ GLOB $(VS71COMNTOOLS)..\\..\\VC7\\atlmfc\\include : cstringt.h ] { ECHO MFC/ATL regex wrappers will be tested when building with VC7.1 ; REGEX_MFC_OPTS += "<*>TEST_MFC=1" ; } } if $(VSCOMNTOOLS) { VSCOMNTOOLS = $(VSCOMNTOOLS:J=" ") ; if [ GLOB $(VSCOMNTOOLS)\\..\\..\\VC7\\atlmfc\\include : cstringt.h ] { ECHO MFC/ATL regex wrappers will be tested when building with VC7 ; REGEX_MFC_OPTS += "<*>TEST_MFC=1" ; REGEX_MFC_OPTS += "<*>TEST_MFC=1" ; REGEX_MFC_OPTS += "<*>TEST_MFC=1" ; REGEX_MFC_OPTS += "<*>TEST_MFC=1" ; } } if $(VS80COMNTOOLS) { VS80COMNTOOLS = $(VS80COMNTOOLS:J=" ") ; if [ GLOB $(VS80COMNTOOLS)..\\..\\VC8\\atlmfc\\include : cstringt.h ] { ECHO MFC/ATL regex wrappers will be tested when building with VC8 ; REGEX_MFC_OPTS += "<*>TEST_MFC=1" ; } } } rule regex-test-run ( sources + : input * : requirements * ) { return [ run # sources $(sources)