From 9fa53b1c3abf221de1363eb3a566bfbeefb6de36 Mon Sep 17 00:00:00 2001 From: himself65 Date: Thu, 8 Jul 2021 15:58:50 +0800 Subject: [PATCH] fixup!: add lib files to gyp variables --- configure.py | 4 ++++ node.gyp | 2 +- tools/search_files.py | 24 ------------------------ 3 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 tools/search_files.py diff --git a/configure.py b/configure.py index 4bc790e2f24219..533849324d27ee 100755 --- a/configure.py +++ b/configure.py @@ -45,6 +45,7 @@ import getnapibuildversion import getsharedopensslhasquic from gyp_node import run_gyp +from utils import SearchFiles # parse our options parser = argparse.ArgumentParser() @@ -1148,6 +1149,8 @@ def gcc_version_ge(version_checked): return False return True +def configure_node_lib_files(o): + o['variables']['node_library_files'] = SearchFiles('lib', 'js') def configure_node(o): if options.dest_os == 'android': @@ -1896,6 +1899,7 @@ def make_bin_override(): flavor = GetFlavor(flavor_params) configure_node(output) +configure_node_lib_files(output) configure_napi(output) configure_library('zlib', output) configure_library('http_parser', output) diff --git a/node.gyp b/node.gyp index 540029e2b75fb0..be50b280fc5946 100644 --- a/node.gyp +++ b/node.gyp @@ -33,7 +33,7 @@ # Windows command length limit or there would be an error. # See https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation 'library_files': [ - '