summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-10 17:45:42 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-10 22:28:08 +0100
commitd0e8ef2e22f0f8126760019d104b8858daf7cfa1 (patch)
tree539907875724993bd98484ee258e2a46c5876066 /configure.py
parent68874a617b5f6b43480f87bf18b681605a2f6f8c (diff)
downloadandroid-node-v8-d0e8ef2e22f0f8126760019d104b8858daf7cfa1.tar.gz
android-node-v8-d0e8ef2e22f0f8126760019d104b8858daf7cfa1.tar.bz2
android-node-v8-d0e8ef2e22f0f8126760019d104b8858daf7cfa1.zip
android build
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/configure.py b/configure.py
index 48624aba92..0795e17d5f 100755
--- a/configure.py
+++ b/configure.py
@@ -1117,14 +1117,18 @@ def configure_node(o):
o['variables']['node_shared'] = b(options.shared)
node_module_version = getmoduleversion.get_version()
- if sys.platform == 'darwin':
- shlib_suffix = '%s.dylib'
- elif sys.platform.startswith('aix'):
- shlib_suffix = '%s.a'
+ if options.dest_os == 'android':
+ shlib_suffix = "so"
else:
shlib_suffix = 'so.%s'
+ if sys.platform == 'darwin':
+ shlib_suffix = '%s.dylib'
+ elif sys.platform.startswith('aix'):
+ shlib_suffix = '%s.a'
+ else:
+ shlib_suffix = 'so.%s'
+ shlib_suffix %= node_module_version
- shlib_suffix %= node_module_version
o['variables']['node_module_version'] = int(node_module_version)
o['variables']['shlib_suffix'] = shlib_suffix
@@ -1760,6 +1764,8 @@ gyp_args += args
if warn.warned and not options.verbose:
warn('warnings were emitted in the configure phase')
+print("gyp args", gyp_args)
+
print_verbose("running: \n " + " ".join(['python', 'tools/gyp_node.py'] + gyp_args))
run_gyp(gyp_args)
info('configure completed successfully')