2009-09-02 16:33:01 +00:00
|
|
|
# CMakeLists.txt
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
2018-03-06 14:31:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2009-09-02 16:33:01 +00:00
|
|
|
#
|
|
|
|
|
2013-11-08 00:23:32 +00:00
|
|
|
if (HAVE_HFI_SECTION_INIT)
|
|
|
|
add_definitions(
|
|
|
|
-DHAVE_HFI_SECTION_INIT
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-01-10 01:45:00 +00:00
|
|
|
add_definitions(
|
|
|
|
${LIBXML2_DEFINITIONS}
|
|
|
|
${KERBEROS_DEFINITIONS}
|
|
|
|
)
|
|
|
|
|
2016-02-22 06:21:53 +00:00
|
|
|
add_subdirectory(crypt)
|
|
|
|
add_subdirectory(dfilter)
|
|
|
|
add_subdirectory(dissectors)
|
|
|
|
add_subdirectory(ftypes)
|
|
|
|
add_subdirectory(wmem)
|
2021-02-14 22:08:15 +00:00
|
|
|
|
2019-01-10 01:45:00 +00:00
|
|
|
if(LUA_FOUND)
|
2016-02-22 06:21:53 +00:00
|
|
|
add_subdirectory(wslua)
|
2009-09-09 13:20:33 +00:00
|
|
|
endif()
|
2009-10-12 14:48:20 +00:00
|
|
|
|
2016-02-24 16:55:27 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ps.c
|
|
|
|
COMMAND ${PYTHON_EXECUTABLE}
|
2013-07-12 03:50:50 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/tools/rdps.py
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/print.ps
|
|
|
|
ps.c
|
|
|
|
DEPENDS
|
|
|
|
${CMAKE_SOURCE_DIR}/tools/rdps.py
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/print.ps
|
|
|
|
)
|
|
|
|
|
2017-09-02 23:42:00 +00:00
|
|
|
set(LIBWIRESHARK_PUBLIC_HEADERS
|
|
|
|
addr_and_mask.h
|
|
|
|
addr_resolv.h
|
|
|
|
address.h
|
|
|
|
address_types.h
|
|
|
|
afn.h
|
|
|
|
aftypes.h
|
|
|
|
app_mem_usage.h
|
|
|
|
arcnet_pids.h
|
|
|
|
arptypes.h
|
|
|
|
asn1.h
|
|
|
|
ax25_pids.h
|
|
|
|
bridged_pids.h
|
|
|
|
capture_dissectors.h
|
|
|
|
charsets.h
|
|
|
|
chdlctypes.h
|
2020-01-10 08:50:09 +00:00
|
|
|
cisco_pid.h
|
2017-09-02 23:42:00 +00:00
|
|
|
color_filters.h
|
|
|
|
column.h
|
|
|
|
column-info.h
|
|
|
|
column-utils.h
|
|
|
|
conversation.h
|
|
|
|
conversation_debug.h
|
|
|
|
conversation_table.h
|
|
|
|
conv_id.h
|
|
|
|
crc10-tvb.h
|
|
|
|
crc16-tvb.h
|
|
|
|
crc32-tvb.h
|
|
|
|
crc6-tvb.h
|
|
|
|
crc8-tvb.h
|
|
|
|
decode_as.h
|
|
|
|
diam_dict.h
|
|
|
|
disabled_protos.h
|
2019-11-04 09:42:29 +00:00
|
|
|
conversation_filter.h
|
2021-02-19 14:08:32 +00:00
|
|
|
dccpservicecodes.h
|
2017-09-02 23:42:00 +00:00
|
|
|
dtd.h
|
|
|
|
dtd_parse.h
|
|
|
|
dvb_chartbl.h
|
|
|
|
eap.h
|
|
|
|
eapol_keydes_types.h
|
|
|
|
epan.h
|
|
|
|
epan_dissect.h
|
|
|
|
etypes.h
|
|
|
|
ex-opt.h
|
|
|
|
except.h
|
|
|
|
exceptions.h
|
|
|
|
expert.h
|
|
|
|
export_object.h
|
|
|
|
exported_pdu.h
|
|
|
|
filter_expressions.h
|
|
|
|
follow.h
|
|
|
|
frame_data.h
|
|
|
|
frame_data_sequence.h
|
|
|
|
funnel.h
|
|
|
|
garrayfix.h
|
2018-02-09 01:20:26 +00:00
|
|
|
#geoip_db.h
|
2017-09-02 23:42:00 +00:00
|
|
|
golay.h
|
|
|
|
guid-utils.h
|
|
|
|
iana_charsets.h
|
|
|
|
iax2_codec_type.h
|
|
|
|
in_cksum.h
|
|
|
|
ip_opts.h
|
|
|
|
ipproto.h
|
|
|
|
ipv4.h
|
|
|
|
ipv6.h
|
|
|
|
lapd_sapi.h
|
|
|
|
llcsaps.h
|
2018-02-09 01:20:26 +00:00
|
|
|
maxmind_db.h
|
2017-09-02 23:42:00 +00:00
|
|
|
media_params.h
|
|
|
|
next_tvb.h
|
|
|
|
nlpid.h
|
|
|
|
oids.h
|
|
|
|
osi-utils.h
|
|
|
|
oui.h
|
|
|
|
packet.h
|
|
|
|
packet_info.h
|
|
|
|
params.h
|
2021-02-17 07:10:31 +00:00
|
|
|
pci-ids.h
|
2017-12-04 05:01:18 +00:00
|
|
|
plugin_if.h
|
2017-09-02 23:42:00 +00:00
|
|
|
ppptypes.h
|
|
|
|
print.h
|
|
|
|
print_stream.h
|
|
|
|
prefs.h
|
|
|
|
prefs-int.h
|
|
|
|
proto.h
|
|
|
|
proto_data.h
|
|
|
|
ps.h
|
|
|
|
ptvcursor.h
|
|
|
|
range.h
|
|
|
|
reassemble.h
|
|
|
|
reedsolomon.h
|
2017-11-21 18:38:44 +00:00
|
|
|
register.h
|
2017-09-02 23:42:00 +00:00
|
|
|
req_resp_hdrs.h
|
|
|
|
rtd_table.h
|
|
|
|
rtp_pt.h
|
|
|
|
sctpppids.h
|
2018-11-18 17:11:42 +00:00
|
|
|
secrets.h
|
2017-09-02 23:42:00 +00:00
|
|
|
show_exception.h
|
|
|
|
slow_protocol_subtypes.h
|
|
|
|
sminmpec.h
|
|
|
|
srt_table.h
|
|
|
|
stat_tap_ui.h
|
|
|
|
stat_groups.h
|
|
|
|
stats_tree.h
|
|
|
|
stats_tree_priv.h
|
|
|
|
stream.h
|
|
|
|
strutil.h
|
|
|
|
t35.h
|
|
|
|
tap.h
|
|
|
|
tap-voip.h
|
|
|
|
timestamp.h
|
|
|
|
timestats.h
|
|
|
|
tfs.h
|
|
|
|
time_fmt.h
|
|
|
|
to_str.h
|
|
|
|
tvbparse.h
|
|
|
|
tvbuff.h
|
|
|
|
tvbuff-int.h
|
|
|
|
uat.h
|
|
|
|
uat-int.h
|
|
|
|
unit_strings.h
|
|
|
|
value_string.h
|
|
|
|
x264_prt_id.h
|
|
|
|
xdlc.h
|
|
|
|
)
|
|
|
|
|
2019-01-01 17:17:55 +00:00
|
|
|
set(LIBWIRESHARK_HEADER_FILES
|
|
|
|
${LIBWIRESHARK_PUBLIC_HEADERS}
|
|
|
|
)
|
|
|
|
|
2018-02-17 00:00:10 +00:00
|
|
|
set(LIBWIRESHARK_NONGENERATED_FILES
|
2009-09-02 16:33:01 +00:00
|
|
|
addr_and_mask.c
|
|
|
|
addr_resolv.c
|
2015-02-08 03:15:55 +00:00
|
|
|
address_types.c
|
2009-09-02 16:33:01 +00:00
|
|
|
afn.c
|
2013-12-08 12:42:10 +00:00
|
|
|
aftypes.c
|
2013-07-30 16:21:15 +00:00
|
|
|
app_mem_usage.c
|
2009-09-02 16:33:01 +00:00
|
|
|
asn1.c
|
2015-12-13 04:38:21 +00:00
|
|
|
capture_dissectors.c
|
2009-09-02 16:33:01 +00:00
|
|
|
charsets.c
|
2015-12-22 20:07:00 +00:00
|
|
|
color_filters.c
|
2009-09-02 16:33:01 +00:00
|
|
|
column.c
|
|
|
|
column-utils.c
|
|
|
|
conversation.c
|
2014-07-23 17:38:55 +00:00
|
|
|
conversation_table.c
|
2014-08-08 18:08:35 +00:00
|
|
|
crc10-tvb.c
|
2011-08-31 09:00:54 +00:00
|
|
|
crc16-tvb.c
|
|
|
|
crc32-tvb.c
|
2014-08-08 20:02:46 +00:00
|
|
|
crc6-tvb.c
|
2011-08-31 09:00:54 +00:00
|
|
|
crc8-tvb.c
|
2013-11-20 19:17:08 +00:00
|
|
|
decode_as.c
|
2013-07-12 01:40:06 +00:00
|
|
|
disabled_protos.c
|
2019-11-04 09:42:29 +00:00
|
|
|
conversation_filter.c
|
2013-12-15 16:28:57 +00:00
|
|
|
dvb_chartbl.c
|
2009-09-02 16:33:01 +00:00
|
|
|
epan.c
|
|
|
|
ex-opt.c
|
|
|
|
except.c
|
|
|
|
expert.c
|
2016-11-24 14:37:01 +00:00
|
|
|
export_object.c
|
2013-05-06 16:31:29 +00:00
|
|
|
exported_pdu.c
|
2011-09-08 09:35:10 +00:00
|
|
|
filter_expressions.c
|
2009-09-02 16:33:01 +00:00
|
|
|
follow.c
|
|
|
|
frame_data.c
|
2013-07-11 23:57:11 +00:00
|
|
|
frame_data_sequence.c
|
2009-09-02 16:33:01 +00:00
|
|
|
funnel.c
|
2018-02-09 01:20:26 +00:00
|
|
|
#geoip_db.c
|
2009-09-02 16:33:01 +00:00
|
|
|
golay.c
|
|
|
|
guid-utils.c
|
2016-05-08 21:15:02 +00:00
|
|
|
iana_charsets.c
|
2009-09-02 16:33:01 +00:00
|
|
|
in_cksum.c
|
|
|
|
ipproto.c
|
2018-02-09 01:20:26 +00:00
|
|
|
maxmind_db.c
|
2016-08-22 06:33:23 +00:00
|
|
|
media_params.c
|
2009-09-02 16:33:01 +00:00
|
|
|
next_tvb.c
|
|
|
|
oids.c
|
|
|
|
osi-utils.c
|
|
|
|
packet.c
|
2021-02-17 07:10:31 +00:00
|
|
|
pci-ids.c
|
2017-12-04 05:01:18 +00:00
|
|
|
plugin_if.c
|
2013-07-12 03:50:50 +00:00
|
|
|
print.c
|
2014-11-22 03:22:54 +00:00
|
|
|
print_stream.c
|
2009-09-02 16:33:01 +00:00
|
|
|
prefs.c
|
|
|
|
proto.c
|
2016-01-25 01:10:20 +00:00
|
|
|
proto_data.c
|
2009-09-02 16:33:01 +00:00
|
|
|
range.c
|
|
|
|
reassemble.c
|
|
|
|
reedsolomon.c
|
2017-11-21 18:38:44 +00:00
|
|
|
register.c
|
2009-09-02 16:33:01 +00:00
|
|
|
req_resp_hdrs.c
|
2015-06-20 16:22:22 +00:00
|
|
|
rtd_table.c
|
2021-02-26 15:31:44 +00:00
|
|
|
sctpppids.c
|
2018-11-18 17:11:42 +00:00
|
|
|
secrets.c
|
2017-09-16 14:52:23 +00:00
|
|
|
sequence_analysis.c
|
Move show_exception() and show_reported_bounds_error() to
epan/show_exception.c, as it's used outside
epan/dissectors/packet-frame.c. Update their callers to include
<epan/show_exception.h> to get their declaration.
Add a CATCH_NONFATAL_ERRORS macro that catches all exceptions that, if
there's more stuff in the packet to dissect after the dissector call
that threw the exception, doesn't mean you shouldn't go ahead and
dissect that stuff. Use it in all those cases, including ones where
BoundsError was inappropriately being caught (you want those passed up
to the top level, so that the packet is reported as having been cut
short in the capture process).
Add a CATCH_BOUNDS_ERRORS macro that catches all exceptions that
correspond to running past the end of the data for a tvbuff; use it
rather than explicitly catching those exceptions individually, and
rather than just catching all exceptions (the only place that
DissectorError should be caught, for example, is at the top level, so
dissector bugs show up in the protocol tree).
Don't catch and then immediately rethrow exceptions without doing
anything else; just let the exceptions go up to the final catcher.
Use show_exception() to report non-fatal errors, rather than doing it
yourself.
If a dissector is called from Lua, catch all non-fatal errors and use
show_exception() to report them rather than catching only
ReportedBoundsError and adding a proto_malformed item.
Don't catch exceptions when constructing a trailer tvbuff in
packet-ieee8023.c - just construct it after the payload has been
dissected, and let whatever exceptions that throws be handled at the top
level.
Avoid some TRY/CATCH/ENDTRY cases by using checks such as
tvb_bytes_exist() before even looking in the tvbuff.
svn path=/trunk/; revision=47924
2013-02-27 22:43:54 +00:00
|
|
|
show_exception.c
|
Further refactor SRT stats.
Create "common" SRT tap data collection intended for all GUIs. Refactor/merge functionality of existing dissectors that have SRT support (AFP, DCERPC, Diameter, FC, GTP, LDAP, NCP, RPC, SCIS, SMB, and SMB2) for both TShark and GTK.
SMB and DCERPC "tap packet filtering" were different between TShark and GTK, so I went with GTK filter logic.
CAMEL "tap packet filtering" was different between TShark and GTK, so GTK filtering logic was pushed to the dissector and the TShark tap was left alone.
Change-Id: I7d6eaad0673fe628ef337f9165d7ed94f4a5e1cc
Reviewed-on: https://code.wireshark.org/review/8894
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-06-16 21:07:04 +00:00
|
|
|
srt_table.c
|
2014-11-14 18:51:40 +00:00
|
|
|
stat_tap_ui.c
|
2009-09-02 16:33:01 +00:00
|
|
|
stats_tree.c
|
|
|
|
strutil.c
|
|
|
|
stream.c
|
|
|
|
t35.c
|
|
|
|
tap.c
|
|
|
|
timestamp.c
|
2013-06-26 00:18:44 +00:00
|
|
|
timestats.c
|
2009-09-02 16:33:01 +00:00
|
|
|
tfs.c
|
|
|
|
to_str.c
|
|
|
|
tvbparse.c
|
|
|
|
tvbuff.c
|
2013-12-21 14:33:54 +00:00
|
|
|
tvbuff_base64.c
|
2019-04-10 10:52:52 +00:00
|
|
|
tvbuff_brotli.c
|
2013-07-31 19:58:13 +00:00
|
|
|
tvbuff_composite.c
|
2013-07-14 07:42:19 +00:00
|
|
|
tvbuff_real.c
|
|
|
|
tvbuff_subset.c
|
2013-12-06 23:23:44 +00:00
|
|
|
tvbuff_zlib.c
|
2019-07-05 14:08:18 +00:00
|
|
|
tvbuff_lz77.c
|
|
|
|
tvbuff_lz77huff.c
|
|
|
|
tvbuff_lznt1.c
|
2009-09-02 16:33:01 +00:00
|
|
|
uat.c
|
|
|
|
value_string.c
|
2016-12-12 00:16:52 +00:00
|
|
|
unit_strings.c
|
2009-09-02 16:33:01 +00:00
|
|
|
xdlc.c
|
2017-09-23 13:05:21 +00:00
|
|
|
protobuf-helper.c
|
|
|
|
protobuf_lang_tree.c
|
2018-01-15 20:54:17 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ps.c
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
|
2018-02-17 00:00:10 +00:00
|
|
|
set(LIBWIRESHARK_FILES ${LIBWIRESHARK_NONGENERATED_FILES})
|
2015-12-05 17:12:50 +00:00
|
|
|
|
2018-02-17 00:00:10 +00:00
|
|
|
add_lex_files(LEX_FILES LIBWIRESHARK_FILES
|
2009-09-02 16:33:01 +00:00
|
|
|
diam_dict.l
|
|
|
|
dtd_parse.l
|
|
|
|
dtd_preparse.l
|
2018-02-16 03:38:36 +00:00
|
|
|
radius_dict.l
|
2018-02-17 00:00:10 +00:00
|
|
|
uat_load.l
|
2017-09-23 13:05:21 +00:00
|
|
|
protobuf_lang_scanner.l
|
2018-02-16 03:38:36 +00:00
|
|
|
)
|
2009-09-02 16:33:01 +00:00
|
|
|
|
2018-02-17 00:00:10 +00:00
|
|
|
add_lemon_files(LEMON_FILES LIBWIRESHARK_FILES
|
2009-09-02 16:33:01 +00:00
|
|
|
dtd_grammar.lemon
|
2020-11-17 12:48:00 +00:00
|
|
|
protobuf_lang_parser.lemon
|
2017-09-23 13:05:21 +00:00
|
|
|
)
|
|
|
|
|
2016-09-30 14:06:15 +00:00
|
|
|
set_source_files_properties(
|
2018-02-17 00:00:10 +00:00
|
|
|
${LIBWIRESHARK_FILES}
|
2016-09-30 14:06:15 +00:00
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
|
|
|
|
)
|
2009-11-07 10:07:00 +00:00
|
|
|
|
2017-11-01 20:22:32 +00:00
|
|
|
add_library(epan
|
2019-01-01 17:17:55 +00:00
|
|
|
#Included so that Visual Studio can properly put header files in solution
|
|
|
|
${LIBWIRESHARK_HEADER_FILES}
|
|
|
|
|
2009-09-02 16:33:01 +00:00
|
|
|
${LIBWIRESHARK_FILES}
|
2016-02-22 06:21:53 +00:00
|
|
|
$<TARGET_OBJECTS:crypt>
|
|
|
|
$<TARGET_OBJECTS:dfilter>
|
|
|
|
$<TARGET_OBJECTS:dissectors>
|
2016-06-13 22:11:55 +00:00
|
|
|
$<TARGET_OBJECTS:dissectors-corba>
|
2016-02-22 06:21:53 +00:00
|
|
|
$<TARGET_OBJECTS:ftypes>
|
2019-01-12 11:43:18 +00:00
|
|
|
$<TARGET_OBJECTS:version_info>
|
2016-02-22 06:21:53 +00:00
|
|
|
$<TARGET_OBJECTS:wmem>
|
2019-01-10 01:45:00 +00:00
|
|
|
$<$<BOOL:${LUA_FOUND}>:$<TARGET_OBJECTS:wslua>>
|
2015-01-10 21:29:57 +00:00
|
|
|
${CMAKE_BINARY_DIR}/image/libwireshark.rc
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
2013-02-25 18:12:20 +00:00
|
|
|
|
2017-09-24 01:30:08 +00:00
|
|
|
set_target_properties(epan PROPERTIES
|
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
|
|
|
LINK_FLAGS "${WS_LINK_FLAGS}"
|
2018-06-06 19:01:44 +00:00
|
|
|
VERSION "0.0.0" SOVERSION 0
|
2019-01-21 10:56:57 +00:00
|
|
|
INSTALL_RPATH "${LIBRARY_INSTALL_RPATH}"
|
2019-01-30 23:56:54 +00:00
|
|
|
# By default the name for a library with target name epan will be libepan,
|
|
|
|
# but Ethereal is now named Wireshark
|
2014-07-09 13:39:41 +00:00
|
|
|
OUTPUT_NAME "wireshark"
|
|
|
|
PREFIX "lib"
|
|
|
|
FOLDER "DLLs"
|
|
|
|
)
|
2021-03-29 10:10:16 +00:00
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(epan PROPERTIES LINK_FLAGS_DEBUG "${WS_MSVC_DEBUG_LINK_FLAGS}")
|
|
|
|
endif()
|
2009-09-02 16:33:01 +00:00
|
|
|
|
2018-08-23 21:03:28 +00:00
|
|
|
target_link_libraries(epan
|
|
|
|
PUBLIC
|
|
|
|
wiretap
|
|
|
|
wsutil
|
|
|
|
${GLIB2_LIBRARIES}
|
|
|
|
PRIVATE
|
2019-04-10 10:52:52 +00:00
|
|
|
${BROTLI_LIBRARIES}
|
2018-08-23 21:03:28 +00:00
|
|
|
${CARES_LIBRARIES}
|
|
|
|
${GCRYPT_LIBRARIES}
|
|
|
|
${GIO2_LIBRARIES}
|
|
|
|
${GTHREAD2_LIBRARIES}
|
|
|
|
${GNUTLS_LIBRARIES}
|
|
|
|
${KERBEROS_LIBRARIES}
|
|
|
|
${LUA_LIBRARIES}
|
|
|
|
${LZ4_LIBRARIES}
|
|
|
|
${M_LIBRARIES}
|
|
|
|
${NGHTTP2_LIBRARIES}
|
|
|
|
${SMI_LIBRARIES}
|
|
|
|
${SNAPPY_LIBRARIES}
|
|
|
|
${WIN_PSAPI_LIBRARY}
|
|
|
|
${LIBXML2_LIBRARIES}
|
2018-11-27 19:37:33 +00:00
|
|
|
${ZLIB_LIBRARIES}
|
2019-08-12 21:57:45 +00:00
|
|
|
${ZSTD_LIBRARIES}
|
2018-08-23 21:03:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(epan
|
|
|
|
INTERFACE
|
2021-02-17 02:04:59 +00:00
|
|
|
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
|
|
|
|
$<INSTALL_INTERFACE:include/wireshark>
|
2018-08-23 21:03:28 +00:00
|
|
|
)
|
2009-09-23 15:56:44 +00:00
|
|
|
|
2021-02-17 02:04:59 +00:00
|
|
|
target_include_directories(epan
|
|
|
|
SYSTEM PUBLIC
|
|
|
|
${GLIB2_INCLUDE_DIRS}
|
|
|
|
)
|
2019-01-10 01:45:00 +00:00
|
|
|
|
2021-02-14 22:08:15 +00:00
|
|
|
target_include_directories(epan
|
|
|
|
SYSTEM PRIVATE
|
|
|
|
${BROTLI_INCLUDE_DIRS}
|
|
|
|
${CARES_INCLUDE_DIRS}
|
|
|
|
${GLIB2_INCLUDE_DIRS}
|
|
|
|
${GNUTLS_INCLUDE_DIRS}
|
|
|
|
${GTHREAD2_INCLUDE_DIRS}
|
|
|
|
${LIBXML2_INCLUDE_DIRS}
|
|
|
|
${LUA_INCLUDE_DIRS}
|
|
|
|
${NGHTTP2_INCLUDE_DIRS}
|
|
|
|
${SMI_INCLUDE_DIRS}
|
|
|
|
${ZLIB_INCLUDE_DIRS}
|
2021-02-17 02:04:59 +00:00
|
|
|
PRIVATE
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2021-02-14 22:08:15 +00:00
|
|
|
)
|
|
|
|
|
2009-09-08 15:56:16 +00:00
|
|
|
add_dependencies(epan lemon)
|
2009-09-08 07:03:57 +00:00
|
|
|
|
2017-11-01 20:22:32 +00:00
|
|
|
install(TARGETS epan
|
2018-08-23 21:03:28 +00:00
|
|
|
EXPORT WiresharkTargets
|
2018-11-26 02:08:59 +00:00
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
2017-11-01 20:22:32 +00:00
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
)
|
2009-09-02 16:33:01 +00:00
|
|
|
|
2018-11-23 20:39:48 +00:00
|
|
|
install(FILES ${LIBWIRESHARK_PUBLIC_HEADERS}
|
2019-02-01 16:25:24 +00:00
|
|
|
DESTINATION "${PROJECT_INSTALL_INCLUDEDIR}/epan"
|
2018-11-23 20:39:48 +00:00
|
|
|
)
|
2017-09-02 23:42:00 +00:00
|
|
|
|
2015-03-13 16:21:01 +00:00
|
|
|
add_executable(exntest EXCLUDE_FROM_ALL exntest.c except.c)
|
2014-06-18 18:06:04 +00:00
|
|
|
target_link_libraries(exntest ${GLIB2_LIBRARIES})
|
2014-11-21 23:27:56 +00:00
|
|
|
set_target_properties(exntest PROPERTIES
|
|
|
|
FOLDER "Tests"
|
2018-03-07 19:35:33 +00:00
|
|
|
EXCLUDE_FROM_DEFAULT_BUILD True
|
2014-11-21 23:27:56 +00:00
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
|
|
|
)
|
2014-06-18 18:06:04 +00:00
|
|
|
|
2015-03-13 16:21:01 +00:00
|
|
|
add_executable(oids_test EXCLUDE_FROM_ALL oids_test.c)
|
|
|
|
target_link_libraries(oids_test epan ${ZLIB_LIBRARIES})
|
2014-11-21 23:27:56 +00:00
|
|
|
set_target_properties(oids_test PROPERTIES
|
|
|
|
FOLDER "Tests"
|
2018-03-07 19:35:33 +00:00
|
|
|
EXCLUDE_FROM_DEFAULT_BUILD True
|
2014-11-21 23:27:56 +00:00
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
|
|
|
)
|
2014-06-18 18:06:04 +00:00
|
|
|
|
2015-03-13 16:21:01 +00:00
|
|
|
add_executable(reassemble_test EXCLUDE_FROM_ALL reassemble_test.c)
|
2014-06-18 18:06:04 +00:00
|
|
|
target_link_libraries(reassemble_test epan)
|
2014-11-21 23:27:56 +00:00
|
|
|
set_target_properties(reassemble_test PROPERTIES
|
|
|
|
FOLDER "Tests"
|
2018-03-07 19:35:33 +00:00
|
|
|
EXCLUDE_FROM_DEFAULT_BUILD True
|
2014-11-21 23:27:56 +00:00
|
|
|
)
|
2014-06-18 18:06:04 +00:00
|
|
|
|
2015-03-13 16:21:01 +00:00
|
|
|
add_executable(tvbtest EXCLUDE_FROM_ALL tvbtest.c)
|
2014-06-18 18:06:04 +00:00
|
|
|
target_link_libraries(tvbtest epan)
|
2014-11-21 23:27:56 +00:00
|
|
|
set_target_properties(tvbtest PROPERTIES
|
|
|
|
FOLDER "Tests"
|
2018-03-07 19:35:33 +00:00
|
|
|
EXCLUDE_FROM_DEFAULT_BUILD True
|
2014-11-21 23:27:56 +00:00
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
|
|
|
)
|
2014-06-18 18:06:04 +00:00
|
|
|
|
2016-05-11 17:59:44 +00:00
|
|
|
CHECKAPI(
|
|
|
|
NAME
|
|
|
|
epan
|
|
|
|
SWITCHES
|
|
|
|
SOURCES
|
2018-02-17 00:00:10 +00:00
|
|
|
${LIBWIRESHARK_NONGENERATED_FILES}
|
2016-05-11 17:59:44 +00:00
|
|
|
)
|
2016-03-11 19:51:39 +00:00
|
|
|
|
2012-10-24 02:04:40 +00:00
|
|
|
#
|
2019-07-26 18:43:17 +00:00
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2012-10-24 02:04:40 +00:00
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# c-basic-offset: 8
|
|
|
|
# tab-width: 8
|
|
|
|
# indent-tabs-mode: t
|
|
|
|
# End:
|
|
|
|
#
|
|
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
#
|