mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
build: add --shared-nbytes configure flag
PR-URL: https://github.com/nodejs/node/pull/61341 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
5 files changed
+62
-5
No files matched your search
@@ -23,6 +23,7 @@ on:
|
||||
- deps/icu-small/**
|
||||
- deps/icu-tmp/**
|
||||
- deps/llhttp/**
|
||||
- deps/nbytes/**
|
||||
- deps/nghttp2/**
|
||||
- deps/ngtcp2/**
|
||||
- deps/openssl/*/**
|
||||
@@ -71,6 +72,7 @@ on:
|
||||
- deps/icu-small/**
|
||||
- deps/icu-tmp/**
|
||||
- deps/llhttp/**
|
||||
- deps/nbytes/**
|
||||
- deps/nghttp2/**
|
||||
- deps/ngtcp2/**
|
||||
- deps/openssl/*/**
|
||||
|
||||
@@ -1240,6 +1240,7 @@ ifeq ($(SKIP_SHARED_DEPS), 1)
|
||||
$(RM) -r $(TARNAME)/deps/icu-small
|
||||
$(RM) -r $(TARNAME)/deps/icu-tmp
|
||||
$(RM) -r $(TARNAME)/deps/llhttp
|
||||
$(RM) -r $(TARNAME)/deps/nbytes
|
||||
$(RM) -r $(TARNAME)/deps/nghttp2
|
||||
$(RM) -r $(TARNAME)/deps/ngtcp2
|
||||
find $(TARNAME)/deps/openssl -maxdepth 1 -type f ! -name 'nodejs-openssl.cnf' -exec $(RM) {} +
|
||||
|
||||
@@ -357,6 +357,28 @@ shared_optgroup.add_argument('--shared-libuv-libpath',
|
||||
dest='shared_libuv_libpath',
|
||||
help='a directory to search for the shared libuv DLL')
|
||||
|
||||
shared_optgroup.add_argument('--shared-nbytes',
|
||||
action='store_true',
|
||||
dest='shared_nbytes',
|
||||
default=None,
|
||||
help='link to a shared nbytes DLL instead of static linking')
|
||||
|
||||
shared_optgroup.add_argument('--shared-nbytes-includes',
|
||||
action='store',
|
||||
dest='shared_nbytes_includes',
|
||||
help='directory containing nbytes header files')
|
||||
|
||||
shared_optgroup.add_argument('--shared-nbytes-libname',
|
||||
action='store',
|
||||
dest='shared_nbytes_libname',
|
||||
default='nbytes',
|
||||
help='alternative lib name to link to [default: %(default)s]')
|
||||
|
||||
shared_optgroup.add_argument('--shared-nbytes-libpath',
|
||||
action='store',
|
||||
dest='shared_nbytes_libpath',
|
||||
help='a directory to search for the shared nbytes DLL')
|
||||
|
||||
shared_optgroup.add_argument('--shared-nghttp2',
|
||||
action='store_true',
|
||||
dest='shared_nghttp2',
|
||||
@@ -2459,6 +2481,7 @@ configure_library('brotli', output, pkgname=['libbrotlidec', 'libbrotlienc'])
|
||||
configure_library('cares', output, pkgname='libcares')
|
||||
configure_library('gtest', output)
|
||||
configure_library('hdr_histogram', output)
|
||||
configure_library('nbytes', output)
|
||||
configure_library('nghttp2', output, pkgname='libnghttp2')
|
||||
configure_library('nghttp3', output, pkgname='libnghttp3')
|
||||
configure_library('ngtcp2', output, pkgname='libngtcp2')
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
'node_shared_hdr_histogram%': 'false',
|
||||
'node_shared_http_parser%': 'false',
|
||||
'node_shared_libuv%': 'false',
|
||||
'node_shared_nbytes%': 'false',
|
||||
'node_shared_nghttp2%': 'false',
|
||||
'node_shared_openssl%': 'false',
|
||||
'node_shared_sqlite%': 'false',
|
||||
@@ -873,7 +874,6 @@
|
||||
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
|
||||
],
|
||||
'dependencies': [
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
'tools/v8_gypfiles/abseil.gyp:abseil',
|
||||
'node_js2c#host',
|
||||
],
|
||||
@@ -945,6 +945,11 @@
|
||||
'deps/histogram/histogram.gyp:histogram',
|
||||
],
|
||||
}],
|
||||
[ 'node_shared_nbytes=="false"', {
|
||||
'dependencies': [
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
}],
|
||||
[ 'node_use_sqlite=="true"', {
|
||||
'sources': [
|
||||
'<@(node_sqlite_sources)',
|
||||
@@ -1183,7 +1188,6 @@
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
'<(node_lib_target_name)',
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
'includes': [
|
||||
'node.gypi'
|
||||
@@ -1216,6 +1220,11 @@
|
||||
'deps/histogram/histogram.gyp:histogram',
|
||||
],
|
||||
}],
|
||||
[ 'node_shared_nbytes=="false"', {
|
||||
'dependencies': [
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
}],
|
||||
[ 'node_shared_uvwasi=="false"', {
|
||||
'dependencies': [ 'deps/uvwasi/uvwasi.gyp:uvwasi' ],
|
||||
'include_dirs': [ 'deps/uvwasi/include' ],
|
||||
@@ -1239,7 +1248,6 @@
|
||||
|
||||
'dependencies': [
|
||||
'<(node_lib_target_name)',
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
'tools/v8_gypfiles/abseil.gyp:abseil',
|
||||
],
|
||||
|
||||
@@ -1279,6 +1287,11 @@
|
||||
'deps/histogram/histogram.gyp:histogram',
|
||||
],
|
||||
}],
|
||||
[ 'node_shared_nbytes=="false"', {
|
||||
'dependencies': [
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
}],
|
||||
[ 'node_use_openssl=="true"', {
|
||||
'defines': [
|
||||
'HAVE_OPENSSL=1',
|
||||
@@ -1346,7 +1359,6 @@
|
||||
|
||||
'dependencies': [
|
||||
'<(node_lib_target_name)',
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
|
||||
'includes': [
|
||||
@@ -1386,6 +1398,11 @@
|
||||
'deps/histogram/histogram.gyp:histogram',
|
||||
],
|
||||
}],
|
||||
[ 'node_shared_nbytes=="false"', {
|
||||
'dependencies': [
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
}],
|
||||
['OS=="win"', {
|
||||
'libraries': [
|
||||
'Dbghelp.lib',
|
||||
@@ -1472,7 +1489,6 @@
|
||||
|
||||
'dependencies': [
|
||||
'<(node_lib_target_name)',
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
|
||||
'includes': [
|
||||
@@ -1509,6 +1525,11 @@
|
||||
'deps/histogram/histogram.gyp:histogram',
|
||||
],
|
||||
}],
|
||||
[ 'node_shared_nbytes=="false"', {
|
||||
'dependencies': [
|
||||
'deps/nbytes/nbytes.gyp:nbytes',
|
||||
],
|
||||
}],
|
||||
[ 'node_use_openssl=="true"', {
|
||||
'dependencies': [
|
||||
'deps/ncrypto/ncrypto.gyp:ncrypto',
|
||||
|
||||
@@ -22,6 +22,16 @@
|
||||
cares = pkgs.c-ares;
|
||||
hdr-histogram = pkgs.hdrhistogram_c;
|
||||
http-parser = pkgs.llhttp;
|
||||
nbytes = pkgs.callPackage "${
|
||||
pkgs.fetchgit {
|
||||
url = "https://github.com/NixOS/nixpkgs.git";
|
||||
rev = "3146c6aa9995e7351a398e17470e15305e6e18ff";
|
||||
sparseCheckout = [
|
||||
"/pkgs/by-name/nb/nbytes/"
|
||||
];
|
||||
hash = "sha256-8cbu4ftn5ke7vd4cniwxuyKl6FRxwdToBj77oyYmsfk=";
|
||||
}
|
||||
}/pkgs/by-name/nb/nbytes/package.nix" { };
|
||||
}
|
||||
// (pkgs.lib.optionalAttrs withSQLite {
|
||||
inherit (pkgs) sqlite;
|
||||
|
||||
Reference in new issue
Block a user