node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

How to configure link directories

Open TheBoneJarmer opened this issue 4 years ago • 0 comments

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

TheBoneJarmer avatar Dec 22 '21 09:12 TheBoneJarmer