2009-09-08 07:03:57 +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-08 07:03:57 +00:00
|
|
|
#
|
|
|
|
|
2014-09-18 06:05:48 +00:00
|
|
|
ADD_CUSTOM_CMAKE_INCLUDE()
|
2009-09-08 07:03:57 +00:00
|
|
|
|
|
|
|
set(WIRESHARK_GTK_SRC
|
|
|
|
about_dlg.c
|
2012-11-30 16:17:00 +00:00
|
|
|
addr_resolution_dlg.c
|
2012-07-15 20:24:48 +00:00
|
|
|
bytes_view.c
|
2009-09-08 07:03:57 +00:00
|
|
|
capture_dlg.c
|
|
|
|
capture_file_dlg.c
|
|
|
|
capture_if_dlg.c
|
|
|
|
capture_info_dlg.c
|
|
|
|
color_dlg.c
|
|
|
|
color_edit_dlg.c
|
|
|
|
color_utils.c
|
2013-09-15 19:35:10 +00:00
|
|
|
conversation_hastables_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
conversations_table.c
|
|
|
|
decode_as_dlg.c
|
|
|
|
dfilter_expr_dlg.c
|
2010-07-08 14:19:32 +00:00
|
|
|
dissector_tables_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
dlg_utils.c
|
|
|
|
drag_and_drop.c
|
2012-02-12 14:56:06 +00:00
|
|
|
edit_packet_comment_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
expert_comp_table.c
|
2012-10-18 21:14:43 +00:00
|
|
|
export_object_dlg.c
|
2013-05-05 20:45:08 +00:00
|
|
|
export_pdu_dlg.c
|
2011-05-29 08:51:04 +00:00
|
|
|
export_sslkeys.c
|
2009-09-08 07:03:57 +00:00
|
|
|
filter_autocomplete.c
|
|
|
|
file_dlg.c
|
2010-11-12 22:20:12 +00:00
|
|
|
file_import_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
fileset_dlg.c
|
|
|
|
filter_dlg.c
|
2011-09-08 09:35:10 +00:00
|
|
|
filter_expression_save_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
filter_utils.c
|
|
|
|
find_dlg.c
|
|
|
|
firewall_dlg.c
|
|
|
|
follow_stream.c
|
|
|
|
font_utils.c
|
|
|
|
goto_dlg.c
|
|
|
|
graph_analysis.c
|
2012-06-28 16:21:51 +00:00
|
|
|
gtk_iface_monitor.c
|
2009-09-08 07:03:57 +00:00
|
|
|
gui_stat_util.c
|
|
|
|
gui_utils.c
|
|
|
|
help_dlg.c
|
|
|
|
hostlist_table.c
|
|
|
|
macros_dlg.c
|
|
|
|
main.c
|
2012-06-20 18:46:16 +00:00
|
|
|
main_80211_toolbar.c
|
2009-09-08 07:03:57 +00:00
|
|
|
main_filter_toolbar.c
|
2011-08-19 16:53:07 +00:00
|
|
|
main_menubar.c
|
2009-09-08 07:03:57 +00:00
|
|
|
main_statusbar.c
|
2012-06-03 18:35:34 +00:00
|
|
|
main_titlebar.c
|
2009-09-08 07:03:57 +00:00
|
|
|
main_toolbar.c
|
|
|
|
main_welcome.c
|
2010-04-27 06:51:16 +00:00
|
|
|
manual_addr_resolv.c
|
2009-09-08 07:03:57 +00:00
|
|
|
packet_history.c
|
|
|
|
packet_list_store.c
|
2012-09-04 01:57:36 +00:00
|
|
|
packet_list.c
|
2012-06-16 23:11:12 +00:00
|
|
|
packet_panes.c
|
2009-09-08 07:03:57 +00:00
|
|
|
packet_win.c
|
|
|
|
pixmap_save.c
|
|
|
|
plugins_dlg.c
|
|
|
|
prefs_capture.c
|
|
|
|
prefs_column.c
|
|
|
|
prefs_dlg.c
|
2011-09-08 09:35:10 +00:00
|
|
|
prefs_filter_expressions.c
|
2009-09-08 07:03:57 +00:00
|
|
|
prefs_gui.c
|
|
|
|
prefs_layout.c
|
2013-01-03 01:02:30 +00:00
|
|
|
prefs_font_color.c
|
2009-09-08 07:03:57 +00:00
|
|
|
print_dlg.c
|
|
|
|
profile_dlg.c
|
|
|
|
progress_dlg.c
|
|
|
|
proto_dlg.c
|
2010-05-28 11:18:04 +00:00
|
|
|
proto_help.c
|
2009-09-08 07:03:57 +00:00
|
|
|
proto_hier_stats_dlg.c
|
2012-05-04 08:17:46 +00:00
|
|
|
proto_hier_tree_model.c
|
2012-06-10 22:35:48 +00:00
|
|
|
proto_tree_model.c
|
2009-09-08 07:03:57 +00:00
|
|
|
range_utils.c
|
2015-06-20 16:22:22 +00:00
|
|
|
response_time_delay_table.c
|
2009-09-08 07:03:57 +00:00
|
|
|
sctp_byte_graph_dlg.c
|
|
|
|
sctp_error_dlg.c
|
|
|
|
sctp_graph_dlg.c
|
|
|
|
service_response_time_table.c
|
|
|
|
simple_dialog.c
|
2015-06-23 12:53:17 +00:00
|
|
|
simple_stattable.c
|
2009-09-08 07:03:57 +00:00
|
|
|
stock_icons.c
|
|
|
|
summary_dlg.c
|
|
|
|
supported_protos_dlg.c
|
2011-06-06 07:09:49 +00:00
|
|
|
tap_param_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
text_page_utils.c
|
2011-08-13 17:39:38 +00:00
|
|
|
time_shift_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
uat_gui.c
|
|
|
|
webbrowser.c
|
2014-09-01 08:51:21 +00:00
|
|
|
${WIRESHARK_CUSTOM_GTK_SRC}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
|
2014-09-25 22:37:38 +00:00
|
|
|
if (AIRPCAP_FOUND)
|
2014-09-20 21:49:25 +00:00
|
|
|
set(WIRESHARK_GTK_SRC
|
|
|
|
${WIRESHARK_GTK_SRC}
|
|
|
|
airpcap_dlg.c
|
|
|
|
airpcap_gui_utils.c
|
|
|
|
main_airpcap_toolbar.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-09-25 22:37:38 +00:00
|
|
|
if(PORTAUDIO_FOUND)
|
2014-09-20 21:49:25 +00:00
|
|
|
set(WIRESHARK_GTK_SRC
|
|
|
|
${WIRESHARK_GTK_SRC}
|
|
|
|
rtp_player.c
|
|
|
|
)
|
2015-04-26 13:22:05 +00:00
|
|
|
|
|
|
|
# For Win32, there is no PortAudio lib, we compile the files locally
|
|
|
|
if(WIN32)
|
|
|
|
add_definitions(
|
|
|
|
-DPA_NO_DS
|
|
|
|
-DPA_NO_ASIO
|
|
|
|
)
|
|
|
|
set(PORTAUDIO_SRC
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_allocation.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_converters.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_cpuload.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_dither.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_front.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_process.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_skeleton.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_stream.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/common/pa_trace.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/os/win/pa_win_hostapis.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/os/win/pa_win_util.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/os/win/pa_x86_plain_converters.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/os/win/pa_win_waveformat.c
|
|
|
|
${PORTAUDIO_SRC_DIR}/hostapi/wmme/pa_win_wmme.c
|
|
|
|
)
|
|
|
|
add_library(portaudio OBJECT
|
|
|
|
${PORTAUDIO_SRC}
|
|
|
|
)
|
|
|
|
set_target_properties(portaudio PROPERTIES
|
|
|
|
INCLUDE_DIRECTORIES "${PORTAUDIO_INCLUDE_DIRS}"
|
|
|
|
FOLDER "UI")
|
2015-06-11 18:54:23 +00:00
|
|
|
|
2015-04-26 13:22:05 +00:00
|
|
|
# Portaudio has some warnings, annoyingly the combination of CMake
|
|
|
|
# and MSBuild means that just disabling the warnings on the specific
|
|
|
|
# source files doesn't work, so set them to level 4 for the target
|
|
|
|
#set_source_files_properties(${PORTAUDIO_SRC_DIR}/common/pa_front.c
|
|
|
|
# PROPERTIES
|
|
|
|
# COMPILE_FLAGS "/wd4189"
|
|
|
|
#)
|
|
|
|
#set_source_files_properties(${PORTAUDIO_SRC_DIR}/os/win/pa_x86_plain_converters.c
|
|
|
|
# PROPERTIES
|
|
|
|
# COMPILE_FLAGS "/wd4305"
|
|
|
|
#)
|
|
|
|
target_compile_options(portaudio
|
|
|
|
PUBLIC "/w44189"
|
|
|
|
PUBLIC "/w44305"
|
|
|
|
)
|
2015-06-11 18:54:23 +00:00
|
|
|
|
|
|
|
# Portaudio has some size_t > long warnings as a result of using strlen() on x64.
|
2015-06-12 09:58:37 +00:00
|
|
|
if ("${WIRESHARK_TARGET_PLATFORM}" STREQUAL "win64")
|
2015-06-11 18:54:23 +00:00
|
|
|
#set_source_files_properties(${PORTAUDIO_SRC_DIR}/hostapi/wmme/pa_win_wmme.c
|
|
|
|
# PROPERTIES
|
|
|
|
# COMPILE_FLAGS "/wd4267"
|
|
|
|
#)
|
|
|
|
target_compile_options(portaudio
|
|
|
|
PUBLIC "/w44267"
|
|
|
|
)
|
|
|
|
endif()
|
2015-04-26 13:22:05 +00:00
|
|
|
endif()
|
2014-09-20 21:49:25 +00:00
|
|
|
endif()
|
|
|
|
|
2014-09-25 22:37:38 +00:00
|
|
|
if(ENABLE_EXTCAP)
|
2014-02-25 13:05:11 +00:00
|
|
|
set(WIRESHARK_GTK_SRC
|
|
|
|
${WIRESHARK_GTK_SRC}
|
|
|
|
extcap_gtk.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2009-09-08 07:03:57 +00:00
|
|
|
set(WIRESHARK_TAP_SRC
|
|
|
|
compare_stat.c
|
|
|
|
dcerpc_stat.c
|
|
|
|
expert_comp_dlg.c
|
|
|
|
flow_graph.c
|
|
|
|
funnel_stat.c
|
|
|
|
gsm_map_summary.c
|
|
|
|
iax2_analysis.c
|
|
|
|
io_stat.c
|
2014-06-18 23:44:31 +00:00
|
|
|
lbm_stream_dlg.c
|
|
|
|
lbm_uimflow_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
mac_lte_stat_dlg.c
|
|
|
|
mcast_stream_dlg.c
|
|
|
|
mtp3_summary.c
|
2012-07-10 11:37:25 +00:00
|
|
|
rlc_lte_graph.c
|
2010-01-20 12:54:39 +00:00
|
|
|
rlc_lte_stat_dlg.c
|
2009-09-08 07:03:57 +00:00
|
|
|
rpc_stat.c
|
|
|
|
rtp_analysis.c
|
|
|
|
rtp_stream_dlg.c
|
|
|
|
sctp_assoc_analyse.c
|
|
|
|
sctp_chunk_stat.c
|
|
|
|
sctp_chunk_stat_dlg.c
|
|
|
|
sctp_stat_dlg.c
|
2013-12-03 13:18:37 +00:00
|
|
|
stats_tree_stat.c
|
2009-09-08 07:03:57 +00:00
|
|
|
tcp_graph.c
|
|
|
|
voip_calls_dlg.c
|
|
|
|
wlan_stat_dlg.c
|
2014-09-10 07:51:34 +00:00
|
|
|
${WIRESHARK_CUSTOM_TAP_SRC}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
|
2009-11-07 10:07:00 +00:00
|
|
|
set(CLEAN_FILES
|
|
|
|
${WIRESHARK_GTK_SRC}
|
|
|
|
${WIRESHARK_TAP_SRC}
|
|
|
|
)
|
|
|
|
|
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} ${NO_ERROR_DEPRECATED_DECLARATIONS_COMPILE_FLAGS}"
|
2009-11-07 10:07:00 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-04-25 21:35:54 +00:00
|
|
|
if (ENABLE_GTK3)
|
2013-11-21 00:28:33 +00:00
|
|
|
add_definitions(
|
|
|
|
${GTK3_DEFINITIONS}
|
|
|
|
-DGDK_DISABLE_DEPRECATION_WARNINGS
|
|
|
|
)
|
2013-04-25 21:35:54 +00:00
|
|
|
else()
|
2011-07-28 14:21:29 +00:00
|
|
|
add_definitions(
|
2011-08-08 13:39:21 +00:00
|
|
|
# We are only allowed to include gtk/gtk.h, no other files. When
|
|
|
|
# violating this with gtk3 the compiler will complain anyway.
|
|
|
|
-DGTK_DISABLE_SINGLE_INCLUDES
|
|
|
|
|
|
|
|
# GTK+ 3 removes many implementation details and struct members from its
|
|
|
|
# public headers. Make the compiler catch all uses of direct access to
|
|
|
|
# struct fields so that you can go through them one by one and replace
|
|
|
|
# them with a call to an accessor function instead.
|
2011-07-28 14:21:29 +00:00
|
|
|
-DGSEAL_ENABLE
|
2011-08-08 13:39:21 +00:00
|
|
|
|
|
|
|
# To verify that your program does not use any deprecated symbols,
|
|
|
|
# you can use defines to remove deprecated symbols from the header files
|
2012-08-14 00:21:55 +00:00
|
|
|
# -DGDK_DISABLE_DEPRECATED
|
2011-08-17 17:34:56 +00:00
|
|
|
-DGTK_DISABLE_DEPRECATED
|
2011-07-28 14:21:29 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2011-08-21 15:12:50 +00:00
|
|
|
if(WIN32)
|
|
|
|
set(PLATFORM_UI_SRC
|
|
|
|
capture_if_details_dlg_win32.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2009-10-09 16:56:15 +00:00
|
|
|
register_tap_files(wireshark-tap-register.c
|
2015-11-16 13:59:16 +00:00
|
|
|
taps
|
2009-10-09 16:56:15 +00:00
|
|
|
${WIRESHARK_TAP_SRC}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
|
2015-04-26 13:22:05 +00:00
|
|
|
if(WIN32)
|
|
|
|
set(PORTAUDIO_OBJ $<TARGET_OBJECTS:portaudio>)
|
|
|
|
endif()
|
|
|
|
|
2015-10-17 12:47:17 +00:00
|
|
|
find_file(GLIB_COMPILE_RESOURCES
|
|
|
|
glib-compile-resources${CMAKE_EXECUTABLE_SUFFIX}
|
|
|
|
HINTS
|
|
|
|
"${GLIB2_HINTS}/bin"
|
|
|
|
)
|
|
|
|
|
|
|
|
pkg_check_modules(GRESOURCE QUIET gio-2.0>=2.32 gdk-pixbuf-2.0>=2.26)
|
|
|
|
|
|
|
|
macro(WIRESHARK_GRESOURCES _outputfile _resourcefile)
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${_outputfile}
|
|
|
|
COMMAND ${GLIB_COMPILE_RESOURCES} --sourcedir=${CMAKE_SOURCE_DIR} --target=${_outputfile} --generate --manual-register ${CMAKE_CURRENT_SOURCE_DIR}/${_resourcefile}
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_resourcefile}
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
endmacro(WIRESHARK_GRESOURCES)
|
|
|
|
|
|
|
|
WIRESHARK_GRESOURCES(wireshark-gresources.h main.gresources.xml)
|
|
|
|
|
|
|
|
WIRESHARK_GRESOURCES(wireshark-gresources.c main.gresources.xml)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
if(GRESOURCE_FOUND AND NOT WIN32)
|
|
|
|
set(PIXBUF_SRC
|
|
|
|
wireshark-gresources.c
|
|
|
|
wireshark-gresources.h
|
|
|
|
)
|
|
|
|
add_definitions(-DHAVE_GRESOURCE)
|
|
|
|
else()
|
|
|
|
set(PIXBUF_SRC
|
|
|
|
pixbuf-csource.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2012-02-02 00:46:02 +00:00
|
|
|
add_library(gtkui STATIC
|
2009-09-08 15:56:16 +00:00
|
|
|
${WIRESHARK_GTK_SRC}
|
|
|
|
${WIRESHARK_TAP_SRC}
|
2011-08-21 15:12:50 +00:00
|
|
|
${PLATFORM_UI_SRC}
|
2015-04-26 13:22:05 +00:00
|
|
|
${PORTAUDIO_OBJ}
|
2009-09-08 15:56:16 +00:00
|
|
|
wireshark-tap-register.c
|
2015-10-17 12:47:17 +00:00
|
|
|
${PIXBUF_SRC}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
2015-01-05 23:40:52 +00:00
|
|
|
set_target_properties(gtkui PROPERTIES
|
|
|
|
LINK_FLAGS "${WS_LINK_FLAGS}"
|
|
|
|
FOLDER "UI")
|
2015-11-16 13:59:16 +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:
|
|
|
|
#
|