Added documentation for pcap dependency.

pull/2185/head
Jussi Pakkanen 8 years ago
parent 8c8e9230a5
commit 55165ba504
  1. 10
      docs/markdown/Dependencies.md
  2. 9
      docs/markdown/Release-notes-for-0.42.0.md

@ -90,6 +90,16 @@ q5exe = executable('qt5test',
Here we have an UI file created with Qt Designer and one source and header file each that require preprocessing with the `moc` tool. We also define a resource file to be compiled with `rcc`. We just have to tell Meson which files are which and it will take care of invoking all the necessary tools in the correct order, which is done with the `preprocess` method of the `qt5` module. Its output is simply put in the list of sources for the target. The `modules` keyword of `dependency` works just like it does with Boost. It tells which subparts of Qt the program uses.
## Pcap
The pcap library does not ship with pkg-config at the time or writing
but instead it has its own `pcap-config` util. Meson will use it
automatically:
```meson
pcap_dep = dependency('pcap', version : '>=1.0')
```
## Declaring your own
You can declare your own dependency objects that can be used interchangeably with dependency objects obtained from the system. The syntax is straightforward:

@ -131,3 +131,12 @@ like this:
The old commands are still available but they are deprecated
and will be removed in some future release.
## Pcap dependency detector
Meson will automatically obtain dependency information for pcap
using the `pcap-config` tool. It is used like any other dependency:
```meson
pcap_dep = dependency('pcap', version : '>=1.0')
```

Loading…
Cancel
Save