Section: user/education
Priority: optional
Maintainer: Jakub Jaszczyński <jakub.jaszczynski@comarch.pl>, Piotr Pilarczyk <piotr.pilarczyk@comarch.pl>, Mateusz Półrola <mateusz.polrola@comarch.pl>, Bartosz Szatkowski <bartosz.szatkowski@comarch.pl>
-Build-Depends: debhelper (>= 5), libqt4-core, libqt4-gui, libqt4-xml
+Build-Depends: debhelper (>= 5), libqt4-dev (>= 4.6), doxygen
Standards-Version: 3.8.0
Package: mdictionary
+Section: user/education
Architecture: any
Depends: ${shlibs:Depends}
Description: Multilanguage dictionary
- Long desc
+
+Package: mdictionary-google-plugin
+Section: user/education
+Architecture: any
+Depends: mdictionary
+Description: Google plugin for mDictionary
+
+Package: mdictionary-homescreen-widget
+Section: user/education
+Architecture: any
+Depends: mdictionary
+Description: home sreen widget for mDictionary
+
+Package: mdictionary-dev
+Section: devel
+Architecture: any
+Depends: libqt4-dev (>= 4.6)
+Description: mDictionary development files
+
+Package: mdictionary-doc
+Section: doc
+Architecture: any
+Depends: mdictionary-dev
+Description: mDictionary documentation
--- /dev/null
+usr/include
--- /dev/null
+AUTHORS
+doc/html
--- /dev/null
+usr/lib/mdictionary/plugins/libgoogle.so
--- /dev/null
+usr/lib/hildon-desktop
+usr/share/applications/hildon-home
--- /dev/null
+usr/share/dbus-1/
+usr/share/icons/
+usr/share/mdictionary/staron.png
+usr/bin/mdictionary
+usr/lib/mdictionary/plugins/libxdxf.so
+usr/lib/mdictionary/plugins/eng-us.xdxf
+usr/lib/mdictionary/plugins/eng-thai.xdxf
+usr/share/applications/hildon/mdictionary.desktop
build-stamp: configure-stamp
dh_testdir
$(MAKE)
+ $(MAKE) doc
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
- if test -f $(CURDIR)/Makefile; then \
+ if test -f $(CURDIR)/Makefile ; then \
$(MAKE) distclean; \
fi
dh_clean
dh_testroot
dh_clean -k
dh_installdirs
- cd $(CURDIR)/src && $(MAKE) -j 4 INSTALL_ROOT=$(CURDIR)/debian/mdictionary install
+ INSTALL_ROOT=$(CURDIR)/debian/tmp $(MAKE) install
binary-indep: build install
binary-arch: install
- dh_maemo_package_icons
dh_testdir
dh_testroot
+ if [ -e $(CURDIR)/debian/tmp/usr/share/applications/mdictionary.desktop ] ; then \
+ sed -i -e 's/.*mdictionary.desktop/usr\/share\/applications\/mdictionary.desktop/g' $(CURDIR)/debian/mdictionary.install ;\
+ else \
+ sed -i -e 's/.*mdictionary.desktop/usr\/share\/applications\/hildon\/mdictionary.desktop/g' $(CURDIR)/debian/mdictionary.install ;\
+ fi
+ dh_install --sourcedir=$(CURDIR)/debian/tmp
+ dh_installdocs
dh_strip
dh_compress
dh_fixperms
dh_gencontrol
dh_md5sums
dh_builddeb
- dh_maemo_package_icons -r
+# dh_maemo_package_icons -r
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
+PROJECTNAME = mdictionary
VERSION = 0.1
QT = \
CONFIG += \
qt \
- release
+ release
+
+CONFIG -= debug
isEmpty(ENABLED_SRC):ENABLED_SRC = "mdictionary plugins desktopWidget"
isEmpty(ENABLED_PLUGINS):ENABLED_PLUGINS = "xdxf google"
TEMPLATE = subdirs
-SUBDIRS = src tests
+SUBDIRS = src
CONFIG += ordered
include (mdictionary.pri)
check.CONFIG += recursive
-check.recurse = src tests
-check.depends = install
+check.recurse = src
QMAKE_EXTRA_TARGETS += check
+
+include (doc/doc.pri)
+QMAKE_EXTRA_TARGETS += doc
+
message("Enabled sources: "$$ENABLED_SRC)
message("Enabled plugins: "$$ENABLED_PLUGINS)
message("Plugins directory: "$$PLUGINS_DIR)
message("Documentation directory: "$$DOCS_DIR)
-
-if(coverage) {
- coverage-report.CONFIG = recursive
- coverage-report.recurse = src
- QMAKE_EXTRA_TARGETS += coverage-report
- message('******************************************************************' )
- message('* Remember to disable CCACHE in scratchbox to make Code Coverage' )
- message('* report!' )
- message('* use command: export SBOX_USE_CCACHE="no"' )
- message('******************************************************************' )
-}
desktop
}
-
+check.commands = echo 'No check here'
+QMAKE_EXTRA_TARGETS += check
}
-
-coverage {
- # add flags to compiler
- LIBS += -lgcov
- QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs -fno-elide-constructors
-
- # and add a target for generating report
- QMAKE_EXTRA_TARGETS += coverage-report
- coverage-report.commands = lcov -d .obj --capture --output-file all.cov -b . &&
- coverage-report.commands += lcov -r all.cov '*thumbtest*' -r all.cov '*/src/dbus/*' -r all.cov '*/src/.moc/*' -o to_test.cov &&
- coverage-report.commands += lcov -e to_test.cov '*/*/src/*.cpp*' -e to_test.cov '*/*/src/*.h*' -e to_test.cov '*/*/src/common/*.h*' -o final.cov &&
- coverage-report.commands += genhtml -o coverage final.cov
-}
-
check.commands = echo 'No check here'
QMAKE_EXTRA_TARGETS += check
RESOURCES += \
icons.qrc
+
+check.commands = echo 'No check here'
+QMAKE_EXTRA_TARGETS += check
TEMPLATE = subdirs
SUBDIRS = $$ENABLED_PLUGINS
+
+check.CONFIG = recursive
+check.recurse = $$ENABLED_PLUGINS
+QMAKE_EXTRA_TARGETS += check
dicts.files += ../../../data/dicts/eng-thai.xdxf
}
+check.commands = echo 'No check here'
+QMAKE_EXTRA_TARGETS += check
include(src.pri)
+include(../mdictionary.pri)
TEMPLATE = subdirs
SUBDIRS = $$ENABLED_SRC
check.recurse = $$ENABLED_SRC
QMAKE_EXTRA_TARGETS += check
-coverage {
- # add flags to compiler
- LIBS += -lgcov
- QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs -fno-elide-constructors
-}
+INSTALL_HEADERS = include/*
+install_headers.path = $$INSTALL_PREFIX/include/mdictionary
+install_headers.files = $$INSTALL_HEADERS
+
+INSTALLS += install_headers
+
--- /dev/null
+######################################################################
+# Automatically generated by qmake (1.07a) Wed Aug 4 11:35:12 2010
+######################################################################
+
+CONFIG += qtestlib
+QT += core gui network
+TARGET = GooglePluginTests
+TEMPLATE = app
+INCLUDEPATH += .
+
+# Input
+HEADERS += test.h \
+ ../../src/plugins/google/GooglePlugin.h \
+ ../../src/include/translation.h \
+ ../../src/include/settings.h \
+ ../../src/include/DictDialog.h \
+ ../../src/include/CommonDictInterface.h \
+ ../../src/plugins/google/TranslationGoogle.h \
+ ../../src/plugins/google/GoogleDictDialog.h \
+ ../../src/plugins/google/GoogleSettingsDialog.h
+
+SOURCES += test.cpp \
+ ../../src/plugins/google/GooglePlugin.cpp \
+ ../../src/plugins/google/TranslationGoogle.cpp \
+ ../../src/plugins/google/GoogleDictDialog.cpp \
+ ../../src/plugins/google/GoogleSettingsDialog.cpp
+
+target.path = .
+target.commands = ./GooglePluginTests
+INSTALLS += target
+
+
+check.depends = $$TARGET
+check.commands = ./$${TARGET}
+QMAKE_EXTRA_TARGETS += check
+++ /dev/null
-######################################################################
-# Automatically generated by qmake (1.07a) Wed Aug 4 11:35:12 2010
-######################################################################
-
-CONFIG += qtestlib
-QT += core gui network
-TARGET = GooglePluginTests
-TEMPLATE = app
-INCLUDEPATH += .
-
-# Input
-HEADERS += test.h \
- ../../src/plugins/google/GooglePlugin.h \
- ../../src/common/translation.h \
- ../../src/common/settings.h \
- ../../src/common/DictDialog.h \
- ../../src/common/CommonDictInterface.h \
- ../../src/plugins/google/TranslationGoogle.h \
- ../../src/plugins/google/GoogleDictDialog.h \
- ../../src/plugins/google/GoogleSettingsDialog.h
-
-SOURCES += test.cpp \
- ../../src/plugins/google/GooglePlugin.cpp \
- ../../src/plugins/google/TranslationGoogle.cpp \
- ../../src/plugins/google/GoogleDictDialog.cpp \
- ../../src/plugins/google/GoogleSettingsDialog.cpp
-
-target.path = .
-target.commands = ./GooglePluginTests
-INSTALLS += target
--- /dev/null
+######################################################################
+# Automatically generated by qmake (1.07a) Wed Aug 4 11:35:12 2010
+######################################################################
+
+CONFIG += qtestlib
+QT += sql
+TARGET = xdxfPluginTests
+TEMPLATE = app
+INCLUDEPATH += .
+
+# Input
+HEADERS += test.h \
+ ../../src/plugins/xdxf/xdxfplugin.h \
+ ../../src/plugins/xdxf/TranslationXdxf.h \
+ ../../src/include/translation.h \
+ ../../src/include/settings.h \
+ ../../src/include/DictDialog.h \
+ ../../src/include/CommonDictInterface.h \
+ ../../src/plugins/xdxf/XdxfDictDialog.h \
+ ../../src/plugins/xdxf/XdxfLoadDialog.h \
+ ../../src/plugins/xdxf/XdxfSettingsDialog.h \
+ ../../src/plugins/xdxf/XdxfCachingDialog.h
+
+
+SOURCES += test.cpp \
+ ../../src/plugins/xdxf/xdxfplugin.cpp \
+ ../../src/plugins/xdxf/TranslationXdxf.cpp \
+ ../../src/plugins/xdxf/XdxfLoadDialog.cpp \
+ ../../src/plugins/xdxf/XdxfDictDialog.cpp \
+ ../../src/plugins/xdxf/XdxfCachingDialog.cpp \
+ ../../src/plugins/xdxf/XdxfSettingsDialog.cpp
+
+target.path = .
+target.commands = ./xdxfPluginTests
+INSTALLS += target
+
+check.depends = $$TARGET
+check.commands = ./$${TARGET}
+QMAKE_EXTRA_TARGETS += check
+++ /dev/null
-######################################################################
-# Automatically generated by qmake (1.07a) Wed Aug 4 11:35:12 2010
-######################################################################
-
-CONFIG += qtestlib
-QT += sql
-TARGET = xdxfPluginTests
-TEMPLATE = app
-INCLUDEPATH += .
-
-# Input
-HEADERS += test.h \
- ../../src/plugins/xdxf/xdxfplugin.h \
- ../../src/plugins/xdxf/TranslationXdxf.h \
- ../../src/common/translation.h \
- ../../src/common/settings.h \
- ../../src/common/DictDialog.h \
- ../../src/common/CommonDictInterface.h \
- ../../src/plugins/xdxf/XdxfDictDialog.h \
- ../../src/plugins/xdxf/XdxfLoadDialog.h \
- ../../src/plugins/xdxf/XdxfSettingsDialog.h \
- ../../src/plugins/xdxf/XdxfCachingDialog.h
-
-
-SOURCES += test.cpp \
- ../../src/plugins/xdxf/xdxfplugin.cpp \
- ../../src/plugins/xdxf/TranslationXdxf.cpp \
- ../../src/plugins/xdxf/XdxfLoadDialog.cpp \
- ../../src/plugins/xdxf/XdxfDictDialog.cpp \
- ../../src/plugins/xdxf/XdxfCachingDialog.cpp \
- ../../src/plugins/xdxf/XdxfSettingsDialog.cpp
-
-target.path = .
-target.commands = ./xdxfPluginTests
-INSTALLS += target
INSTALLS += target
-coverage {
- LIBS += -lgcov
- QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs -fno-elide-constructors
-}
-
check.depends = $$TARGET
-check.commands = ./mDictionaryTests
+check.commands = ./$${TARGET}
QMAKE_EXTRA_TARGETS += check
-TEMPLATE=subdirs
-SUBDIRS = mDictionaryTests
+TEMPLATE = subdirs
+SUBDIRS = mDictionaryTests GooglePluginTests XdxfPluginTests
check.CONFIG = recursive
-check.recurse = mDictionaryTests
+check.recurse = mDictionaryTests GooglePluginTests XdxfPluginTests
QMAKE_EXTRA_TARGETS += check
-
-coverage {
- # add flags to compiler
- LIBS += -lgcov
- QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs -fno-elide-constructors
-}