Commit b4b63dfb authored by tony@chromium.org's avatar tony@chromium.org

Use a shorter include paths on Windows.

We were hitting the MAXPATH limit on the build.webkit.org win bots.

BUG=webkit.org/b/74320


Review URL: http://codereview.chromium.org/8930019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114686 0039d316-1c4b-4281-b951-d872f2087c98
parent cd851597
......@@ -106,8 +106,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
# 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment