rentbook.pro 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Copyright (c) 2011 Nokia Corporation.
  2. QT += core gui sql declarative
  3. CONFIG += qt-components
  4. TARGET = rentbook
  5. TEMPLATE = app
  6. VERSION = 1.0
  7. SOURCES += \
  8. src/main.cpp \
  9. src/componentloader.cpp \
  10. src/DatabaseManager.cpp \
  11. src/telephony.cpp
  12. HEADERS += \
  13. src/componentloader.h \
  14. src/DatabaseManager.h \
  15. src/telephony.h
  16. #RESOURCES += resources.qrc
  17. OTHER_FILES += \
  18. qml/common/*.qml \
  19. qml/common/*.js \
  20. qml/common/*.svg \
  21. qml/common/*.png
  22. # Publish the app version to source code.
  23. DEFINES += APP_VERSION=\\\"$$VERSION\\\"
  24. # Symbian specific
  25. symbian {
  26. message(Symbian build)
  27. TARGET = RentBook
  28. TARGET.UID3 = 0xea6c2793
  29. TARGET.CAPABILITY += NetworkServices
  30. TARGET.EPOCSTACKSIZE = 0x14000
  31. TARGET.EPOCHEAPSIZE = 0x1000 0x1800000 # 24MB
  32. ICON = icons/rentbook.svg
  33. # Define the preprocessor macro to get the version in our app.
  34. contains(SYMBIAN_VERSION, Symbian3) {
  35. message(Symbian build)
  36. DEFINES += APP_VERSION=\"$$VERSION\"
  37. }
  38. else {
  39. message(Symbian^1 build)
  40. DEFINES += Q_OS_SYMBIAN_1
  41. }
  42. HEADERS += src/telephony_symbian.h
  43. SOURCES += src/telephony_symbian.cpp
  44. LIBS += -letel3rdparty
  45. OTHER_FILES += \
  46. qml/symbian/*.qml \
  47. qml/symbian/*.js
  48. RESOURCES += resources.qrc
  49. qmlfiles.sources = qml
  50. DEPLOYMENT += qmlfiles
  51. }
  52. # Harmattan specific
  53. contains(MEEGO_EDITION, harmattan) {
  54. message(Harmattan build)
  55. DEFINES += Q_WS_HARMATTAN
  56. HEADERS += src/telephony_stub.h
  57. SOURCES += src/telephony_stub.cpp
  58. target.path = /opt/usr/bin
  59. INSTALLS += target
  60. qmlfiles.path = /home/developer/rentbook/qml/
  61. qmlfiles.files += qml/*
  62. INSTALLS += qmlfiles
  63. desktopfile.files = rentbook.desktop
  64. desktopfile.path = /usr/share/applications
  65. icon.files = icons/rentbook.png
  66. icon.path = /usr/share/icons/hicolor/64x64/apps
  67. INSTALLS += desktopfile icon
  68. OTHER_FILES += \
  69. qml/harmattan/*.qml \
  70. qml/harmattan/*.js
  71. }
  72. # Simulator
  73. simulator {
  74. message(Simulator build)
  75. HEADERS += src/telephony_stub.h
  76. SOURCES += src/telephony_stub.cpp
  77. OTHER_FILES += qml/symbian/*.qml
  78. # Modify the following path if necessary
  79. SHADOW_BLD_PATH = ..\\rentbook-build-simulator-Simulator_Qt_for_MinGW_4_4__Qt_SDK__Debug
  80. system(mkdir $${SHADOW_BLD_PATH}\\qml\\symbian)
  81. system(mkdir $${SHADOW_BLD_PATH}\\qml\\common)
  82. system(copy qml\\symbian\\*.* $${SHADOW_BLD_PATH}\\qml\\symbian)
  83. system(copy qml\\common\\*.* $${SHADOW_BLD_PATH}\\qml\\common)
  84. }