pdf.pro 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 2010-2020 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 = wkhtmltopdf
  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/wkhtmltopdf --manpage | gzip > $(INSTALL_ROOT)$$INSTALLBASE/share/man/man1/wkhtmltopdf.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. #Application part
  41. SOURCES += wkhtmltopdf.cc pdfarguments.cc pdfcommandlineparser.cc \
  42. pdfdocparts.cc