diff options
author | Steven Knight <knight@baldmt.com> | 2005-10-13 13:26:39 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-10-13 13:26:39 (GMT) |
commit | 23cba392cd6b316d2e641948954b4e2f001de73b (patch) | |
tree | c6aab9a69e418efb3736aaa92dc5e5952c3511ba /src | |
parent | b66cc02737a68972e1302ea2ce041928a05720d1 (diff) | |
download | SCons-23cba392cd6b316d2e641948954b4e2f001de73b.zip SCons-23cba392cd6b316d2e641948954b4e2f001de73b.tar.gz SCons-23cba392cd6b316d2e641948954b4e2f001de73b.tar.bz2 |
Have the QT UIC Scanner use the env.FindFile method. (Leanid Nazdrynau)
Diffstat (limited to 'src')
-rw-r--r-- | src/CHANGES.txt | 3 | ||||
-rw-r--r-- | src/engine/SCons/Tool/qt.py | 18 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 39c0c8a..e49d391 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -431,6 +431,9 @@ RELEASE 0.97 - XXX - Fix the Java parser's handling of backslashes in strings. + - Fix the Qt UIC scanner to work with generated .ui files (by using + the FindFile() function instead of checking by-hand for the file). + From Christian Neeb: - Fix the Java parser's handling of string definitions to avoid ignoring diff --git a/src/engine/SCons/Tool/qt.py b/src/engine/SCons/Tool/qt.py index 04b6215..5077901 100644 --- a/src/engine/SCons/Tool/qt.py +++ b/src/engine/SCons/Tool/qt.py @@ -219,19 +219,17 @@ def uicEmitter(target, source, env): return target, source def uicScannerFunc(node, env, path): - #print "uicScannerFunc" dir = node.dir + lookout = [] + lookout.extend(env['CPPPATH']) + lookout.append(str(node.rfile().dir)) includes = re.findall("<include.*?>(.*?)</include>", node.get_contents()) - res = [] + result = [] for incFile in includes: - incNode = dir.File(incFile) - if incNode.rexists(): - #print "uicdep: ", incNode - res.append(dir.File(incFile)) - else: - #print "uicdep: ", incNode, "not found" - pass - return res + dep = env.FindFile(incFile,lookout) + if dep: + result.append(dep) + return result uicScanner = SCons.Scanner.Scanner(uicScannerFunc, name = "UicScanner", |