redak.pro 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. #! /usr/bin/qmake .
  2. #* #ident "$Id: $"
  3. #* @author: rzr@gna.org - rev: $Author: rzr$
  4. #* Copyright: See README file that comes with this distribution
  5. #*****************************************************************************/
  6. SOURCES += \
  7. main.cpp \
  8. redak.cpp \
  9. config.cpp
  10. HEADERS += \
  11. redak.h \
  12. config.h
  13. VERSION=0.6.3
  14. VER_MAJ=0
  15. VER_MIN=6
  16. VER_PAT=3
  17. # Additional import path used to resolve QML modules in Creators code model
  18. QML_IMPORT_PATH =
  19. TEMPLATE = app
  20. #TEMPLATE = lib
  21. INCLUDEPATH += /usr/include/applauncherd
  22. # If your application uses the Qt Mobility libraries, uncomment the following
  23. # lines and add the respective components to the MOBILITY variable.
  24. # CONFIG += mobility
  25. # MOBILITY +=
  26. # Speed up launching on MeeGo/Harmattan when using applauncherd daemon
  27. CONFIG += qdeclarative-boostable
  28. CONFIG += plugin
  29. # Add dependency to Symbian components
  30. CONFIG += qt-components
  31. config += qt-components
  32. #For older SDKs you may need:
  33. #CONFIG += qtquickcomponents
  34. greaterThan(QT_MAJOR_VERSION, 4) {
  35. QT += widgets
  36. QT += quick1
  37. } else {
  38. QT += declarative
  39. }
  40. OTHER_FILES += \
  41. README.txt \
  42. TODO.txt \
  43. AUTHORS.txt \
  44. mk-local.mk \
  45. #qmlfiles.source = qml/redak
  46. #qmlfiles.target = qml/
  47. unix {
  48. desktop.files = redak.desktop
  49. desktop.path = /usr/share/applications/
  50. icon64.files = redak64.png
  51. icon64.path = /usr/share/icons/hicolor/64x64/apps/
  52. icon80.files = redak80.png
  53. icon80.path = /usr/share/icons/hicolor/80x80/apps/
  54. INSTALLS+=desktop icon80
  55. OTHER_FILES += \
  56. redak.desktop \
  57. redak.png \
  58. #
  59. !isEmpty(MEEGO_VERSION_MAJOR) {
  60. qmlfiles.source = qml/redak/common qml/redak/meego
  61. qmlfiles.target = qml/redak
  62. contains(MEEGO_EDITION,harmattan) { #maemo6
  63. desktop.files = redak_harmattan.desktop
  64. desktop.path = /usr/share/applications/
  65. DEFINES += Q_WS_HARMATTAN=1
  66. OTHER_FILES += \
  67. debian/ \
  68. debian/control \
  69. debian/changelog \
  70. debian/rules \
  71. debian/links \
  72. qtc_packaging/debian_harmattan/rules \
  73. qtc_packaging/debian_harmattan/README \
  74. qtc_packaging/debian_harmattan/manifest.aegis \
  75. qtc_packaging/debian_harmattan/copyright \
  76. qtc_packaging/debian_harmattan/control \
  77. qtc_packaging/debian_harmattan/compat \
  78. qtc_packaging/debian_harmattan/changelog \
  79. qtc_packaging/debian_fremantle/rules \
  80. qtc_packaging/debian_fremantle/README \
  81. qtc_packaging/debian_fremantle/copyright \
  82. qtc_packaging/debian_fremantle/control \
  83. qtc_packaging/debian_fremantle/compat \
  84. qtc_packaging/debian_fremantle/changelog \
  85. #
  86. } else { #meego/mer/nemo # rpm?
  87. }
  88. } else { # unix but not meego
  89. }
  90. } #else:
  91. symbian {
  92. # default version for selfsigned binaries:
  93. # symbian:TARGET.UID3 = 0xE65F5F5E
  94. # ovi #TODO: keep commented
  95. # TARGET.UID3 += 0x20062276
  96. # 0x20062277 # http://www.developer.nokia.com/Resources/Library/Publisher_Guide_en_us/#!appendices/file-validation-errors.htm;#toc_Error105
  97. PRIVATEDIR=$$replace(TARGET.UID3, "^0x", "")
  98. redak_installer.pkg_prerules += vendorinfo
  99. # vendorinfo += "%{\"rzr\"}" ":\"rzr\""
  100. # http://qt-project.org/forums/viewthread/9302
  101. redak_installer.pkg_prerules += \
  102. "; Dependency to Symbian Qt Quick components" \
  103. "(0x200346DE), 1, 0, 0, {\"Qt Quick components\"}"
  104. # Smart Installer package's UID
  105. # This UID is from the protected range and therefore the package will
  106. # fail to install if self-signed. By default qmake uses the unprotected
  107. # range value if unprotected UID is defined for the application and
  108. # 0x2002CCCF value if protected UID is given to the application
  109. DEPLOYMENT.installer_header = 0x2002CCCF
  110. DEPLOYMENT += redak_installer
  111. #symbian:TARGET.CAPABILITY += AllFiles
  112. #symbian:TARGET.CAPABILITY += WriteUserData ReadUserData NetworkServices
  113. # Add more folders to ship with the application, here
  114. qmlfiles.source = qml/redak/common qml/redak/symbian
  115. qmlfiles.target = qml/redak/
  116. #OTHER_FILES += redak.pkg
  117. } else:android {
  118. OTHER_FILES += \
  119. android/res/values-zh-rCN/strings.xml \
  120. android/res/drawable/logo.png \
  121. android/res/drawable/icon.png \
  122. android/res/layout/splash.xml \
  123. android/res/values-fr/strings.xml \
  124. android/res/values-it/strings.xml \
  125. android/res/values-zh-rTW/strings.xml \
  126. android/res/values-pl/strings.xml \
  127. android/res/values-et/strings.xml \
  128. android/res/values-pt-rBR/strings.xml \
  129. android/res/values-fa/strings.xml \
  130. android/res/drawable-ldpi/icon.png \
  131. android/res/values-ms/strings.xml \
  132. android/res/values-de/strings.xml \
  133. android/res/values-ja/strings.xml \
  134. android/res/values-nb/strings.xml \
  135. android/res/values-id/strings.xml \
  136. android/res/values-ru/strings.xml \
  137. android/res/values-el/strings.xml \
  138. android/res/values-rs/strings.xml \
  139. android/res/values-ro/strings.xml \
  140. android/res/values/libs.xml \
  141. android/res/values/strings.xml \
  142. android/res/values-es/strings.xml \
  143. android/res/values-nl/strings.xml \
  144. android/res/drawable-hdpi/icon.png \
  145. android/res/drawable-mdpi/icon.png \
  146. android/AndroidManifest.xml \
  147. android/src/org/kde/necessitas/ministro/IMinistroCallback.aidl \
  148. android/src/org/kde/necessitas/ministro/IMinistro.aidl \
  149. android/src/org/kde/necessitas/origo/QtActivity.java \
  150. android/src/org/kde/necessitas/origo/QtApplication.java \
  151. android/version.xml
  152. } else { #windows?
  153. }
  154. DEPLOYMENTFOLDERS+=qmlfiles
  155. # Please do not modify the following two lines. Required for deployment.
  156. include(qmlapplicationviewer/qmlapplicationviewer.pri)
  157. qtcAddDeployment()
  158. symbian {
  159. vendorinfo += "%{\"rzr\"}" ":\"rzr\""
  160. TARGET.UID3 += 0x20062276
  161. }
  162. #eof