GeezerVison is showing github.com — build: add gn files for deps/nbytes · nodejs/node@40032eb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +############################################################################## |
| 2 | +# # |
| 3 | +# DO NOT EDIT THIS FILE! # |
| 4 | +# # |
| 5 | +############################################################################## |
| 6 | + |
| 7 | +# This file is used by GN for building, which is NOT the build system used for |
| 8 | +# building official binaries. |
| 9 | +# Please modify the gyp files if you are making changes to build system. |
| 10 | + |
| 11 | +import("unofficial.gni") |
| 12 | + |
| 13 | +nbytes_gn_build("nbytes") { |
| 14 | +} |
Collapse file
Copy file name to clipboard +25Lines changed: 25 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +# This file is used by GN for building, which is NOT the build system used for |
| 2 | +# building official binaries. |
| 3 | +# Please edit the gyp files if you are making changes to build system. |
| 4 | + |
| 5 | +import("../../node.gni") |
| 6 | +import("$node_v8_path/gni/v8.gni") |
| 7 | + |
| 8 | +# The actual configurations are put inside a template in unofficial.gni to |
| 9 | +# prevent accidental edits from contributors. |
| 10 | +template("nbytes_gn_build") { |
| 11 | + config("nbytes_config") { |
| 12 | + include_dirs = [ "." ] |
| 13 | + } |
| 14 | + |
| 15 | + gypi_values = exec_script("../../tools/gypi_to_gn.py", |
| 16 | + [ rebase_path("nbytes.gyp") ], |
| 17 | + "scope", |
| 18 | + [ "nbytes.gyp" ]) |
| 19 | + |
| 20 | + source_set(target_name) { |
| 21 | + forward_variables_from(invoker, "*") |
| 22 | + public_configs = [ ":nbytes_config" ] |
| 23 | + sources = gypi_values.nbytes_sources |
| 24 | + } |
| 25 | +} |
Collapse file
Copy file name to clipboardExpand all lines: unofficial.gni +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -148,6 +148,7 @@ template("node_gn_build") { |
148 | 148 | "deps/cares", |
149 | 149 | "deps/histogram", |
150 | 150 | "deps/llhttp", |
| 151 | + "deps/nbytes", |
151 | 152 | "deps/nghttp2", |
152 | 153 | "deps/ngtcp2", |
153 | 154 | "deps/postject", |
@@ -331,6 +332,7 @@ template("node_gn_build") { |
331 | 332 | ":libnode", |
332 | 333 | "deps/googletest", |
333 | 334 | "deps/googletest:gtest_main", |
| 335 | + "deps/nbytes", |
334 | 336 | "deps/simdutf", |
335 | 337 | ] |
336 | 338 |
|
|