2009-09-16 06:30:03 +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-16 06:30:03 +00:00
|
|
|
#
|
|
|
|
|
2015-01-18 21:27:13 +00:00
|
|
|
include(WiresharkPlugin)
|
2015-01-10 21:29:57 +00:00
|
|
|
|
2015-11-23 21:51:47 +00:00
|
|
|
# Plugin name and version info (major minor micro extra)
|
2015-01-18 21:27:13 +00:00
|
|
|
set_module_info(docsis 0 0 5 0)
|
2015-01-10 21:29:57 +00:00
|
|
|
|
|
|
|
# The sources for the plugin
|
2009-09-16 06:30:03 +00:00
|
|
|
set(DISSECTOR_SRC
|
|
|
|
packet-bintrngreq.c
|
|
|
|
packet-bpkmattr.c
|
|
|
|
packet-bpkmreq.c
|
|
|
|
packet-bpkmrsp.c
|
2010-12-16 07:01:22 +00:00
|
|
|
packet-cmctrlreq.c
|
|
|
|
packet-cmctrlrsp.c
|
2011-02-07 22:19:38 +00:00
|
|
|
packet-cmstatus.c
|
2009-09-16 06:30:03 +00:00
|
|
|
packet-intrngreq.c
|
2010-12-16 07:01:22 +00:00
|
|
|
packet-dbcreq.c
|
|
|
|
packet-dbcrsp.c
|
|
|
|
packet-dbcack.c
|
2009-09-16 06:30:03 +00:00
|
|
|
packet-dccack.c
|
|
|
|
packet-dccreq.c
|
|
|
|
packet-dccrsp.c
|
|
|
|
packet-dcd.c
|
2016-06-29 12:25:34 +00:00
|
|
|
packet-dpd.c
|
2010-12-16 07:01:22 +00:00
|
|
|
packet-dpvreq.c
|
|
|
|
packet-dpvrsp.c
|
2009-09-16 06:30:03 +00:00
|
|
|
packet-docsis.c
|
|
|
|
packet-dsaack.c
|
|
|
|
packet-dsareq.c
|
|
|
|
packet-dsarsp.c
|
|
|
|
packet-dscack.c
|
|
|
|
packet-dscreq.c
|
|
|
|
packet-dscrsp.c
|
|
|
|
packet-dsdreq.c
|
|
|
|
packet-dsdrsp.c
|
|
|
|
packet-macmgmt.c
|
|
|
|
packet-map.c
|
|
|
|
packet-mdd.c
|
2016-06-20 12:29:10 +00:00
|
|
|
packet-ocd.c
|
2009-09-16 06:30:03 +00:00
|
|
|
packet-regack.c
|
|
|
|
packet-regreq.c
|
|
|
|
packet-regreqmp.c
|
|
|
|
packet-regrsp.c
|
|
|
|
packet-regrspmp.c
|
|
|
|
packet-rngreq.c
|
|
|
|
packet-rngrsp.c
|
|
|
|
packet-sync.c
|
|
|
|
packet-tlv.c
|
2010-12-16 07:01:22 +00:00
|
|
|
packet-tlv-cmctrl.c
|
2009-09-16 06:30:03 +00:00
|
|
|
packet-type29ucd.c
|
2015-11-18 21:28:07 +00:00
|
|
|
packet-type35ucd.c
|
2009-09-16 06:30:03 +00:00
|
|
|
packet-uccreq.c
|
|
|
|
packet-uccrsp.c
|
|
|
|
packet-ucd.c
|
|
|
|
packet-vendor.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set(PLUGIN_FILES
|
|
|
|
plugin.c
|
|
|
|
${DISSECTOR_SRC}
|
|
|
|
)
|
|
|
|
|
2009-11-07 10:07:00 +00:00
|
|
|
set(CLEAN_FILES
|
|
|
|
${PLUGIN_FILES}
|
|
|
|
)
|
|
|
|
|
CMake: Add /WX
Add "/WX" to the Visual C++ compiler flags if DISABLE_WERROR is off,
similar to config.nmake.
We haven't compiled C++ code with -Wshorten-64-to-32 for quite
some time so there's no need to add -Wno-shorten-64-to-32 in
ui/qt/CMakeLists.txt.
Additionally, squelch
----
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3050) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3065) : see reference to function template instantiation 'void std::_Median<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3127) : see reference to function template instantiation 'std::pair<_RanIt,_RanIt> std::_Unguarded_partition<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3157) : see reference to function template instantiation 'void std::_Sort<_Iter,int,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Diff,_Pr)' being compiled
with
[
_Iter=QList<QString>::iterator
, _RanIt=QList<QString>::iterator
, _Diff=int
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
.\rpc_service_response_time_dialog.cpp(130) : see reference to function template instantiation 'void std::sort<QList<QString>::iterator,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3051) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3052) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3053) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
----
in both rpc_service_response_time_dialog.cpp and wireshark_application.cpp
so that we'll compile successfully.
Change-Id: I457bcede99dcb1f3c1001f1f559c4901bb000357
Reviewed-on: https://code.wireshark.org/review/10533
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-09-15 00:19:02 +00:00
|
|
|
if (WERROR_COMMON_FLAGS)
|
2009-11-07 10:07:00 +00:00
|
|
|
set_source_files_properties(
|
|
|
|
${CLEAN_FILES}
|
|
|
|
PROPERTIES
|
CMake: Add /WX
Add "/WX" to the Visual C++ compiler flags if DISABLE_WERROR is off,
similar to config.nmake.
We haven't compiled C++ code with -Wshorten-64-to-32 for quite
some time so there's no need to add -Wno-shorten-64-to-32 in
ui/qt/CMakeLists.txt.
Additionally, squelch
----
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3050) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3065) : see reference to function template instantiation 'void std::_Median<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3127) : see reference to function template instantiation 'std::pair<_RanIt,_RanIt> std::_Unguarded_partition<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3157) : see reference to function template instantiation 'void std::_Sort<_Iter,int,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Diff,_Pr)' being compiled
with
[
_Iter=QList<QString>::iterator
, _RanIt=QList<QString>::iterator
, _Diff=int
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
.\rpc_service_response_time_dialog.cpp(130) : see reference to function template instantiation 'void std::sort<QList<QString>::iterator,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3051) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3052) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3053) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
----
in both rpc_service_response_time_dialog.cpp and wireshark_application.cpp
so that we'll compile successfully.
Change-Id: I457bcede99dcb1f3c1001f1f559c4901bb000357
Reviewed-on: https://code.wireshark.org/review/10533
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-09-15 00:19:02 +00:00
|
|
|
COMPILE_FLAGS ${WERROR_COMMON_FLAGS}
|
2009-11-07 10:07:00 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2009-09-16 06:30:03 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
2009-10-09 16:39:34 +00:00
|
|
|
register_dissector_files(plugin.c
|
|
|
|
plugin
|
|
|
|
${DISSECTOR_SRC}
|
2009-09-16 06:30:03 +00:00
|
|
|
)
|
|
|
|
|
2015-01-18 21:27:13 +00:00
|
|
|
add_plugin_library(docsis)
|
2009-10-06 18:58:09 +00:00
|
|
|
|
2009-09-21 00:19:07 +00:00
|
|
|
install(TARGETS docsis
|
2015-04-07 20:41:34 +00:00
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/${CPACK_PACKAGE_NAME}/plugins/${CPACK_PACKAGE_VERSION} NAMELINK_SKIP
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/${CPACK_PACKAGE_NAME}/plugins/${CPACK_PACKAGE_VERSION}
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${CPACK_PACKAGE_NAME}/plugins/${CPACK_PACKAGE_VERSION}
|
2009-09-21 00:19:07 +00:00
|
|
|
)
|
2016-03-11 19:51:39 +00:00
|
|
|
|
|
|
|
file(GLOB DISSECTOR_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.h")
|
|
|
|
CHECKAPI(
|
|
|
|
NAME
|
|
|
|
docsis
|
|
|
|
SWITCHES
|
|
|
|
-g abort -g termoutput -build
|
|
|
|
SOURCES
|
|
|
|
${DISSECTOR_SRC}
|
|
|
|
${DISSECTOR_HEADERS}
|
|
|
|
)
|