# Sconstruct file for P4OfficeDiff import string, os, re, glob, pprint def filename(p): # Return filename bit return os.path.split(p)[1] VB6 = r'"C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.exe"' MSBUILD = r'"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"' INNOSETUP = r'"C:\Program Files (x86)\Inno Setup 5\iscc.exe"' #--------------------------------- # Also VB scanner for dependencies like: # Module=Register; Register.bas # Form=TimerForm.frm # Form=p4vbTestForm.frm # Class=WinHelp; WinHelp.cls vbp_module_re = re.compile(r'^Module=\S+; (\S+)\s*$', re.M) vbp_form_re = re.compile(r'^Form=(\S+)\s*$', re.M) vbp_class_re = re.compile(r'^Class=\S+; (\S+)\s*$', re.M) def vbp_scan(node, env, target, arg): contents = node.get_contents() includes = vbp_module_re.findall(contents) includes += vbp_form_re.findall(contents) includes += vbp_class_re.findall(contents) return includes vbpscan = Scanner(name = 'vbp', function = vbp_scan, argument = None, skeys = ['.vbp']) scanners = Environment().Dictionary('SCANNERS') #--------------------------------- # Scan MSDEV SLN file for dependencies vcxproj_re = re.compile(r'