DictionaryStar.pro 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ################################################################################
  2. # DictionaryStar.pro - DictionaryStar, stardict dictionary for MeeGo Harmattan #
  3. # Copyright (C) 2012 Jari P.T. Alhonen #
  4. # #
  5. # This program is free software; you can redistribute it and/or modify #
  6. # it under the terms of the GNU General Public License as published by #
  7. # the Free Software Foundation; either version 3 of the License, or #
  8. # (at your option) any later version. #
  9. # #
  10. # This program is distributed in the hope that it will be useful, #
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of #
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  13. # GNU General Public License for more details. #
  14. # #
  15. # You should have received a copy of the GNU General Public License along #
  16. # with this program; if not, see <http://www.gnu.org/licenses/>. #
  17. ################################################################################
  18. include(DictionaryStar.pri)
  19. TEMPLATE = subdirs
  20. SUBDIRS = src plugins
  21. unix: isEmpty(INSTALL_PREFIX):INSTALL_PREFIX=/usr
  22. unix {
  23. CONFIG += link_pkgconfig
  24. PKGCONFIG += glib-2.0
  25. LIBS += -lz -larchive
  26. }
  27. macx {
  28. # universal binaries
  29. CONFIG += x86 #x86_64 # not available on Snow Leopard ppc ppc64
  30. # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk/
  31. }
  32. win32 {
  33. CONFIG += console
  34. # TODO: check what is the libarchive dll really called under win32!
  35. LIBS += -lzdll -lglib-2.0 -luser32 -larchive
  36. INCLUDEPATH += $$GLIB2PATH/include/glib-2.0 \
  37. $$GLIB2PATH/lib/glib-2.0/include \
  38. $$ZLIBPATH/include
  39. QMAKE_LIBDIR += $$GLIB2PATH/lib \
  40. $$ZLIBPATH/lib
  41. }
  42. qml_data.path = $${INSTALL_PREFIX}/qml
  43. qml_data.files = qml/*.qml
  44. desktops_data.path = /usr/share/applications
  45. desktops_data.files = DictionaryStar.desktop
  46. images_data.path = /usr/share/themes/base/meegotouch/icons
  47. images_data.files = images/DictionaryStar.svg
  48. INSTALLS += desktops_data \
  49. images_data \
  50. qml_data