Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

chore: fix headers for M71 #89

Open
wants to merge 1 commit into
base: electron-node-v11.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion filenames.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
{
"dest_dir": "include/node//",
"files": [
"//v8/include/v8-internal.h",
"//v8/include/v8-platform.h",
"//v8/include/v8-profiler.h",
"//v8/include/v8-testing.h",
Expand Down Expand Up @@ -137,7 +138,6 @@
"lib/internal/crypto/cipher.js",
"lib/internal/crypto/diffiehellman.js",
"lib/internal/crypto/hash.js",
"lib/internal/crypto/keygen.js",
"lib/internal/crypto/pbkdf2.js",
"lib/internal/crypto/random.js",
"lib/internal/crypto/scrypt.js",
Expand Down
4 changes: 4 additions & 0 deletions tools/generate_gn_filenames_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def add_headers(files, dest_dir):
files = [f for f in files if f.endswith('.h')]
elif any(f.startswith('deps/v8/') for f in files):
files = [f.replace('deps/v8/', '//v8/', 1) for f in files]

# For compatibility with V8 7.1
if not any('libplatform' in f for f in files):
files += ['//v8/include/v8-internal.h']
hs = {'files': sorted(files), 'dest_dir': dest_dir}
out['headers'].append(hs)

Expand Down