GeezerVison is showing github.com — deps: add gn build files for ncrypto · nodejs/node@1176310
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 +31Lines changed: 31 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("ncrypto_gn_build") { |
| 11 | + config("ncrypto_config") { |
| 12 | + include_dirs = [ "." ] |
| 13 | + cflags = [ |
| 14 | + "-Wno-deprecated-declarations", |
| 15 | + "-Wno-pessimizing-move", |
| 16 | + "-Wno-shadow", |
| 17 | + ] |
| 18 | + } |
| 19 | + |
| 20 | + gypi_values = exec_script("../../tools/gypi_to_gn.py", |
| 21 | + [ rebase_path("ncrypto.gyp") ], |
| 22 | + "scope", |
| 23 | + [ "ncrypto.gyp" ]) |
| 24 | + |
| 25 | + source_set(target_name) { |
| 26 | + forward_variables_from(invoker, "*") |
| 27 | + public_configs = [ ":ncrypto_config" ] |
| 28 | + sources = gypi_values.ncrypto_sources |
| 29 | + deps = [ "../openssl" ] |
| 30 | + } |
| 31 | +} |