summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 23:05:21 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 23:05:21 +0000
commit942ba283b3d147f211e4995ee0a5c9cec8071aab (patch)
tree3d3f2e3690a0e1f13adb305a2c3425462e29bcf1
parent2c031b9efbee6f55faf84b465cffb60ceb83afaf (diff)
downloadchromium_src-942ba283b3d147f211e4995ee0a5c9cec8071aab.zip
chromium_src-942ba283b3d147f211e4995ee0a5c9cec8071aab.tar.gz
chromium_src-942ba283b3d147f211e4995ee0a5c9cec8071aab.tar.bz2
Fix harmless warning in setup_third_party that was causing all
of the forwarding headers for webkit to be reported as missing. R=tony@chromium.org BUG=107444 TEST="missing file" warnings gone from build.webkit.org win bots Review URL: http://codereview.chromium.org/8933019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114519 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/support/setup_third_party.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/support/setup_third_party.py b/webkit/support/setup_third_party.py
index f3cf719..7b802c5 100644
--- a/webkit/support/setup_third_party.py
+++ b/webkit/support/setup_third_party.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -14,7 +14,10 @@ def GetHeaderFilesInDir(dir_path):
"""Return a list of all header files in dir_path."""
all_files = []
for root, dirs, files in os.walk(dir_path):
- all_files.extend([os.path.join(root, f) for f in files if f.endswith('.h')])
+ # Normalize windows paths to unix-style if necessary as gyp can get
+ # confused if a mix of forward- and backwards-separators are both present.
+ all_files.extend([os.path.join(root, f).replace(os.sep, '/')
+ for f in files if f.endswith('.h')])
return all_files