forked from osmocom/wireshark
Make the "-qt" option the default in the OS X packaging scripts.
Change-Id: I1e404c342d06381be71735ff6fbc47e9b2b13899 Reviewed-on: https://code.wireshark.org/review/4895 Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
parent
39b631da4d
commit
86386243cd
|
@ -1444,8 +1444,6 @@ if test "x$enable_wireshark" = "xyes"; then
|
|||
CXXFLAGS="$CXXFLAGS $Qt_CFLAGS"
|
||||
have_qt=yes
|
||||
GUI_CONFIGURE_FLAGS="$GUI_CONFIGURE_FLAGS --with-qt"
|
||||
OSX_APP_FLAGS="$OSX_APP_FLAGS -qt"
|
||||
OSX_DMG_FLAGS="-qt"
|
||||
],
|
||||
[AC_MSG_ERROR([Qt is not available])])
|
||||
|
||||
|
@ -1548,6 +1546,8 @@ if test "$have_gtk" = "yes" -a "$have_qt" = "no" ; then
|
|||
wireshark_man="wireshark.1"
|
||||
wireshark_SUBDIRS="codecs ui/gtk"
|
||||
use_glib_cflags="false"
|
||||
OSX_APP_FLAGS="$OSX_APP_FLAGS -gtk"
|
||||
OSX_DMG_FLAGS="-gtk"
|
||||
fi
|
||||
if test "$have_gtk" = "no" -a "$have_qt" = "no" ; then
|
||||
# We have neither GTK+ nor Qt.
|
||||
|
|
|
@ -41,9 +41,9 @@ exclude_prefixes="/System/|/Library/|/usr/lib/|/usr/X11/|/opt/X11/|@rpath|@execu
|
|||
|
||||
|
||||
# "qt" or "gtk"
|
||||
ui_toolkit="gtk"
|
||||
ui_toolkit="qt"
|
||||
# Name of the Wireshark executable
|
||||
wireshark_bin_name="wireshark-gtk"
|
||||
wireshark_bin_name="wireshark"
|
||||
|
||||
binary_list="
|
||||
capinfos
|
||||
|
@ -95,7 +95,9 @@ OPTIONS
|
|||
-sdkroot
|
||||
specify the root of the SDK to use
|
||||
-qt,--qt-flavor
|
||||
use the Qt flavor
|
||||
Use the Qt flavor. This is the default.
|
||||
-gtk,--gtk-flavor
|
||||
Use the GTK+ flavor.
|
||||
|
||||
EXAMPLE
|
||||
$0 -s -l /opt/local -bp ../../Build/bin -p Info.plist -sdkroot /Developer/SDKs/MacOSX10.5.sdk
|
||||
|
@ -123,6 +125,10 @@ do
|
|||
ui_toolkit="qt"
|
||||
wireshark_bin_name="wireshark"
|
||||
;;
|
||||
-gtk|--gtk-flavor)
|
||||
ui_toolkit="gtk"
|
||||
wireshark_bin_name="wireshark-gtk"
|
||||
;;
|
||||
-h|--help)
|
||||
help
|
||||
exit 0 ;;
|
||||
|
|
|
@ -42,8 +42,8 @@ rw_name="RWwireshark.dmg"
|
|||
volume_name="Wireshark"
|
||||
tmp_dir="/tmp/dmg-$$"
|
||||
auto_open_opt=
|
||||
ws_bin="$app_bundle/Contents/Resources/bin/wireshark-bin"
|
||||
readme_name="Read_me_first_gtk.rtf"
|
||||
ws_bin="$app_bundle/Contents/Resources/bin/Wireshark"
|
||||
readme_name="Read_me_first_qt.rtf"
|
||||
|
||||
if [ -d /Applications/Xcode.app/Developer ]
|
||||
then
|
||||
|
@ -69,14 +69,16 @@ USAGE
|
|||
|
||||
OPTIONS
|
||||
-h,--help
|
||||
display this help message
|
||||
Display this help message.
|
||||
-s
|
||||
set a new apperance (do not actually create a bundle)
|
||||
Set a new apperance (do not actually create a bundle).
|
||||
-b,--app-bundle
|
||||
set the path to the Wireshark.app that should be copied
|
||||
in the dmg
|
||||
Set the path to the Wireshark.app that should be copied
|
||||
in the dmg.
|
||||
-qt,--qt-flavor
|
||||
use the Qt flavor
|
||||
Use the Qt flavor. This is the default.
|
||||
-gtk,--gtk-flavor
|
||||
Use the GTK+ flavor.
|
||||
"
|
||||
}
|
||||
|
||||
|
@ -96,6 +98,10 @@ do
|
|||
readme_name="Read_me_first_qt.rtf"
|
||||
ws_bin="$app_bundle/Contents/MacOS/Wireshark"
|
||||
;;
|
||||
-gtk|--gtk-flavor)
|
||||
readme_name="Read_me_first_gtk.rtf"
|
||||
ws_bin="$app_bundle/Contents/MacOS/wireshark-bin"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid command line option"
|
||||
exit 2 ;;
|
||||
|
|
Loading…
Reference in New Issue