common.pri 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 2010 wkhtmltopdf authors
  2. #
  3. # This file is part of wkhtmltopdf.
  4. #
  5. # wkhtmltopdf 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. # wkhtmltopdf 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
  16. # along with wkhtmltopdf. If not, see <http:#www.gnu.org/licenses/>.
  17. unix {
  18. TEMP = $$[QT_INSTALL_LIBS] libQtGui.prl
  19. PRL = $$[QT_INSTALL_LIBS] QtGui.framework/QtGui.prl
  20. include($$join(TEMP, "/"))
  21. include($$join(PRL, "/"))
  22. }
  23. exists($$QMAKE_LIBDIR_QT/libQtGui.so) {
  24. DEFINES += QT_SHARED
  25. } else:exists($$QMAKE_LIBDIR_QT/../bin//QtGui4.dll) {
  26. DEFINES += QT_SHARED
  27. } else:contains(QMAKE_PRL_CONFIG, shared) {
  28. DEFINES += QT_SHARED
  29. } else {
  30. DEFINES += QT_STATIC
  31. QTPLUGIN += qjpeg qgif qtiff qmng
  32. }
  33. MOC_DIR = ../../build
  34. OBJECTS_DIR = ../../build
  35. UI_DIR = ../../build
  36. INCLUDEPATH += ../../include
  37. win32 {
  38. CONFIG += console
  39. }
  40. QT += webkit network xmlpatterns