Index: webkit/support/setup_third_party.py |
diff --git a/webkit/support/setup_third_party.py b/webkit/support/setup_third_party.py |
index f3cf719c5b8590eec9cc83a7bc2baad9201f0185..61003d149fd154558c22c91c1bd23fb20edc7d31 100644 |
--- a/webkit/support/setup_third_party.py |
+++ b/webkit/support/setup_third_party.py |
@@ -103,8 +103,15 @@ def WriteSetupFilename(input_filename, out_filename): |
num_parent_dirs += 1 |
out_dir = os.path.split(out_dir)[0] |
- rel_path = os.path.join('/'.join(['..'] * num_parent_dirs), |
- input_filename[len(ancestor):]) |
+ if sys.platform == 'win32': |
+ # Windows has a file path limit of 260 characters that we can hit when |
M-A Ruel
2011/12/15 01:19:37
Why not do the same on all platforms?
|
+ # generating these forwarding headers. Instead of writing the full |
+ # relative path, just write the path relative to the WebKit/chromium dir, |
+ # which is in the include path. |
+ rel_path = input_filename[len(ancestor):] |
+ else: |
+ rel_path = os.path.join('/'.join(['..'] * num_parent_dirs), |
+ input_filename[len(ancestor):]) |
out_file = open(out_filename, 'w') |
out_file.write("""// This file is generated. Do not edit. |