From Martin Kaiser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6838
[obnox/wireshark/wip.git] / Makefile.am
index 3348ee20dc908481a0337994672ae8c78fe72938..f79f5c47d3ce5cff796b0fe7bc29d51ae90a30af 100644 (file)
@@ -266,6 +266,69 @@ uidir = $(pkgdatadir)/ui
 ui_DATA = \
        ui/gtk/ui/main-menubar-ui.xml
 
+#
+# Install the ui/gt directory files in the "ui/qt" subdirectory
+# of that directory
+#
+uiqtdir = $(pkgdatadir)/ui/qt
+uiqt_DATA = \
+       ui/qt/byte_view_tab.cpp \
+       ui/qt/byte_view_tab.h \
+       ui/qt/byte_view_text.cpp        \
+       ui/qt/byte_view_text.h  \
+       ui/qt/capture_file_dialog.cpp   \
+       ui/qt/capture_file_dialog.h     \
+       ui/qt/capture_info_dialog.cpp   \
+       ui/qt/capture_info_dialog.h     \
+       ui/qt/capture_interface_dialog.cpp      \
+       ui/qt/capture_interface_dialog.h        \
+       ui/qt/capture_start_24.png      \
+       ui/qt/capture_start_active_24.png       \
+       ui/qt/capture_stop_24.png       \
+       ui/qt/color_dialog.cpp  \
+       ui/qt/color_dialog.h    \
+       ui/qt/color_utils.cpp   \
+       ui/qt/color_utils.h     \
+       ui/qt/dfilter_apply_hover.png   \
+       ui/qt/dfilter_apply_normal.png  \
+       ui/qt/dfilter_apply_pressed.png \
+       ui/qt/dfilter_bookmark_hover.png        \
+       ui/qt/dfilter_bookmark_normal.png       \
+       ui/qt/dfilter_bookmark_pressed.png      \
+       ui/qt/dfilter_dropdown.png      \
+       ui/qt/dfilter_erase_active.png  \
+       ui/qt/dfilter_erase_normal.png  \
+       ui/qt/dfilter_erase_selected.png        \
+       ui/qt/dfilter_refresh_active.png        \
+       ui/qt/dfilter_refresh_normal.png        \
+       ui/qt/display_filter_16.svg     \
+       ui/qt/display_filter_combo.cpp  \
+       ui/qt/display_filter_combo.h    \
+       ui/qt/display_filter_edit.cpp   \
+       ui/qt/display_filter_edit.h     \
+       ui/qt/display_filter.qrc        \
+       ui/qt/fileset_dialog.cpp        \
+       ui/qt/fileset_dialog.h  \
+       ui/qt/gpl-template.txt  \
+       ui/qt/interface_tree.cpp        \
+       ui/qt/interface_tree.h  \
+       ui/qt/label_stack.cpp   \
+       ui/qt/label_stack.h     \
+       ui/qt/main.cpp  \
+       ui/qt/main_status_bar.cpp       \
+       ui/qt/main_status_bar.h \
+       ui/qt/main_welcome.cpp  \
+       ui/qt/main_welcome.h    \
+       ui/qt/main_window.cpp   \
+       ui/qt/main_window.h     \
+       ui/qt/main_window.ui    \
+       ui/qt/monospace_font.cpp        \
+       ui/qt/monospace_font.h  \
+       ui/qt/packet_list.cpp   \
+       ui/qt/packet_list.h     \
+       ui/qt/packet_list_model.cpp     \
+       ui/qt/packet_list_model.h
+
 #
 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
 # of that directory
@@ -323,8 +386,9 @@ endif
 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
 # applications are X applications).
 wireshark_LDADD = \
-       ui/gtk/libui.a                  \
-       ui/gtk/libui_dirty.a            \
+       ui/gtk/libgtkui.a               \
+       ui/gtk/libgtkui_dirty.a         \
+       ui/libui.a                      \
        codecs/libcodec.a               \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
@@ -353,6 +417,8 @@ endif
 
 # Libraries and plugin flags with which to link tshark.
 tshark_LDADD = \
+       ui/cli/libcliui.a               \
+       ui/libui.a                      \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        wsutil/libwsutil.la             \
@@ -380,6 +446,7 @@ endif
 
 # Libraries and plugin flags with which to link rawshark.
 rawshark_LDADD = \
+       ui/libui.a                      \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        wsutil/libwsutil.la             \
@@ -446,6 +513,7 @@ randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
 
 # Libraries and plugin flags with which to link dftest.
 dftest_LDADD = \
+       ui/libui.a                      \
        wiretap/libwiretap.la           \
        wsutil/libwsutil.la             \
        epan/libwireshark.la            \
@@ -499,24 +567,6 @@ SUFFIXES = .sh
        rm -f $@ $@.tmp
        $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
 
-#
-# Build "tshark-tap-register.c", which contains a function
-# "register_all_tap_listeners()"
-# that calls the register routines for all tshark tap listeners.
-#
-# We do this by grepping through sources.
-#
-# Formatting conventions:  The name of the tap_listener_register_*
-# routines must start in column zero, or must be preceded only by
-# "void " starting in column zero, and must not be inside #if.
-#
-# The first argument is the directory in which the source files live.
-# All subsequent arguments are the files to scan.
-#
-tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/tools/make-tapreg-dotc
-       @echo Making tshark-tap-register.c
-       @$(srcdir)/tools/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
-
 ps.c: print.ps $(srcdir)/tools/rdps.py
        $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
 
@@ -809,6 +859,7 @@ EXTRA_DIST = \
        $(radius_DATA)          \
        $(tpncp_DATA)           \
        $(ui_DATA)              \
+       $(uiqt_DATA)            \
        $(wimaxasncp_DATA)      \
        randpkt.c               \
        smi_modules             \
@@ -891,12 +942,12 @@ endif
 endif
 
 
-DIST_SUBDIRS = asn1 codecs doc epan ui/gtk help packaging plugins tools wiretap wsutil docbook
+DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk help packaging plugins tools wiretap wsutil docbook
 
 if HAVE_PLUGINS
-SUBDIRS = tools wsutil wiretap epan plugins packaging help @wireshark_SUBDIRS@ . doc
+SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
 else
-SUBDIRS = tools wsutil wiretap epan packaging help @wireshark_SUBDIRS@ . doc
+SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
 endif
 
 help/faq.txt: $(srcdir)/help/faq.py
@@ -1006,19 +1057,20 @@ dumpabi:
 
 checkapi_local:
        $(PERL) tools/checkAPIs.pl \
-       $(TSHARK_TAP_SRC)
-#      $(wireshark_SOURCES)
+       $(TSHARK_TAP_SRC) \
+       $(wireshark_SOURCES)
 #      $(EXTRA_wireshark_SOURCES)
 
 checkapi: checkapi_local
        cd wiretap && $(MAKE) checkapi
-       cd ../codecs && $(MAKE) checkapi
-##     cd ../gtk && $(MAKE) checkapi
-##     cd ../epan && $(MAKE) checkapi
-##     cd ../epan/crypt && $(MAKE) checkapi
-       cd ../dfilter && $(MAKE) checkapi
-##     cd ../ftypes && $(MAKE) checkapi
-##     cd ../wslua && $(MAKE) checkapi
-       cd ../dissectors && $(MAKE) checkapi
-       cd ../../plugins && $(MAKE) checkapi
-       cd ../wsutil && $(MAKE) checkapi
+       cd codecs && $(MAKE) checkapi
+       cd ui && $(MAKE) checkapi
+       cd ui/gtk && $(MAKE) checkapi
+##     cd epan && $(MAKE) checkapi
+##     cd epan/crypt && $(MAKE) checkapi
+       cd epan/dfilter && $(MAKE) checkapi
+##     cd epan/ftypes && $(MAKE) checkapi
+##     cd epan/wslua && $(MAKE) checkapi
+       cd epan/dissectors && $(MAKE) checkapi
+       cd plugins && $(MAKE) checkapi
+       cd wsutil && $(MAKE) checkapi