image.pro 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 2010, 2011 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 Lesser 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 Lesser General Public License
  16. # along with wkhtmltopdf. If not, see <http:#www.gnu.org/licenses/>.
  17. include(../../common.pri)
  18. TEMPLATE = app
  19. TARGET = wkhtmltoimage
  20. DESTDIR = ../../bin
  21. DEPENDPATH += . ../shared
  22. INCLUDEPATH += . ../shared
  23. unix {
  24. man.path=$$INSTALLBASE/share/man/man1
  25. man.extra=LD_LIBRARY_PATH=../../bin/ ../../bin/wkhtmltoimage --manpage | gzip > $(INSTALL_ROOT)$$INSTALLBASE/share/man/man1/wkhtmltoimage.1.gz
  26. QMAKE_EXTRA_TARGETS += man
  27. INSTALLS += man
  28. }
  29. macx {
  30. CONFIG -= app_bundle
  31. }
  32. INSTALLS += target
  33. target.path=$$INSTALLBASE/bin
  34. include(../shared/shared.pri)
  35. CONFIG(shared, shared|static) {
  36. LIBS += -L../../bin -lwkhtmltox
  37. } else {
  38. include(../lib/lib.pri)
  39. }
  40. # Input
  41. SOURCES += wkhtmltoimage.cc imagearguments.cc imagecommandlineparser.cc imagedocparts.cc