diff options
author | alexcfyung <alexcfyung@hotmail.com> | 2022-01-12 23:30:05 +0300 |
---|---|---|
committer | Michael Dawson <mdawson@devrus.com> | 2022-01-21 22:21:52 +0300 |
commit | ec1364b6ae8f3be9054af5c56c7bf7c2d1b7c735 (patch) | |
tree | c21e9977db82d22af335b61658415b6d43a56e2b /tools | |
parent | 087939471a47d7059223a5f52c933d37cbe547a9 (diff) |
build: enable zoslib installation on z/OS
zoslib is a C/C++ runtime library and an extended implementation
of the z/OS LE C Runtime Library.
PR-URL: https://github.com/nodejs/node/pull/41493
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Co-authored-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/install.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/install.py b/tools/install.py index 5340ce38b9b..e51d1298559 100755 --- a/tools/install.py +++ b/tools/install.py @@ -228,6 +228,12 @@ def headers(action): files_arg = [name for name in files_arg if name in v8_headers] action(files_arg, dest) + def wanted_zoslib_headers(files_arg, dest): + import glob + zoslib_headers = glob.glob(zoslibinc + '/*.h') + files_arg = [name for name in files_arg if name in zoslib_headers] + action(files_arg, dest) + action([ 'common.gypi', 'config.gypi', @@ -262,6 +268,14 @@ def headers(action): 'deps/zlib/zlib.h', ], 'include/node/') + if sys.platform == 'zos': + zoslibinc = os.environ.get('ZOSLIB_INCLUDES') + if not zoslibinc: + raise RuntimeError('Environment variable ZOSLIB_INCLUDES is not set\n') + if not os.path.isfile(zoslibinc + '/zos-base.h'): + raise RuntimeError('ZOSLIB_INCLUDES is not set to a valid location\n') + subdir_files(zoslibinc, 'include/node/zoslib/', wanted_zoslib_headers) + def run(args): global node_prefix, install_path, target_defaults, variables |