| Index: third_party/scons/scons-local/SCons/Tool/qt.py
|
| ===================================================================
|
| --- third_party/scons/scons-local/SCons/Tool/qt.py (revision 9094)
|
| +++ third_party/scons/scons-local/SCons/Tool/qt.py (working copy)
|
| @@ -10,7 +10,7 @@
|
| """
|
|
|
| #
|
| -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation
|
| +# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation
|
| #
|
| # Permission is hereby granted, free of charge, to any person obtaining
|
| # a copy of this software and associated documentation files (the
|
| @@ -32,7 +32,7 @@
|
| # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| #
|
|
|
| -__revision__ = "src/engine/SCons/Tool/qt.py 3842 2008/12/20 22:59:52 scons"
|
| +__revision__ = "src/engine/SCons/Tool/qt.py 3897 2009/01/13 06:45:54 scons"
|
|
|
| import os.path
|
| import re
|
| @@ -138,8 +138,8 @@
|
| print "scons: qt: '%s' is no cxx file. Discarded." % str(cpp)
|
| # c or fortran source
|
| continue
|
| - #cpp_contents = comment.sub('', cpp.get_contents())
|
| - cpp_contents = cpp.get_contents()
|
| + #cpp_contents = comment.sub('', cpp.get_text_contents())
|
| + cpp_contents = cpp.get_text_contents()
|
| h=None
|
| for h_ext in header_extensions:
|
| # try to find the header file in the corresponding source
|
| @@ -149,8 +149,8 @@
|
| if h:
|
| if debug:
|
| print "scons: qt: Scanning '%s' (header of '%s')" % (str(h), str(cpp))
|
| - #h_contents = comment.sub('', h.get_contents())
|
| - h_contents = h.get_contents()
|
| + #h_contents = comment.sub('', h.get_text_contents())
|
| + h_contents = h.get_text_contents()
|
| break
|
| if not h and debug:
|
| print "scons: qt: no header for '%s'." % (str(cpp))
|
| @@ -221,7 +221,7 @@
|
| lookout = []
|
| lookout.extend(env['CPPPATH'])
|
| lookout.append(str(node.rfile().dir))
|
| - includes = re.findall("<include.*?>(.*?)</include>", node.get_contents())
|
| + includes = re.findall("<include.*?>(.*?)</include>", node.get_text_contents())
|
| result = []
|
| for incFile in includes:
|
| dep = env.FindFile(incFile,lookout)
|
|
|