From d0e8ef2e22f0f8126760019d104b8858daf7cfa1 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 10 Dec 2019 17:45:42 +0100 Subject: android build --- configure.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'configure.py') 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') -- cgit v1.2.3