Skip to content

Commit 1176310

Browse files
zcbenzRafaelGSS
authored andcommitted
deps: add gn build files for ncrypto
PR-URL: #53940 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 8853952 commit 1176310

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

deps/ncrypto/unofficial.gni

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}

0 commit comments

Comments
 (0)