Add Makefile.am for qt.
authorHuang Peng <shawn.p.huang@gmail.com>
Tue, 17 Jun 2008 10:11:01 +0000 (18:11 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Tue, 17 Jun 2008 10:11:01 +0000 (18:11 +0800)
Makefile.am
configure.ac
engine/anthy/Makefile.am
qt/Makefile.am [new file with mode: 0644]

index 8517e6f..0ecf0b2 100644 (file)
@@ -28,6 +28,7 @@ SUBDIRS = \
        panel \
        engine \
        gtk2 \
+       qt \
        m4 \
        po \
        $(NULL)
index bcd0355..f4d1a00 100644 (file)
@@ -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
 ])
 
index d6483c5..dd417e8 100644 (file)
@@ -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 (file)
index 0000000..f034e6f
--- /dev/null
@@ -0,0 +1,53 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+#
+# 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
+