Skip to content

Commit

Permalink
Expose node headers as a cc_library
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbarsky committed Aug 9, 2023
1 parent 463589f commit b910741
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nodejs/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ filegroup(
name = "npm_files",
srcs = {npm_files_glob}[":node_files"],
)
cc_binary(
name = "headers",
hdrs = glob(["bin/nodejs/include/node/**"]),
includes = ["bin/nodejs/include/node"],
)
""".format(
node_bin_export = "\n \"%s\"," % node_bin,
npm_bin_export = "\n \"%s\"," % npm_bin,
Expand Down

0 comments on commit b910741

Please sign in to comment.