How to configure link directories
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.7k
- Forks
- 1.9k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 5
Description
Hey guys
Last week I started with a tutorial on napi for creating native addons for nodejs. And today I wanted to start wrapping up a c++ library of mine. I know how to configure the binding.gyp for local source files. But now I would like to link my static library and use that instead. So I already learned from an article how I can do so with absolute paths. But is there a way to configure link directories like you do with include dirs? I tried the following without success.
"link_dirs": [
"/path/to/my/link/directorie",
]
I tried looking up something similar in the issue tracker here as well on Google but could not find anything. Any help would be greatly appreciated!
With kind regards,
TheBoneJarmer
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names binding.gyp and the attempted link_dirs setting, but no repository file or test. Start by checking node-gyp’s binding.gyp configuration documentation and how include directories are described. Done would be a clear, verified explanation of whether link directories are supported and how to configure them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, nodejs
- Domain
- build-system, tooling
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100