Replies: 1 comment
-
|
You can use compiler.find_library: cc = meson.get_compiler('c')
mylibrary_dep = cc.find_library('mylibrary',
dirs: ['path/to/libs/mylibrary'])There are additional options like checking for headers, etc. For additional functionality, for example including compile arguments, you can use declare_dependency cc = meson.get_compiler('c')
lib = cc.find_library('mylibrary',
dirs: ['path/to/libs/mylibrary'])
mylibrary_dep = declare_dependency(dependencies: [lib],
compile_args: ['-Dfoo=bar']) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to link statically to a dependency builded with msbuild?
On unix, it is easy to link with another program that dont use meson because of pkgconfig, but what is the alternative on windows?
Beta Was this translation helpful? Give feedback.
All reactions