Repair problem with build app on scratchbox. Add rules to build deb package with...
[mdictionary] / src / plugins / xdxf / xdxf.pro
index d609a39..79bf8c8 100644 (file)
@@ -1,17 +1,31 @@
 TARGET = xdxf
-
 include(../plugin.pri)
+QT = core \
+    gui \
+    xml \
+    sql \
+    network
+maemo5 {
+    LIBS += -lbz2 \
+}
+
+!maemo5 {
+    LIBS += -ltar \
+        -lbz2
+}
 
-SOURCES +=  \
-    xdxfplugin.cpp \
+maemo5:QT += maemo5
+SOURCES += xdxfplugin.cpp \
     TranslationXdxf.cpp \
     XdxfDictDialog.cpp \
     XdxfCachingDialog.cpp \
-    XdxfDialog.cpp
-
-
-HEADERS += \
-    xdxfplugin.h \
+    XdxfDialog.cpp \
+    XdxfDictDownloader.cpp \
+    XdxfDictSelectDialog.cpp \
+    XdxfDictDownloadProgressDialog.cpp \
+    DictsModel.cpp \
+    HttpDownloader.cpp
+HEADERS += xdxfplugin.h \
     TranslationXdxf.h \
     ../../include/DictDialog.h \
     XdxfDictDialog.h \
@@ -19,24 +33,26 @@ HEADERS += \
     ../../include/settings.h \
     ../../include/CommonDictInterface.h \
     XdxfCachingDialog.h \
-    XdxfDialog.h
-
-RESOURCES += \
-    xdxf.qrc
-
+    XdxfDialog.h \
+    XdxfDictDownloader.h \
+    XdxfDictSelectDialog.h \
+    XdxfDictDownloadProgressDialog.h \
+    DownloadDict.h \
+    DictsModel.h \
+    DictsProxyModel.h \
+    HttpDownloader.h
+RESOURCES += xdxf.qrc
 TRANSLATIONS += pl_PL.ts \
-                en_US.ts
-    
-unix {
-  INSTALLS += dicts plugin-icon
-
-  dicts.path = $$PLUGINS_DIR
-  dicts.files += ../../../data/dicts/eng-us.xdxf
-  dicts.files += ../../../data/dicts/eng-thai.xdxf
-
-  plugin-icon.path = $$DATA_DIR
-  plugin-icon.files += xdxf.png
+    en_US.ts
+unix { 
+    INSTALLS += dicts \
+        plugin-icon
+    dicts.path = $$PLUGINS_DIR
+    dicts.files += ../../../data/dicts/eng-us.xdxf
+    dicts.files += ../../../data/dicts/eng-thai.xdxf
+    plugin-icon.path = $$DATA_DIR
+    plugin-icon.files += xdxf.png
 }
-
-check.commands = echo 'No check here'
+check.commands = echo \
+    'No check here'
 QMAKE_EXTRA_TARGETS += check