DictionaryStar.pri 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ################################################################################
  2. # DictionaryStar.pri - 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. QT += webkit network declarative
  19. symbian:TARGET.UID3 = 0xE42D2891
  20. # Smart Installer package's UID
  21. # This UID is from the protected range and therefore the package will
  22. # fail to install if self-signed. By default qmake uses the unprotected
  23. # range value if unprotected UID is defined for the application and
  24. # 0x2002CCCF value if protected UID is given to the application
  25. #symbian:DEPLOYMENT.installer_header = 0x2002CCCF
  26. # Allow network access on Symbian
  27. symbian:TARGET.CAPABILITY += NetworkServices
  28. contains(MEEGO_EDITION,harmattan):INSTALL_PREFIX=/opt/DictionaryStar
  29. unix: isEmpty(INSTALL_PREFIX):INSTALL_PREFIX=/usr/local
  30. unix {
  31. CONFIG += link_pkgconfig
  32. PKGCONFIG += glib-2.0
  33. LIBS += -lz
  34. LIBS += -larchive
  35. }
  36. macx {
  37. # universal binaries
  38. CONFIG += x86 #x86_64 # not available on Snow Leopard ppc ppc64
  39. # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk/
  40. }
  41. win32 {
  42. CONFIG += console
  43. # TODO: check what is the libarchive dll really called under win32!
  44. LIBS += -lzdll -lglib-2.0 -luser32 -larchive
  45. INCLUDEPATH += $$GLIB2PATH/include/glib-2.0 \
  46. $$GLIB2PATH/lib/glib-2.0/include \
  47. $$ZLIBPATH/include
  48. QMAKE_LIBDIR += $$GLIB2PATH/lib \
  49. $$ZLIBPATH/lib
  50. }
  51. isEmpty(PLUGINS_DIR):PLUGINS_DIR=$${INSTALL_PREFIX}/lib/DictionaryStar/plugins
  52. DEFINES += DICTSTAR_PLUGINS_DIR=\\\"$$INSTALL_PREFIX/lib/DictionaryStar/plugins\\\"