summaryrefslogtreecommitdiff
path: root/docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
diff options
context:
space:
mode:
authorGraham Bloice <graham.bloice@trihedral.com>2015-11-23 21:51:47 +0000
committerAnders Broman <a.broman58@gmail.com>2015-11-24 06:04:57 +0000
commiteaac7de007489f6907c9339d933bd6848b63bf2b (patch)
tree1514e87170a8108ec85e31f3a4414b1009deef4f /docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
parent61082a22030e6391c8e9337f25e750a6d71d3811 (diff)
downloadwireshark-eaac7de007489f6907c9339d933bd6848b63bf2b.tar.gz
Developers Guide updates for plugins with CMake
Remove references to nmake, add references to CMake. Change-Id: Iea2d2b2fbdbab131bae823d5d6a5306630a70347 Reviewed-on: https://code.wireshark.org/review/12079 Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'docbook/wsdg_src/WSDG_chapter_dissection.asciidoc')
-rw-r--r--docbook/wsdg_src/WSDG_chapter_dissection.asciidoc20
1 files changed, 12 insertions, 8 deletions
diff --git a/docbook/wsdg_src/WSDG_chapter_dissection.asciidoc b/docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
index 1930a96123..84b05240bd 100644
--- a/docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
+++ b/docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
@@ -27,7 +27,7 @@ to handle dissection.
There is little difference in having your dissector as either a plugin or
built-in. On the Windows platform you have limited function access through the
-ABI exposed in 'libwireshark.def', but that is mostly complete.
+ABI exposed by functions declared as WS_DLL_PUBLIC.
The big plus is that your rebuild cycle for a plugin is much shorter than for a
built-in one. So starting with a plugin makes initial development simpler, while
@@ -172,21 +172,25 @@ are required, besides the dissector source in 'packet-foo.c':
* 'Makefile.common' - Contains the file names of this plugin.
-* 'Makefile.nmake' - Contains the Wireshark plugin makefile for Windows.
+* 'CMakeLists.txt' - Contains the CMake file and version info for this plugin.
* 'moduleinfo.h' - Contains plugin version information.
-* 'moduleinfo.nmake' - Contains DLL version info for Windows.
-
* 'packet-foo.c' - Your dissector source.
* 'plugin.rc.in' - Contains the DLL resource template for Windows.
-You can find a good example for these files in the interlink plugin directory.
+You can find a good example for these files in the gryphon plugin directory.
'Makefile.common' and 'Makefile.am' have to be modified to reflect the relevant
-files and dissector name. 'moduleinfo.h' and 'moduleinfo.nmake' have to be
-filled in with the version information. Compile the dissector to a DLL or shared
-library and copy it into the plugin directory of the installation.
+files and dissector name. 'CMakeLists.txt' has to be modified with the correct
+plugin name and version info, along with the relevant files to compile.
+In the main top-level source directory, copy CMakeListsCustom.txt.example to
+CMakeCustomLists.txt and add the path of your plugin to the list in
+CUSTOM_PLUGIN_SRC_DIR.
+
+Compile the dissector to a DLL or shared library and either run Wireshark from
+the build directory as detailed in <<ChSrcRunFirstTime>> or copy the plugin
+binary into the plugin directory of your Wireshark installation and run that.
[[ChDissectDetails]]