diff --git a/ui/gtk/CMakeLists.txt b/ui/gtk/CMakeLists.txt index 13878c7770..e27b2da684 100644 --- a/ui/gtk/CMakeLists.txt +++ b/ui/gtk/CMakeLists.txt @@ -24,8 +24,6 @@ ADD_CUSTOM_CMAKE_INCLUDE() set(WIRESHARK_GTK_SRC about_dlg.c addr_resolution_dlg.c - airpcap_dlg.c - airpcap_gui_utils.c bytes_view.c capture_dlg.c capture_file_dlg.c @@ -70,7 +68,6 @@ set(WIRESHARK_GTK_SRC macros_dlg.c main.c main_80211_toolbar.c - main_airpcap_toolbar.c main_filter_toolbar.c main_menubar.c main_statusbar.c @@ -102,7 +99,6 @@ set(WIRESHARK_GTK_SRC proto_hier_tree_model.c proto_tree_model.c range_utils.c - rtp_player.c rtp_stream.c sctp_byte_graph_dlg.c sctp_error_dlg.c @@ -121,6 +117,22 @@ set(WIRESHARK_GTK_SRC ${WIRESHARK_CUSTOM_GTK_SRC} ) +if (HAVE_AIRPCAP) + set(WIRESHARK_GTK_SRC + ${WIRESHARK_GTK_SRC} + airpcap_dlg.c + airpcap_gui_utils.c + main_airpcap_toolbar.c + ) +endif() + +if(HAVE_PORTAUDIO_H) + set(WIRESHARK_GTK_SRC + ${WIRESHARK_GTK_SRC} + rtp_player.c + ) +endif() + if(HAVE_EXTCAP) set(WIRESHARK_GTK_SRC ${WIRESHARK_GTK_SRC} diff --git a/ui/qt/CMakeLists.txt b/ui/qt/CMakeLists.txt index 28d982d530..02a32938bb 100644 --- a/ui/qt/CMakeLists.txt +++ b/ui/qt/CMakeLists.txt @@ -79,8 +79,6 @@ set(WIRESHARK_QT_HEADERS proto_tree.h qcustomplot.h recent_file_status.h - remote_capture_dialog.h - remote_settings_dialog.h sctp_all_assocs_dialog.h sctp_assoc_analyse_dialog.h sctp_chunk_statistics_dialog.h @@ -102,6 +100,14 @@ set(WIRESHARK_QT_HEADERS wireshark_application.h ) +if(HAVE_PCAP_REMOTE) + set(WIRESHARK_QT_HEADERS + ${WIRESHARK_QT_HEADERS} + remote_capture_dialog.h + remote_settings_dialog.h + ) +endif() + file(GLOB EXTA_QT_HEADERS packet_list_record.h qt_ui_utils.h @@ -169,8 +175,6 @@ set(WIRESHARK_QT_SRC qt_ui_utils.cpp recent_file_status.cpp related_packet_delegate.cpp - remote_capture_dialog.cpp - remote_settings_dialog.cpp sctp_all_assocs_dialog.cpp sctp_assoc_analyse_dialog.cpp sctp_chunk_statistics_dialog.cpp @@ -193,6 +197,14 @@ set(WIRESHARK_QT_SRC wireshark_application.cpp ) +if(HAVE_PCAP_REMOTE) + set(WIRESHARK_QT_SRC + ${WIRESHARK_QT_SRC} + remote_capture_dialog.cpp + remote_settings_dialog.cpp + ) +endif() + set(WIRESHARK_QT_TAP_SRC conversation_dialog.cpp endpoint_dialog.cpp @@ -240,8 +252,6 @@ set(WIRESHARK_QT_UI preferences_dialog.ui print_dialog.ui profile_dialog.ui - remote_capture_dialog.ui - remote_settings_dialog.ui sctp_all_assocs_dialog.ui sctp_assoc_analyse_dialog.ui sctp_chunk_statistics_dialog.ui @@ -259,6 +269,14 @@ set(WIRESHARK_QT_UI uat_dialog.ui ) +if(HAVE_PCAP_REMOTE) + set(WIRESHARK_QT_UI + ${WIRESHARK_QT_UI} + remote_capture_dialog.ui + remote_settings_dialog.ui + ) +endif() + set(WIRESHARK_QT_QRC ../../image/about.qrc ../../image/display_filter.qrc