2009-09-02 16:33:01 +00:00
|
|
|
# CMakeLists.txt
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2009-09-02 16:33:01 +00:00
|
|
|
#
|
|
|
|
|
2013-10-15 07:30:05 +00:00
|
|
|
include(UseABICheck)
|
|
|
|
|
2013-11-08 00:23:32 +00:00
|
|
|
if (HAVE_HFI_SECTION_INIT)
|
|
|
|
add_definitions(
|
|
|
|
-DHAVE_HFI_SECTION_INIT
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2016-02-22 06:21:53 +00:00
|
|
|
add_subdirectory(crypt)
|
|
|
|
add_subdirectory(dfilter)
|
|
|
|
add_subdirectory(dissectors)
|
|
|
|
add_subdirectory(ftypes)
|
|
|
|
add_subdirectory(wmem)
|
2009-09-09 13:20:33 +00:00
|
|
|
if (HAVE_LIBLUA)
|
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
|
|
|
|
2009-09-16 04:20:58 +00:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2016-02-22 06:21:53 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2009-09-09 13:20:33 +00:00
|
|
|
)
|
|
|
|
|
2014-10-10 20:53:20 +00:00
|
|
|
set(COMPRESS_FILES
|
|
|
|
compress/lzxpress.c
|
|
|
|
)
|
|
|
|
source_group(compress FILES ${COMPRESS_FILES})
|
|
|
|
|
2009-10-11 07:32:51 +00:00
|
|
|
set(LIBWIRESHARK_ASM_FILES
|
2009-10-09 19:43:42 +00:00
|
|
|
asm_utils.c
|
2009-11-11 16:20:37 +00:00
|
|
|
# todo
|
2009-10-09 19:43:42 +00:00
|
|
|
# !IFDEF NASM
|
|
|
|
# asm_utils_win32_x86.obj: asm_utils_win32_x86.asm
|
|
|
|
# $(NASM) -f $(WIRESHARK_TARGET_PLATFORM) -o $@ $?
|
|
|
|
# !ENDIF
|
|
|
|
# ...
|
|
|
|
# !IF defined(NASM) && "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
|
|
|
|
# asm_utils_win32_x86.obj
|
|
|
|
# !ELSE
|
|
|
|
# asm_utils.obj
|
|
|
|
# !ENDIF
|
|
|
|
)
|
|
|
|
|
2016-02-24 16:55:27 +00:00
|
|
|
add_custom_target(
|
2014-12-22 15:27:14 +00:00
|
|
|
update-sminmpec
|
|
|
|
COMMAND ${PERL_EXECUTABLE}
|
|
|
|
${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
|
|
|
|
DEPENDS
|
|
|
|
enterprise-numbers
|
|
|
|
${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
|
2009-10-11 07:28:26 +00:00
|
|
|
)
|
2015-01-05 23:40:52 +00:00
|
|
|
set_target_properties(update-sminmpec PROPERTIES FOLDER "tools")
|
2009-10-11 07:28:26 +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
|
|
|
|
)
|
|
|
|
|
2009-09-02 16:33:01 +00:00
|
|
|
set(LIBWIRESHARK_FILES
|
|
|
|
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
|
|
|
|
circuit.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
|
2015-10-29 03:30:55 +00:00
|
|
|
dissector_filters.c
|
2013-12-15 16:28:57 +00:00
|
|
|
dvb_chartbl.c
|
2013-10-23 01:36:49 +00:00
|
|
|
dwarf.c
|
2009-09-02 16:33:01 +00:00
|
|
|
epan.c
|
|
|
|
ex-opt.c
|
|
|
|
except.c
|
|
|
|
expert.c
|
2013-05-06 16:31:29 +00:00
|
|
|
exported_pdu.c
|
2015-06-05 09:19:37 +00:00
|
|
|
plugin_if.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
|
|
|
|
geoip_db.c
|
|
|
|
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
|
|
|
|
ipv4.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
|
2014-05-31 22:07:08 +00:00
|
|
|
oui.c
|
2013-07-11 23:57:11 +00:00
|
|
|
packet-range.c
|
2009-09-02 16:33:01 +00:00
|
|
|
packet.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
|
2013-07-12 03:50:50 +00:00
|
|
|
ps.c
|
2009-09-02 16:33:01 +00:00
|
|
|
range.c
|
|
|
|
reassemble.c
|
|
|
|
reedsolomon.c
|
|
|
|
req_resp_hdrs.c
|
2015-06-20 16:22:22 +00:00
|
|
|
rtd_table.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
|
2009-09-02 16:33:01 +00:00
|
|
|
sminmpec.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
|
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
|
2009-09-02 16:33:01 +00:00
|
|
|
uat.c
|
|
|
|
value_string.c
|
|
|
|
xdlc.c
|
2016-04-19 07:03:08 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/ws_version_info.c
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
|
2015-12-05 17:12:50 +00:00
|
|
|
set(LIBWIRESHARK_CLEAN_FILES
|
|
|
|
${LIBWIRESHARK_FILES}
|
|
|
|
)
|
|
|
|
|
2016-03-11 19:51:39 +00:00
|
|
|
add_lex_files(LEX_FILES GENERATED_FILES
|
2009-09-02 16:33:01 +00:00
|
|
|
diam_dict.l
|
|
|
|
dtd_parse.l
|
|
|
|
dtd_preparse.l
|
|
|
|
radius_dict.l
|
|
|
|
uat_load.l
|
|
|
|
)
|
|
|
|
|
2016-03-11 19:51:39 +00:00
|
|
|
add_lemon_files(LEMON_FILES GENERATED_FILES
|
2009-09-02 16:33:01 +00:00
|
|
|
dtd_grammar.lemon
|
|
|
|
)
|
|
|
|
|
2009-09-23 15:56:44 +00:00
|
|
|
set(epan_LIBS
|
|
|
|
wiretap
|
|
|
|
wsutil
|
|
|
|
${CARES_LIBRARIES}
|
|
|
|
${GCRYPT_LIBRARIES}
|
2016-09-26 14:25:11 +00:00
|
|
|
${GEOIP_LIBRARIES}
|
|
|
|
${GLIB2_LIBRARIES}
|
2009-09-23 15:56:44 +00:00
|
|
|
${GNUTLS_LIBRARIES}
|
2016-09-26 14:25:11 +00:00
|
|
|
${KERBEROS_LIBRARIES}
|
|
|
|
${LUA_LIBRARIES}
|
|
|
|
${LZ4_LIBRARIES}
|
2009-09-23 15:56:44 +00:00
|
|
|
${M_LIBRARIES}
|
2016-08-26 13:18:29 +00:00
|
|
|
${NGHTTP2_LIBRARIES}
|
2016-09-26 14:25:11 +00:00
|
|
|
${PCAP_LIBRARIES}
|
|
|
|
${SMI_LIBRARIES}
|
|
|
|
${SNAPPY_LIBRARIES}
|
2013-10-06 21:25:44 +00:00
|
|
|
${WIN_PSAPI_LIBRARY}
|
2009-09-23 15:56:44 +00:00
|
|
|
)
|
|
|
|
|
2009-11-07 10:07:00 +00:00
|
|
|
set(CLEAN_FILES
|
|
|
|
${LIBWIRESHARK_CLEAN_FILES}
|
2014-10-10 20:53:20 +00:00
|
|
|
${COMPRESS_FILES}
|
2009-11-07 10:07:00 +00:00
|
|
|
${LIBWIRESHARK_ASM_FILES}
|
|
|
|
)
|
|
|
|
|
2016-09-30 14:06:15 +00:00
|
|
|
set_source_files_properties(
|
|
|
|
${CLEAN_FILES}
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
|
|
|
|
)
|
2009-11-07 10:07:00 +00:00
|
|
|
|
2016-05-10 09:59:44 +00:00
|
|
|
# Cannot use $<$<BOOL:${HAVE_LIBLUA}>:$<TARGET_OBJECTS:wslua>> as that breaks
|
|
|
|
# get_target_property(_libwireshark_location epan LOCATION).
|
|
|
|
if(HAVE_LIBLUA)
|
|
|
|
set(wslua_sources $<TARGET_OBJECTS:wslua>)
|
|
|
|
else()
|
|
|
|
set(wslua_sources)
|
|
|
|
endif()
|
2009-11-17 11:58:36 +00:00
|
|
|
add_library(epan ${LINK_MODE_LIB}
|
2009-09-02 16:33:01 +00:00
|
|
|
${LIBWIRESHARK_FILES}
|
2016-03-11 19:51:39 +00:00
|
|
|
${GENERATED_FILES}
|
2014-10-10 20:53:20 +00:00
|
|
|
${COMPRESS_FILES}
|
2009-10-11 07:32:51 +00:00
|
|
|
${LIBWIRESHARK_ASM_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>
|
|
|
|
$<TARGET_OBJECTS:wmem>
|
2016-05-10 09:59:44 +00:00
|
|
|
${wslua_sources}
|
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
|
|
|
|
2016-04-20 22:51:12 +00:00
|
|
|
add_dependencies(epan version)
|
|
|
|
|
2015-10-05 20:09:52 +00:00
|
|
|
set(FULL_SO_VERSION "0.0.0")
|
2013-02-25 18:12:20 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
set_target_properties(epan PROPERTIES COMPILE_DEFINITIONS "WS_BUILD_DLL")
|
2016-08-16 21:21:59 +00:00
|
|
|
set_target_properties(epan PROPERTIES COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}")
|
2010-09-23 07:02:33 +00:00
|
|
|
set_target_properties(epan PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
|
2013-02-25 18:12:20 +00:00
|
|
|
set_target_properties(epan PROPERTIES VERSION ${FULL_SO_VERSION} SOVERSION 0)
|
2009-11-07 10:07:00 +00:00
|
|
|
|
2014-10-10 01:24:18 +00:00
|
|
|
if(ENABLE_APPLICATION_BUNDLE)
|
|
|
|
set_target_properties(epan PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Frameworks
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-10-15 07:30:05 +00:00
|
|
|
ABICHECK(libwireshark)
|
2013-02-24 21:14:17 +00:00
|
|
|
|
2015-12-22 20:07:00 +00:00
|
|
|
set(TOP_LEVEL_HEADERS ${CMAKE_BINARY_DIR}/config.h ${CMAKE_SOURCE_DIR}/register.h)
|
2013-02-25 18:12:20 +00:00
|
|
|
file(GLOB CRYPT_HEADERS crypt/*.h)
|
2014-10-10 20:53:20 +00:00
|
|
|
file(GLOB COMPRESS_HEADERS compress/*.h)
|
2013-02-25 18:12:20 +00:00
|
|
|
file(GLOB DFILTER_HEADERS dfilter/*.h ../tools/lemon/cppmagic.h)
|
|
|
|
file(GLOB D_HEADERS dissectors/*.h)
|
|
|
|
file(GLOB FTYPES_HEADERS ftypes/*.h)
|
|
|
|
file(GLOB WMEM_HEADERS wmem/*.h)
|
|
|
|
|
|
|
|
add_custom_command(OUTPUT libwireshark.abi.tar.gz
|
2015-08-16 00:05:17 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove_directory ${ABICHECK_TMPDIR}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}/epan
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}/crypt
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}/compress
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}/dfilter
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}/dissectors
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}/ftypes
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}/wmem
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${TOP_LEVEL_HEADERS} ${ABICHECK_TMPDIR} ${ABI_COPY_FLAGS}
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${ABICHECK_HEADERS} ${ABICHECK_TMPDIR}/epan ${ABI_COPY_FLAGS}
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${CRYPT_HEADERS} ${ABICHECK_TMPDIR}/crypt ${ABI_COPY_FLAGS}
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${COMPRESS_HEADERS} ${ABICHECK_TMPDIR}/compress ${ABI_COPY_FLAGS}
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${DFILTER_HEADERS} ${ABICHECK_TMPDIR}/dfilter ${ABI_COPY_FLAGS}
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${D_HEADERS} ${ABICHECK_TMPDIR}/dissectors ${ABI_COPY_FLAGS}
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${FTYPES_HEADERS} ${ABICHECK_TMPDIR}/ftypes ${ABI_COPY_FLAGS}
|
|
|
|
COMMAND ${ABI_COPY_COMMAND} ${WMEM_HEADERS} ${ABICHECK_TMPDIR}/wmem ${ABI_COPY_FLAGS}
|
2013-10-19 14:55:12 +00:00
|
|
|
COMMAND rm -f ${ABICHECK_TMPDIR}/dissectors/x11-extension-implementation.h
|
|
|
|
${ABICHECK_TMPDIR}/dissectors/packet-rtps.h
|
|
|
|
${ABICHECK_TMPDIR}/dissectors/x11-glx-render-enum.h
|
|
|
|
${ABICHECK_TMPDIR}/dissectors/x11-register-info.h
|
|
|
|
${ABICHECK_TMPDIR}/dissectors/packet-idmp.h
|
2013-10-19 15:51:36 +00:00
|
|
|
COMMAND ${ABICHECK_COMMAND}
|
2013-10-19 14:55:12 +00:00
|
|
|
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps/libwireshark/libwireshark_* ${CMAKE_CURRENT_BINARY_DIR}/libwireshark.abi.tar.gz
|
2015-08-16 00:05:17 +00:00
|
|
|
COMMAND rm -rf ${ABICHECK_TMPDIR} ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps
|
|
|
|
# COMMAND rm -rf ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps ${ABICHECK_TMPDIR}/config.h
|
|
|
|
# ${ABICHECK_TMPDIR}/epan/* ${ABICHECK_TMPDIR}/crypt/*
|
|
|
|
# ${ABICHECK_TMPDIR}/epan/* ${ABICHECK_TMPDIR}/compress/*
|
|
|
|
# ${ABICHECK_TMPDIR}/dfilter/* ${ABICHECK_TMPDIR}/dissectors/*
|
|
|
|
# ${ABICHECK_TMPDIR}/ftypes/* ${ABICHECK_TMPDIR}/wmem/*
|
2013-10-15 07:30:05 +00:00
|
|
|
DEPENDS ${HEADERS}
|
2014-10-10 20:53:20 +00:00
|
|
|
${CRYPT_HEADERS} ${COMPRESS_HEADERS} ${DFILTER_HEADERS} ${D_HEADERS}
|
2016-08-26 13:18:29 +00:00
|
|
|
${FTYPES_HEADERS} ${WMEM_HEADERS} epan)
|
2013-02-25 18:12:20 +00:00
|
|
|
|
2010-02-25 09:26:27 +00:00
|
|
|
# By default the name for a library with target name epan will be libepan,
|
|
|
|
# but Ethereal is now named Wireshark
|
2016-02-24 16:55:27 +00:00
|
|
|
set_target_properties(epan PROPERTIES
|
2014-07-09 13:39:41 +00:00
|
|
|
OUTPUT_NAME "wireshark"
|
|
|
|
PREFIX "lib"
|
|
|
|
FOLDER "DLLs"
|
|
|
|
)
|
2009-09-02 16:33:01 +00:00
|
|
|
|
2009-09-23 15:56:44 +00:00
|
|
|
target_link_libraries(epan ${epan_LIBS})
|
|
|
|
|
2009-09-08 15:56:16 +00:00
|
|
|
add_dependencies(epan lemon)
|
2009-09-08 07:03:57 +00:00
|
|
|
|
2009-11-17 11:58:36 +00:00
|
|
|
if(NOT ${ENABLE_STATIC})
|
|
|
|
install(TARGETS epan
|
2014-05-29 03:58:05 +00:00
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
2009-11-17 11:58:36 +00:00
|
|
|
)
|
|
|
|
endif()
|
2009-09-02 16:33:01 +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"
|
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
2016-08-16 21:21:59 +00:00
|
|
|
COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}"
|
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(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"
|
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
2016-08-16 21:21:59 +00:00
|
|
|
COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}"
|
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(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"
|
|
|
|
)
|
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"
|
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
2016-08-16 21:21:59 +00:00
|
|
|
COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}"
|
2014-11-21 23:27:56 +00:00
|
|
|
)
|
2014-06-18 18:06:04 +00:00
|
|
|
|
2016-05-11 17:59:44 +00:00
|
|
|
CHECKAPI(
|
|
|
|
NAME
|
|
|
|
epan
|
|
|
|
SWITCHES
|
|
|
|
-g termoutput -build
|
|
|
|
SOURCES
|
|
|
|
${LIBWIRESHARK_FILES}
|
|
|
|
)
|
2016-03-11 19:51:39 +00:00
|
|
|
|
2012-10-24 02:04:40 +00:00
|
|
|
#
|
|
|
|
# Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
#
|