Add spec file nad script to automaticly build rpm packages (for meego netbook). Fix...
[mdictionary] / src / plugins / stardict / stardict.pro
index c57a9e9..1a68e84 100644 (file)
@@ -5,41 +5,65 @@ include(../plugin.pri)
 QT = core \
     gui \
     xml \
-    sql
+    sql \
+    declarative
 
 maemo5:QT += maemo5
 
+LIBS += -lz
+
 SOURCES +=  \
     StarDictPlugin.cpp \
     TranslationStarDict.cpp \
     StarDictDialog.cpp \
-    StarDialog.cpp
-
+    StarDialog.cpp \
+    CompressedReader.cpp \
+    UncompressedReader.cpp \
+    StarDictReaderFactory.cpp
 
 HEADERS += \
     StarDictPlugin.h \
     TranslationStarDict.h \
     ../../include/DictDialog.h \
-    StarDictDictDialog.h \
+    StarDictDialog.h \
     ../../include/translation.h \
     ../../include/settings.h \
     ../../include/CommonDictInterface.h \
-    StarDialog.h
+    StarDialog.h \
+    CompressedReader.h \
+    UncompressedReader.h \
+    StarDictReaderFactory.h \
+    StarDictReader.h
 
-RESOURCES += \
-    StarDict.qrc
+RESOURCES += StarDict.qrc
 
 TRANSLATIONS += pl_PL.ts \
                 en_US.ts
     
 unix {
-  INSTALLS += plugin-icon
 
+    plugin-icon.path = $$DATA_DIR
+    plugin-icon.files += stardict.png
 
+    meego {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/StarDictDialog.qml
+    }
+    else:maemo5 {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/StarDictDialog.qml
+    }
+    else {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/StarDictDialog.qml
+    }
 
-  plugin-icon.path = $$DATA_DIR
-  plugin-icon.files += xdxf.png
+    INSTALLS += plugin-icon \
+                qmls
 }
 
-check.commands = echo 'No check here'
+check.commands = echo \
+                'No check here'
 QMAKE_EXTRA_TARGETS += check
+
+OTHER_FILES += ../../mdictionary/qml/StarDictDialog.qml