diff options
author | Stefan Budeanu <stefan@budeanu.com> | 2016-03-26 20:17:55 -0400 |
---|---|---|
committer | Stefan Budeanu <stefan@budeanu.com> | 2016-06-28 17:48:22 -0400 |
commit | 410296c37acb2ad5d939bd4633b2c3fbe3782084 (patch) | |
tree | 799b32b5419195c2073fcf24b0bac7eb1f45254d /tools/getnodeversion.py | |
parent | 86e07b7c243ce9ef90d90c7765c1b04140a70f42 (diff) | |
download | node-new-410296c37acb2ad5d939bd4633b2c3fbe3782084.tar.gz |
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/getnodeversion.py')
-rw-r--r-- | tools/getnodeversion.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/getnodeversion.py b/tools/getnodeversion.py index 766e4f60dc..f2032cccef 100644 --- a/tools/getnodeversion.py +++ b/tools/getnodeversion.py @@ -1,16 +1,20 @@ -import os,re +import os +import re -node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src', +node_version_h = os.path.join( + os.path.dirname(__file__), + '..', + 'src', 'node_version.h') f = open(node_version_h) for line in f: - if re.match('#define NODE_MAJOR_VERSION', line): + if re.match('^#define NODE_MAJOR_VERSION', line): major = line.split()[2] - if re.match('#define NODE_MINOR_VERSION', line): + if re.match('^#define NODE_MINOR_VERSION', line): minor = line.split()[2] - if re.match('#define NODE_PATCH_VERSION', line): + if re.match('^#define NODE_PATCH_VERSION', line): patch = line.split()[2] print '%(major)s.%(minor)s.%(patch)s'% locals() |