wireshark/doc/plugins.example
João Valverde 89fee9321e Avoid exposing HAVE_PLUGINS in the public API
Instead *_register_plugin() is turned into a noop (with a warning).

The test suit is failing with ENABLE_PLUGINS=Off (it was already failing
before and this patch didn't affect that).

Closes #17202.
2021-02-06 16:35:51 +00:00
..
CMakeLists.txt Avoid exposing HAVE_PLUGINS in the public API 2021-02-06 16:35:51 +00:00
README plugins.example: Fix build on Windows 2018-11-24 02:09:29 +00:00
hello.c plugins.example: Fix build on Windows 2018-11-24 02:09:29 +00:00

README

This is an example of how to build a Wireshark plugin out-of-tree.

Note that this builds against Wireshark's *installed* version. You should of
course adapt to your own needs.

To build/install the plugin:

$ mkdir build && cd build
$ cmake ..
$ make
$ sudo make install

If your WiresharkConfig.cmake file is not in one of the standard cmake search
paths you will have to tell cmake where to find it. You can do so using
CMAKE_PREFIX_PATH, for example

$ cmake -DCMAKE_PREFIX_PATH="/opt/wireshark" ..