forked from osmocom/wireshark
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>
This commit is contained in:
parent
61082a2203
commit
eaac7de007
|
@ -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]]
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(docsis 0 0 5 0)
|
||||
|
||||
# The sources for the plugin
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(ethercat 0 1 0 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(gryphon 0 0 4 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(irda 0 0 6 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(m2m 1 1 0 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(mate 1 0 0 1)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(opcua 1 0 0 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(profinet 0 2 4 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(stats_tree 0 0 1 0)
|
||||
|
||||
set(PLUGIN_FILES
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# XXX No moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
# set_plugin_properties(tpg ...)
|
||||
|
||||
set(PLUGIN_FILES
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(unistim 0 0 2 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(wimax 1 1 0 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(wimaxasncp 0 0 1 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
include(WiresharkPlugin)
|
||||
|
||||
# This info is from moduleinfo.nmake
|
||||
# Plugin name and version info (major minor micro extra)
|
||||
set_module_info(wimaxmacphy 0 0 1 0)
|
||||
|
||||
set(DISSECTOR_SRC
|
||||
|
|
Loading…
Reference in New Issue