aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/wasmlibs.md
blob: 15434d122ed8363108cce5a6ef4d164e5da74533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
## Add support for `find_library` in Emscripten

The `find_library` method can be used to find your own JavaScript
libraries. The limitation is that they must have the file extension
`.js`. Other library lookups will look up "native" libraries from the
system like currently. A typical usage would look like this:

```meson
glue_lib = cc.find_library('gluefuncs.js',
                           dirs: meson.current_source_dir())
executable('prog', 'prog.c',
           dependencies: glue_lib)
```