diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2017-04-04 23:23:59 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2017-04-19 10:41:55 +0000 |
commit | cfab5ef035db7be8502623af203ab3494a9200e3 (patch) | |
tree | 2d848bbd7bd38baa818a817b9cda5b4b107f30a6 /CMakeLists.txt | |
parent | d13c6d9628e3964697559e3509d9c1f8ec30ed9e (diff) |
Add libxml2 as optional dependency
This can be used by dissectors that need to parse out-of-band
configuration.
Change-Id: I13c0a2f408fb5c21bad7ab3d7971e0fa8ed7d783
Reviewed-on: https://code.wireshark.org/review/20912
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c3997575d..11543733ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -875,6 +875,10 @@ if(ENABLE_SPANDSP) set(PACKAGELIST ${PACKAGELIST} SPANDSP) endif() +if(ENABLE_LIBXML2) + set(PACKAGELIST ${PACKAGELIST} LibXml2) +endif() + # Capabilities if(ENABLE_CAP) set(PACKAGELIST ${PACKAGELIST} CAP SETCAP) @@ -908,6 +912,8 @@ foreach(PACKAGE ${PACKAGELIST}) set(PACKAGE_VAR "GETTEXT") elseif(${PACKAGE} STREQUAL "Perl") set(PACKAGE_VAR "PERL") + elseif(${PACKAGE} STREQUAL "LibXml2") + set(PACKAGE_VAR "LIBXML2") else() set(PACKAGE_VAR ${PACKAGE}) endif() @@ -989,6 +995,9 @@ endif() if(SPANDSP_FOUND) set(HAVE_SPANDSP 1) endif() +if(LIBXML2_FOUND) + set(HAVE_LIBXML2 1) +endif() if(EXTCAP_ANDROIDDUMP_LIBPCAP) set(ANDROIDDUMP_USE_LIBPCAP 1) endif() @@ -1370,6 +1379,7 @@ include(FeatureSummary) #SET_FEATURE_INFO(NAME DESCRIPTION [URL [COMMENT] ]) SET_FEATURE_INFO(SBC "SBC Codec for Bluetooth A2DP stream playing" "http://git.kernel.org/cgit/bluetooth/sbc.git" ) SET_FEATURE_INFO(SPANDSP "Support for G.722 and G.726 codecs in RTP player" "http://www.soft-switch.org/" ) +SET_FEATURE_INFO(LIBXML2 "Libxml2 is a XML C parser, which can be used for handling XML configuration in dissectors" "http://xmlsoft.org/" ) SET_FEATURE_INFO(LIBSSH "libssh is library for ssh connections and it is needed to build sshdump/ciscodump" "https://www.libssh.org/get-it/" ) SET_FEATURE_INFO(LZ4 "LZ4 is lossless compression algorithm used in some protocol (CQL...)" "http://www.lz4.org" ) SET_FEATURE_INFO(SNAPPY "snappy is a fast compressor/decompressor from Google used in some protocol (CQL, kafka...)" "http://google.github.io/snappy/") @@ -1650,6 +1660,13 @@ if(WIN32) "${_dll_output_dir}" ) endif(SPANDSP_FOUND) + if (LIBXML2_FOUND) + add_custom_command(TARGET copy_cli_dlls PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "${LIBXML2_DLL_DIR}/${LIBXML2_DLL}" + "${_dll_output_dir}" + ) + endif(LIBXML2_FOUND) if (SMI_FOUND) # Wireshark.nsi wants SMI_DIR which is the base SMI directory get_filename_component(SMI_DIR ${SMI_DLL_DIR} DIRECTORY) |