Commit 3f46545c authored by Jarred Nicholls's avatar Jarred Nicholls
Browse files

<third_party/WebKit> FIXUP: Prevent a python IOError on Windows


The scripts for generating and aggregating the v8 bindings all suffer
from an IOError on Windows when doing a shadow build that results in
very large relative paths being used in the generated GYP actions.

Change-Id: I86f57fc94e8ff633e2499a08b8cafa7df9b39210
Reviewed-by: default avatarMichael Bruning <michael.bruning@digia.com>
Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
No related merge requests found
Showing with 7 additions and 6 deletions
......@@ -222,7 +222,7 @@ def main(args):
if hash(meta_data['name']) % total_partitions == partition]
file_contents = generate_content(component_dir,
files_meta_data_this_partition)
write_content(file_contents, file_name)
write_content(file_contents, abs(file_name))
if __name__ == '__main__':
......
......@@ -77,6 +77,7 @@ from v8_globals import includes, interfaces
import v8_interface
import v8_types
from v8_utilities import capitalize, cpp_name, conditional_string, v8_class_name
from utilities import abs
class CodeGeneratorV8(object):
......@@ -197,7 +198,7 @@ def runtime_enabled_if(code, runtime_enabled_function_name):
def main(argv):
# If file itself executed, cache templates
try:
cache_dir = argv[1]
cache_dir = abs(argv[1])
dummy_filename = argv[2]
except IndexError as err:
print 'Usage: %s CACHE_DIR DUMMY_FILENAME' % argv[0]
......
......@@ -40,7 +40,7 @@ import sys
from code_generator_v8 import CodeGeneratorV8
from idl_reader import IdlReader
from utilities import write_file
from utilities import write_file, abs
def parse_options():
......@@ -132,9 +132,9 @@ class IdlCompilerV8(IdlCompiler):
def main():
options, idl_filename = parse_options()
idl_compiler = IdlCompilerV8(
options.output_directory,
cache_directory=options.cache_directory,
interfaces_info_filename=options.interfaces_info_file,
abs(options.output_directory),
cache_directory=abs(options.cache_directory),
interfaces_info_filename=abs(options.interfaces_info_file),
only_if_changed=options.write_file_only_if_changed)
idl_compiler.compile_file(idl_filename)
......
Supports Markdown
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