Shelley Vohr
6f38736d63
build: allow linking shared dependencies in the GN build
...
The GN build always compiles the bundled copies of brotli, c-ares,
HdrHistogram, llhttp, libuv, nghttp2, SQLite and zstd, so anyone
packaging a GN-built Node.js for a Linux distribution has no
counterpart to configure's --shared-* options.
Add node_shared_* args named after the GYP variables. When one is set,
that dependency's GN template defines its target as a group carrying a
pkg-config config instead of the bundled sources, so every existing
"deps/<name>" reference picks up the system library without further
changes, and config.gypi reports the choice like a GYP build does.
Refs: https://github.com/nodejs/node/pull/55903
Signed-off-by: Shelley Vohr <shelley.vohr@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/65797
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-09-07 07:19:20 +00:00
cjihrig and Paolo Insogna
d0fa608c07
lib,src,test,doc: add node:ffi module
...
PR-URL: https://github.com/nodejs/node/pull/62072
Co-authored-by: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Bryan English <bryan@bryanenglish.com >
2026-04-14 10:44:30 +01:00
Shelley Vohr
9027f29e6d
build: fix GN for new merve dep
...
PR-URL: https://github.com/nodejs/node/pull/61984
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-03-02 09:53:18 +00:00
Shelley Vohr
21eac793cd
build: fix node_use_sqlite for GN builds
...
PR-URL: https://github.com/nodejs/node/pull/59017
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
2025-08-09 00:22:24 +00:00
Shelley Vohr
98da424ac4
build: option to use custom inspector_protocol path
...
PR-URL: https://github.com/nodejs/node/pull/58839
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2025-06-28 09:23:18 +00:00
Shelley Vohr
5aad0a7277
build: use //third_party/simdutf by default in GN
...
PR-URL: https://github.com/nodejs/node/pull/58115
Reviewed-By: Cheng Zhao <zcbenz@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2025-05-04 08:37:28 +00:00
Shelley Vohr
a1d980c4e0
build: use variable for simdutf path
...
PR-URL: https://github.com/nodejs/node/pull/56196
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Cheng Zhao <zcbenz@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2024-12-11 15:35:48 +00:00
Shelley Vohr
d3bcb97e5a
build: use variable for crypto dep path
...
PR-URL: https://github.com/nodejs/node/pull/55928
Reviewed-By: Cheng Zhao <zcbenz@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2024-11-23 11:06:02 +00:00
Cheng
57f23b4050
build: implement node_use_amaro flag in GN build
...
PR-URL: https://github.com/nodejs/node/pull/55798
Refs: https://github.com/nodejs/node/pull/54136
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2024-11-11 04:33:06 +00:00
Michael Dawson
ce19715cbb
deps: allow amaro to be externalizable
...
- allow amaro to be externalized like other builtins
containing WASM. More context is available in
https://github.com/nodejs/node/blob/main/doc/contributing/maintaining/maintaining-dependencies.md#supporting-externalizable-dependencies-with-javascript-code
Signed-off-by: Michael Dawson <midawson@redhat.com >
PR-URL: https://github.com/nodejs/node/pull/54646
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2024-09-05 14:27:30 -04:00
Cheng Zhao
384fd17876
build: fix arm64 host cross-compilation in GN
...
Should use `current_cpu` instead of `target_cpu` in GN build files,
otherwise the host build may use wrong configs when doing cross
compilation.
PR-URL: https://github.com/nodejs/node/pull/51903
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2024-03-06 11:11:52 +09:00
Cheng Zhao
26f63be878
build: remove copyright header in node.gni
...
This file was missed in https://github.com/nodejs/node/pull/50694 .
PR-URL: https://github.com/nodejs/node/pull/51535
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
2024-01-24 02:11:08 +00:00
Cheng Zhao
32af45d241
build: add GN build files
...
PR-URL: https://github.com/nodejs/node/pull/47637
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-11-11 09:51:05 +00:00