Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5e4fc04

Browse filesBrowse files
alexcfyunggabylb
authored andcommitted
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: #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>
1 parent 0388b9a commit 5e4fc04
Copy full SHA for 5e4fc04

File tree

Expand file treeCollapse file tree

2 files changed

+16
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+16
-0
lines changed
Open diff view settings
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,8 @@
621621
'ldflags': [
622622
'-q64',
623623
],
624+
# for addons due to v8config.h include of "zos-base.h":
625+
'include_dirs': ['$(ZOSLIB_INCLUDES)'],
624626
}],
625627
],
626628
}
Collapse file

‎tools/install.py‎

Copy file name to clipboardExpand all lines: tools/install.py
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ def wanted_v8_headers(files_arg, dest):
186186
files_arg = [name for name in files_arg if name in v8_headers]
187187
action(files_arg, dest)
188188

189+
def wanted_zoslib_headers(files_arg, dest):
190+
import glob
191+
zoslib_headers = glob.glob(zoslibinc + '/*.h')
192+
files_arg = [name for name in files_arg if name in zoslib_headers]
193+
action(files_arg, dest)
194+
189195
action([
190196
'common.gypi',
191197
'config.gypi',
@@ -220,6 +226,14 @@ def wanted_v8_headers(files_arg, dest):
220226
'deps/zlib/zlib.h',
221227
], 'include/node/')
222228

229+
if sys.platform == 'zos':
230+
zoslibinc = os.environ.get('ZOSLIB_INCLUDES')
231+
if not zoslibinc:
232+
raise RuntimeError('Environment variable ZOSLIB_INCLUDES is not set\n')
233+
if not os.path.isfile(zoslibinc + '/zos-base.h'):
234+
raise RuntimeError('ZOSLIB_INCLUDES is not set to a valid location\n')
235+
subdir_files(zoslibinc, 'include/node/zoslib/', wanted_zoslib_headers)
236+
223237
def run(args):
224238
global node_prefix, install_path, target_defaults, variables
225239

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.