diff options
author | Benoit Papillault <benoit.papillault@free.fr> | 2005-04-24 11:08:22 +0000 |
---|---|---|
committer | Benoit Papillault <benoit.papillault@free.fr> | 2005-04-24 11:08:22 +0000 |
commit | eb0b722ee54515405b7810e3f1e8c8b4c76c0501 (patch) | |
tree | bdd5fcf04ea28e36c63e0ff8ced552e0c9abd916 | |
parent | 04d6257224a7a90ee272b7a359d2f0b25d8faa63 (diff) | |
download | weechat-eb0b722ee54515405b7810e3f1e8c8b4c76c0501.zip |
Added WxWidgets frontend (no source files)
-rw-r--r-- | configure.in | 33 | ||||
-rw-r--r-- | src/gui/Makefile.am | 6 | ||||
-rw-r--r-- | src/gui/wxwidgets/Makefile.am | 29 | ||||
-rw-r--r-- | weechat/configure.in | 33 | ||||
-rw-r--r-- | weechat/src/gui/Makefile.am | 6 | ||||
-rw-r--r-- | weechat/src/gui/wxwidgets/Makefile.am | 29 |
6 files changed, 132 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 026eb1c23..c88a47bca 100644 --- a/configure.in +++ b/configure.in @@ -36,6 +36,26 @@ AM_GNU_GETTEXT # Checks for libraries. AC_CHECK_LIB([ncurses], [initscr], LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0) +AM_OPTIONS_WXCONFIG + +AM_PATH_WXCONFIG(2.3.4, wxWin=1) +if test "$wxWin" != 1; then + AC_MSG_ERROR([ + wxWindows must be installed on your system + but wx-config script couldn't be found. + + Please check that wx-config is in path, the directory + where wxWindows libraries are installed (returned by + 'wx-config --libs' command) is in LD_LIBRARY_PATH or + equivalent variable and wxWindows version is 2.3.4 or above. + ]) +fi + +CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" +CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" +CFLAGS="$CFLAGS $WX_CFLAGS_ONLY" +LDFLAGS="$LDFLAGS $WX_LIBS" + # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h libintl.h limits.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/types.h unistd.h pwd.h errno.h]) @@ -54,6 +74,7 @@ AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL]) AH_VERBATIM([DEBUG], [#undef DEBUG]) AC_ARG_ENABLE(ncurses, [ --disable-ncurses Turn off ncurses interface (default=auto)],,enable_ncurses=yes) +AC_ARG_ENABLE(wxwidgets,[ --enable-wxwidgets Turn on WxWidgets interface (default=no)],enable_wxwidgets=yes,enable_wxwidgets=no) AC_ARG_ENABLE(gtk, [ --enable-gtk Turn on Gtk+ interface (default=no)],enable_gtk=yes,enable_gtk=no) AC_ARG_ENABLE(qt, [ --enable-qt Turn on Qt interface (default=no)],enable_qt=yes,enable_qt=no) AC_ARG_ENABLE(perl, [ --enable-perl Turn on Perl plugins (default=no)],enable_perl=yes,enable_perl=no) @@ -66,6 +87,7 @@ enable_ruby="no" RUBY_CFLAGS= AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes") +AM_CONDITIONAL(GUI_WXWIDGETS, test "$enable_wxwidgets" = "yes") AM_CONDITIONAL(GUI_GTK, test "$enable_gtk" = "yes") AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes") @@ -80,6 +102,11 @@ if test "x$enable_ncurses" = "xyes" ; then AC_SUBST(NCURSES_LIBS) fi +if test "x$enable_wxwidgets" = "xyes" ; then + WXWIDGETS_CFLAGS="" + WXWIDGETS_LIBS="" +fi + if test "x$enable_gtk" = "xyes" ; then #if test "$LIBGTK_FOUND" = "0" ; then # AC_MSG_ERROR([Gtk+ library not found! Install Gtk+ (2.0 or higher) library or run ./configure without --enable-gtk parameter.]) @@ -132,6 +159,7 @@ AC_OUTPUT([Makefile src/plugins/perl/Makefile src/gui/Makefile src/gui/curses/Makefile + src/gui/wxwidgets/Makefile src/gui/gtk/Makefile src/gui/qt/Makefile intl/Makefile @@ -144,6 +172,9 @@ listgui= if test "x$enable_ncurses" = "xyes" ; then listgui="$listgui ncurses" fi +if test "x$enable_wxwidgets" = "xyes"; then + listgui="$listgui WxWidgets" +fi if test "x$enable_gtk" = "xyes" ; then listgui="$listgui Gtk+" fi @@ -152,7 +183,7 @@ if test "x$enable_qt" = "xyes" ; then fi if test "x$listgui" = "x" ; then - AC_MSG_ERROR([No interface specified... Please specify at least ncurses, Gtk or Qt.]) + AC_MSG_ERROR([No interface specified... Please specify at least ncurses, WxWidgets, Gtk or Qt.]) fi msg_debug_compiler="no" diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am index 4be99cc54..383493cc4 100644 --- a/src/gui/Makefile.am +++ b/src/gui/Makefile.am @@ -26,6 +26,10 @@ if GUI_NCURSES curses_dir=curses endif +if GUI_WXWIDGETS +wxwidgets_dir=wxwidgets +endif + if GUI_GTK gtk_dir=gtk endif @@ -34,4 +38,4 @@ if GUI_QT qt_dir=qt endif -SUBDIRS = . $(curses_dir) $(gtk_dir) $(qt_dir) +SUBDIRS = . $(curses_dir) $(wxwidgets_dir) $(gtk_dir) $(qt_dir) diff --git a/src/gui/wxwidgets/Makefile.am b/src/gui/wxwidgets/Makefile.am new file mode 100644 index 000000000..bdfca7f5a --- /dev/null +++ b/src/gui/wxwidgets/Makefile.am @@ -0,0 +1,29 @@ +# Copyright (c) 2003-2005 FlashCode <flashcode@flashtux.org> +# +# 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 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" + +bin_PROGRAMS = weechat-wxwidgets + +weechat_wxwidgets_LDADD = ../lib_weechat_gui_common.a \ + ../../common/lib_weechat_main.a \ + ../../irc/lib_weechat_irc.a \ + $(WXWIDGETS_LIBS) \ + ../../plugins/lib_weechat_plugins.a $(PLUGINS_LIBS) + +weechat_wxwidgets_SOURCES = gui-display.c \ + gui-input.c diff --git a/weechat/configure.in b/weechat/configure.in index 026eb1c23..c88a47bca 100644 --- a/weechat/configure.in +++ b/weechat/configure.in @@ -36,6 +36,26 @@ AM_GNU_GETTEXT # Checks for libraries. AC_CHECK_LIB([ncurses], [initscr], LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0) +AM_OPTIONS_WXCONFIG + +AM_PATH_WXCONFIG(2.3.4, wxWin=1) +if test "$wxWin" != 1; then + AC_MSG_ERROR([ + wxWindows must be installed on your system + but wx-config script couldn't be found. + + Please check that wx-config is in path, the directory + where wxWindows libraries are installed (returned by + 'wx-config --libs' command) is in LD_LIBRARY_PATH or + equivalent variable and wxWindows version is 2.3.4 or above. + ]) +fi + +CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" +CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" +CFLAGS="$CFLAGS $WX_CFLAGS_ONLY" +LDFLAGS="$LDFLAGS $WX_LIBS" + # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h libintl.h limits.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/types.h unistd.h pwd.h errno.h]) @@ -54,6 +74,7 @@ AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL]) AH_VERBATIM([DEBUG], [#undef DEBUG]) AC_ARG_ENABLE(ncurses, [ --disable-ncurses Turn off ncurses interface (default=auto)],,enable_ncurses=yes) +AC_ARG_ENABLE(wxwidgets,[ --enable-wxwidgets Turn on WxWidgets interface (default=no)],enable_wxwidgets=yes,enable_wxwidgets=no) AC_ARG_ENABLE(gtk, [ --enable-gtk Turn on Gtk+ interface (default=no)],enable_gtk=yes,enable_gtk=no) AC_ARG_ENABLE(qt, [ --enable-qt Turn on Qt interface (default=no)],enable_qt=yes,enable_qt=no) AC_ARG_ENABLE(perl, [ --enable-perl Turn on Perl plugins (default=no)],enable_perl=yes,enable_perl=no) @@ -66,6 +87,7 @@ enable_ruby="no" RUBY_CFLAGS= AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes") +AM_CONDITIONAL(GUI_WXWIDGETS, test "$enable_wxwidgets" = "yes") AM_CONDITIONAL(GUI_GTK, test "$enable_gtk" = "yes") AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes") @@ -80,6 +102,11 @@ if test "x$enable_ncurses" = "xyes" ; then AC_SUBST(NCURSES_LIBS) fi +if test "x$enable_wxwidgets" = "xyes" ; then + WXWIDGETS_CFLAGS="" + WXWIDGETS_LIBS="" +fi + if test "x$enable_gtk" = "xyes" ; then #if test "$LIBGTK_FOUND" = "0" ; then # AC_MSG_ERROR([Gtk+ library not found! Install Gtk+ (2.0 or higher) library or run ./configure without --enable-gtk parameter.]) @@ -132,6 +159,7 @@ AC_OUTPUT([Makefile src/plugins/perl/Makefile src/gui/Makefile src/gui/curses/Makefile + src/gui/wxwidgets/Makefile src/gui/gtk/Makefile src/gui/qt/Makefile intl/Makefile @@ -144,6 +172,9 @@ listgui= if test "x$enable_ncurses" = "xyes" ; then listgui="$listgui ncurses" fi +if test "x$enable_wxwidgets" = "xyes"; then + listgui="$listgui WxWidgets" +fi if test "x$enable_gtk" = "xyes" ; then listgui="$listgui Gtk+" fi @@ -152,7 +183,7 @@ if test "x$enable_qt" = "xyes" ; then fi if test "x$listgui" = "x" ; then - AC_MSG_ERROR([No interface specified... Please specify at least ncurses, Gtk or Qt.]) + AC_MSG_ERROR([No interface specified... Please specify at least ncurses, WxWidgets, Gtk or Qt.]) fi msg_debug_compiler="no" diff --git a/weechat/src/gui/Makefile.am b/weechat/src/gui/Makefile.am index 4be99cc54..383493cc4 100644 --- a/weechat/src/gui/Makefile.am +++ b/weechat/src/gui/Makefile.am @@ -26,6 +26,10 @@ if GUI_NCURSES curses_dir=curses endif +if GUI_WXWIDGETS +wxwidgets_dir=wxwidgets +endif + if GUI_GTK gtk_dir=gtk endif @@ -34,4 +38,4 @@ if GUI_QT qt_dir=qt endif -SUBDIRS = . $(curses_dir) $(gtk_dir) $(qt_dir) +SUBDIRS = . $(curses_dir) $(wxwidgets_dir) $(gtk_dir) $(qt_dir) diff --git a/weechat/src/gui/wxwidgets/Makefile.am b/weechat/src/gui/wxwidgets/Makefile.am new file mode 100644 index 000000000..bdfca7f5a --- /dev/null +++ b/weechat/src/gui/wxwidgets/Makefile.am @@ -0,0 +1,29 @@ +# Copyright (c) 2003-2005 FlashCode <flashcode@flashtux.org> +# +# 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 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" + +bin_PROGRAMS = weechat-wxwidgets + +weechat_wxwidgets_LDADD = ../lib_weechat_gui_common.a \ + ../../common/lib_weechat_main.a \ + ../../irc/lib_weechat_irc.a \ + $(WXWIDGETS_LIBS) \ + ../../plugins/lib_weechat_plugins.a $(PLUGINS_LIBS) + +weechat_wxwidgets_SOURCES = gui-display.c \ + gui-input.c |