TeLLie

Untitled

Aug 21st, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. TARGET = qtdbf
  2. TEMPLATE = app
  3. DESTDIR = bin
  4. CONFIG += release
  5. CONFIG += qt \
  6. warn_on
  7. unix:DEFINES += UNIX
  8. HEADERS += src/structures.h \
  9. src/dbfeditor.h \
  10. src/mainwindow.h \
  11. src/widgets.h \
  12. src/qtcalculator.h \
  13. src/globals.h \
  14. src/customsqlmodel.h \
  15. src/dbfconfig.h \
  16. src/dialogfilter.h
  17. SOURCES += src/dbfeditor.cpp \
  18. src/main.cpp \
  19. src/mainwindow.cpp \
  20. src/widgets.cpp \
  21. src/qtcalculator.cpp \
  22. src/customsqlmodel.cpp \
  23. src/dbfconfig.cpp \
  24. src/saveconfig.cpp \
  25. src/dialogfilter.cpp
  26. RESOURCES += src/qtDbf.qrc
  27. QT += sql \
  28. svg
  29. OBJECTS_DIR += ./.obj
  30. MOC_DIR += ./.moc
  31. RCC_DIR += ./.rcc
  32.  
  33. os2:RC_FILE = src/qtDbf.rc
  34.  
  35. TRANSLATIONS = src/lang/qtdbf_hu.ts \
  36. src/lang/qtdbf_ru.ts \
  37. src/lang/qtdbf_ro.ts \
  38. src/lang/qtdbf_uk.ts
  39.  
  40. defineReplace(outname) {
  41. $(MKDIR) $${DESTDIR}/lang
  42. return($$1)
  43. }
  44.  
  45. updateqm.name = Lang files compiler
  46. updateqm.input = TRANSLATIONS
  47. updateqm.output = $${DESTDIR}/lang/${QMAKE_FILE_BASE}.qm
  48. updateqm.commands = $$[QT_INSTALL_PREFIX]/bin/lrelease -silent ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
  49. updateqm.output_function = outname
  50.  
  51. updateqm.CONFIG += no_link target_predeps
  52. QMAKE_EXTRA_COMPILERS += updateqm
  53.  
  54. # install
  55. INSTALLS += target
  56.  
  57. unix {
  58. INSTALLS += help \
  59. translations \
  60. icon \
  61. icon128 \
  62. icon16 \
  63. icon32 \
  64. icon48 \
  65. icon64 \
  66. desktop
  67. isEmpty(PREFIX)
  68. {
  69. PREFIX=/usr
  70. }
  71. target.path = $$PREFIX/bin
  72.  
  73. translations.files = bin/lang/*.qm
  74. translations.path = $$PREFIX/share/qtdbf/lang
  75. translations.CONFIG += no_check_exist
  76.  
  77. help.files = src/help/*.html
  78. help.path = $$PREFIX/share/qtdbf/help
  79.  
  80. icon.files = src/images/qtdbf.svg
  81. icon.path = $$PREFIX/share/icons/hicolor/scalable/apps
  82.  
  83. icon128.files = src/images/qtdbf.png
  84. icon128.path = $$PREFIX/share/icons/hicolor/128x128/apps
  85.  
  86. icon16.files = src/images/16/qtdbf.png
  87. icon16.path = $$PREFIX/share/icons/hicolor/16x16/apps
  88.  
  89. icon32.files = src/images/32/qtdbf.png
  90. icon32.path = $$PREFIX/share/icons/hicolor/32x32/apps
  91.  
  92. icon48.files = src/images/48/qtdbf.png
  93. icon48.path = $$PREFIX/share/icons/hicolor/48x48/apps
  94.  
  95. icon64.files = src/images/64/qtdbf.png
  96. icon64.path = $$PREFIX/share/icons/hicolor/64x64/apps
  97.  
  98. desktop.files = misc/qtdbf.desktop
  99. desktop.path = $$PREFIX/share/applications
  100. }
  101. win32 {
  102. isEmpty(PREFIX)
  103. {
  104. PREFIX=c:\\Program Files\\qtDbf
  105. }
  106. target.path = $$quote(\"$$PREFIX\")
  107. target.depends += copy_help copy_lang
  108. copy_lang.target = copy_lang
  109. copy_lang.commands = xcopy /I /Y \"$$DESTDIR\\lang\\*.qm\" \"$$PREFIX\\lang\\\"
  110. copy_help.target = copy_help
  111. copy_help.commands = xcopy /I /Y \"$$DESTDIR\\help\\*.html\" \"$$PREFIX\\help\\\"
  112. QMAKE_EXTRA_TARGETS += copy_lang copy_help
  113. }
  114. os2 {
  115. target.path = /usr/bin
  116. translations.files = lang/*.qm
  117. translations.path = /usr/share/qtdbf/lang
  118. help.files = help/*
  119. help.path = /usr/share/doc/qtdbf/help
  120. }
Advertisement
Add Comment
Please, Sign In to add comment