diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp index 046a72c4e0..1a46d6edbc 100644 --- a/tools/gyp/v8.gyp +++ b/tools/gyp/v8.gyp @@ -991,6 +991,47 @@ 'toolsets': ['target'], }], ], + 'variables': { + 'shim_headers_path': '<(SHARED_INTERMEDIATE_DIR)/shim_headers/<(_target_name)/<(_toolset)', + }, + 'include_dirs++': [ + '<(shim_headers_path)', + ], + 'direct_dependent_settings': { + 'include_dirs+++': [ + '<(shim_headers_path)', + ], + }, + 'actions': [ + { + 'variables': { + 'generator_path': '../../../tools/generate_shim_headers/generate_shim_headers.py', + 'generator_args': [ + '--headers-root', '../../include', + '--output-directory', '<(shim_headers_path)', + 'v8-debug.h', + 'v8-preparser.h', + 'v8-profiler.h', + 'v8-testing.h', + 'v8.h', + 'v8stdint.h', + ], + }, + 'action_name': 'generate_<(_target_name)_shim_headers', + 'inputs': [ + '<(generator_path)', + ], + 'outputs': [ + '