| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 174155d commit 3335176
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -618,6 +618,8 @@ | |||
| 618 | 618 | 'ldflags': [ | |
| 619 | 619 | '-q64', | |
| 620 | 620 | ], | |
| 621 | + # for addons due to v8config.h include of "zos-base.h": | ||
| 622 | + 'include_dirs': ['$(ZOSLIB_INCLUDES)'], | ||
| 621 | 623 | }], | |
| 622 | 624 | ], | |
| 623 | 625 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -228,6 +228,12 @@ def wanted_v8_headers(files_arg, dest): | |||
| 228 | 228 | files_arg = [name for name in files_arg if name in v8_headers] | |
| 229 | 229 | action(files_arg, dest) | |
| 230 | 230 | ||
| 231 | + def wanted_zoslib_headers(files_arg, dest): | ||
| 232 | + import glob | ||
| 233 | + zoslib_headers = glob.glob(zoslibinc + '/*.h') | ||
| 234 | + files_arg = [name for name in files_arg if name in zoslib_headers] | ||
| 235 | + action(files_arg, dest) | ||
| 236 | + | ||
| 231 | 237 | action([ | |
| 232 | 238 | 'common.gypi', | |
| 233 | 239 | 'config.gypi', | |
@@ -262,6 +268,14 @@ def wanted_v8_headers(files_arg, dest): | |||
| 262 | 268 | 'deps/zlib/zlib.h', | |
| 263 | 269 | ], 'include/node/') | |
| 264 | 270 | ||
| 271 | + if sys.platform == 'zos': | ||
| 272 | + zoslibinc = os.environ.get('ZOSLIB_INCLUDES') | ||
| 273 | + if not zoslibinc: | ||
| 274 | + raise RuntimeError('Environment variable ZOSLIB_INCLUDES is not set\n') | ||
| 275 | + if not os.path.isfile(zoslibinc + '/zos-base.h'): | ||
| 276 | + raise RuntimeError('ZOSLIB_INCLUDES is not set to a valid location\n') | ||
| 277 | + subdir_files(zoslibinc, 'include/node/zoslib/', wanted_zoslib_headers) | ||
| 278 | + | ||
| 265 | 279 | def run(args): | |
| 266 | 280 | global node_prefix, install_path, target_defaults, variables | |
| 267 | 281 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments