| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4c27d77 commit e96bb14
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -739,6 +739,14 @@ | |||
| 739 | 739 | help='compile shared library for embedding node in another project. ' + | |
| 740 | 740 | '(This mode is not officially supported for regular applications)') | |
| 741 | 741 | ||
| 742 | + parser.add_argument('--libdir', | ||
| 743 | + action='store', | ||
| 744 | + dest='libdir', | ||
| 745 | + default='lib', | ||
| 746 | + help='a directory to install the shared library into relative to the ' | ||
| 747 | + 'prefix. This is a no-op if --shared is not specified. ' + | ||
| 748 | + '(This mode is not officially supported for regular applications)') | ||
| 749 | + | ||
| 742 | 750 | parser.add_argument('--without-v8-platform', | |
| 743 | 751 | action='store_true', | |
| 744 | 752 | dest='without_v8_platform', | |
@@ -1372,6 +1380,7 @@ def configure_node(o): | |||
| 1372 | 1380 | o['variables']['node_no_browser_globals'] = b(options.no_browser_globals) | |
| 1373 | 1381 | ||
| 1374 | 1382 | o['variables']['node_shared'] = b(options.shared) | |
| 1383 | + o['variables']['libdir'] = options.libdir | ||
| 1375 | 1384 | node_module_version = getmoduleversion.get_version() | |
| 1376 | 1385 | ||
| 1377 | 1386 | if options.dest_os == 'android': | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,19 +169,14 @@ def files(action): | |||
| 169 | 169 | ||
| 170 | 170 | # install libnode.version.so | |
| 171 | 171 | so_name = 'libnode.' + re.sub(r'\.x$', '.so', variables.get('shlib_suffix')) | |
| 172 | - action([output_prefix + so_name], 'lib/' + so_name) | ||
| 172 | + action([output_prefix + so_name], variables.get('libdir') + '/' + so_name) | ||
| 173 | 173 | ||
| 174 | 174 | # create symlink of libnode.so -> libnode.version.so (C++ addons compat) | |
| 175 | 175 | link_path = abspath(install_path, 'lib/libnode.so') | |
| 176 | 176 | try_symlink(so_name, link_path) | |
| 177 | 177 | else: | |
| 178 | 178 | output_lib = 'libnode.' + variables.get('shlib_suffix') | |
| 179 | - action([output_prefix + output_lib], 'lib/' + output_lib) | ||
| 180 | - if 'true' == variables.get('node_use_dtrace'): | ||
| 181 | - action(['out/Release/node.d'], 'lib/dtrace/node.d') | ||
| 182 | - | ||
| 183 | - # behave similarly for systemtap | ||
| 184 | - action(['src/node.stp'], 'share/systemtap/tapset/') | ||
| 179 | + action([output_prefix + output_lib], variables.get('libdir') + '/' + output_lib) | ||
| 185 | 180 | ||
| 186 | 181 | action(['deps/v8/tools/gdbinit'], 'share/doc/node/') | |
| 187 | 182 | action(['deps/v8/tools/lldb_commands.py'], 'share/doc/node/') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments