Skip to content

Commit

Permalink
build: use zoslib_include_dir provided by node-gyp
Browse files Browse the repository at this point in the history
The path is based on the zoslib gyp path passed to configure.py
via --static-zoslib-gyp arg.

PR-URL: #41713
Co-authored-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
2 people authored and danielleadams committed Apr 24, 2022
1 parent d77db88 commit d2c1624
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.gypi
Expand Up @@ -621,7 +621,7 @@
'-q64',
],
# for addons due to v8config.h include of "zos-base.h":
'include_dirs': ['$(ZOSLIB_INCLUDES)'],
'include_dirs': ['<(zoslib_include_dir)'],
}],
],
}
Expand Down
3 changes: 2 additions & 1 deletion configure.py
Expand Up @@ -1162,7 +1162,8 @@ def configure_zos(o):
o['variables']['node_static_zoslib'] = b(True)
if options.static_zoslib_gyp:
# Apply to all Node.js components for now
o['include_dirs'] += [os.path.dirname(options.static_zoslib_gyp) + '/include']
o['variables']['zoslib_include_dir'] = os.path.dirname(options.static_zoslib_gyp) + '/include'
o['include_dirs'] += [o['variables']['zoslib_include_dir']]
else:
raise Exception('--static-zoslib-gyp=<path to zoslib.gyp file> is required.')

Expand Down

0 comments on commit d2c1624

Please sign in to comment.