From: Huang Peng Date: Tue, 17 Jun 2008 10:11:01 +0000 (+0800) Subject: Add Makefile.am for qt. X-Git-Tag: 0.1.0.20080810~367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13be881c74e9f3a76be57c7827b99c889ddd4bef;p=platform%2Fupstream%2Fibus.git Add Makefile.am for qt. --- diff --git a/Makefile.am b/Makefile.am index 8517e6f..0ecf0b2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,6 +28,7 @@ SUBDIRS = \ panel \ engine \ gtk2 \ + qt \ m4 \ po \ $(NULL) diff --git a/configure.ac b/configure.ac index bcd0355..f4d1a00 100644 --- a/configure.ac +++ b/configure.ac @@ -71,16 +71,23 @@ PKG_CHECK_MODULES(PYGTK2, [ PKG_CHECK_MODULES(DBUS, [ dbus-glib-1 ]) +QMAKE=`$PKG_CONFIG --variable=qmake Qt` +AC_SUBST(QMAKE) AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no) +# Check for Qt4 +PKG_CHECK_MODULES(QT, [ + Qt >= 4.3.5 +]) + # check anthy PKG_CHECK_MODULES(ANTHY, [ anthy ]) AC_PATH_PROG(SWIG, swig) - +AC_SUBST(SWIG) # check python AM_PATH_PYTHON([2.5]) @@ -95,6 +102,7 @@ fi AC_SUBST(PYTHON_CFLAGS) AC_SUBST(PYTHON_LIBS) + # Checks for gtk-doc GTK_DOC_CHECK([1.6]) @@ -125,6 +133,7 @@ engine/Makefile engine/anthy/Makefile engine/enchant/Makefile gtk2/Makefile +qt/Makefile m4/Makefile ]) diff --git a/engine/anthy/Makefile.am b/engine/anthy/Makefile.am index d6483c5..dd417e8 100644 --- a/engine/anthy/Makefile.am +++ b/engine/anthy/Makefile.am @@ -54,10 +54,14 @@ _anthy_la_LDFLAGS = \ -module \ $(NULL) -SWIG=@SWIG@ anthy.py anthy_wrap.c: anthy.i $(SWIG) -python -I/usr/include $< EXTRA_DIST = \ anthy.i \ $(NULL) + +DISTCLEANFILES = \ + anthy.py \ + anthy_wrap.c \ + $(MULL) diff --git a/qt/Makefile.am b/qt/Makefile.am new file mode 100644 index 0000000..f034e6f --- /dev/null +++ b/qt/Makefile.am @@ -0,0 +1,53 @@ +# vim:set noet ts=4: +# +# ibus - The Input Bus +# +# Copyright (c) 2007-2008 Huang Peng +# +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser 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 +# +# $Id: $ +# + +EXTRA_DIST = \ + ibus-client.cpp \ + ibus-client.h \ + ibus-input-context.cpp \ + ibus-input-context.h \ + ibus.pro \ + im-ibus-qt.cpp \ + $(NULL) + +Makefile.qmake: ibus.pro + $(QMAKE) -makefile -o Makefile.qmake ibus.pro + +all-local: Makefile.qmake + $(MAKE) -f Makefile.qmake $(AM_MAKEFLAGS) all + +check-local: Makefile.qmake + $(MAKE) -f Makefile.qmake $(AM_MAKEFLAGS) test + +clean-local: Makefile.qmake + $(MAKE) -f Makefile.qmake $(AM_MAKEFLAGS) clean + rm -f Makefile.qmake + +install-exec-local: Makefile.qmake + $(MAKE) -f Makefile.qmake $(AM_MAKEFLAGS) install + +uninstall-local: Makefile.qmake + $(MAKE) -f Makefile.qmake $(AM_MAKEFLAGS) uninstall +