common.pri 694 B

12345678910111213141516171819202122232425262728
  1. INCLUDEPATH += $$MOC_DIR \
  2. $$UI_DIR \
  3. $$RCC_DIR
  4. CONFIG(debug, debug|release){
  5. CONFIG_NAME = debug
  6. DEFINES += DEBUG
  7. DEFINES += DEBUG_REQUESTS
  8. }else{
  9. CONFIG_NAME = release
  10. DEFINES += RELEASE
  11. QMAKE_CXXFLAGS += -Werror
  12. }
  13. TMP_DIR = ./tmp
  14. MOC_DIR += $$TMP_DIR/$$CONFIG_NAME/moc
  15. OBJECTS_DIR += $$TMP_DIR/$$CONFIG_NAME/obj/$$QMAKE_HOST.arch
  16. UI_DIR += $$TMP_DIR/$$CONFIG_NAME/uic
  17. RCC_DIR += $$TMP_DIR/$$CONFIG_NAME/rcc
  18. QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden #-std=c++0x
  19. QMAKE_LFLAGS += -pie -rdynamic
  20. # share ui setup
  21. CONFIG += shareuiinterface-maemo-meegotouch mdatauri
  22. PKGCONFIG += gq-gconf
  23. CONFIG += mobility
  24. MOBILITY += systeminfo