Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Budeanu <stefan@budeanu.com>2016-03-27 03:17:55 +0300
committerStefan Budeanu <stefan@budeanu.com>2016-06-29 00:48:22 +0300
commit410296c37acb2ad5d939bd4633b2c3fbe3782084 (patch)
tree799b32b5419195c2073fcf24b0bac7eb1f45254d /tools/install.py
parent86e07b7c243ce9ef90d90c7765c1b04140a70f42 (diff)
build: configure --shared
Add configure flag for building a shared library that can be embedded in other applications (like Electron). Add flags --without-bundled-v8 and --without-v8-platform to control V8 dependencies used. PR-URL: https://github.com/nodejs/node/pull/6994 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'tools/install.py')
-rwxr-xr-xtools/install.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/tools/install.py b/tools/install.py
index f3fa4fe8981..a3986c50339 100755
--- a/tools/install.py
+++ b/tools/install.py
@@ -6,6 +6,7 @@ import os
import re
import shutil
import sys
+from getmoduleversion import get_version
# set at init time
node_prefix = '/usr/local' # PREFIX variable from Makefile
@@ -107,9 +108,22 @@ def subdir_files(path, dest, action):
def files(action):
is_windows = sys.platform == 'win32'
+ output_file = 'node'
+ output_prefix = 'out/Release/'
- exeext = '.exe' if is_windows else ''
- action(['out/Release/node' + exeext], 'bin/node' + exeext)
+ if 'false' == variables.get('node_shared'):
+ if is_windows:
+ output_file += '.exe'
+ else:
+ if is_windows:
+ output_file += '.dll'
+ else:
+ # GYP will output to lib.target, this is hardcoded in its source,
+ # see the _InstallableTargetInstallPath function.
+ output_prefix += 'lib.target/'
+ output_file = 'lib' + output_file + '.so.' + get_version()
+
+ action([output_prefix + output_file], 'bin/' + output_file)
if 'true' == variables.get('node_use_dtrace'):
action(['out/Release/node.d'], 'lib/dtrace/node.d')