# Copyright 2010, 2011 wkhtmltopdf authors # # This file is part of wkhtmltopdf. # # wkhtmltopdf is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wkhtmltopdf is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with wkhtmltopdf. If not, see . CONFIG(static, shared|static):lessThan(QT_MAJOR_VERSION, 5) { DEFINES += QT4_STATICPLUGIN_TEXTCODECS QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs } INCLUDEPATH += ../../include RESOURCES = $$PWD/wkhtmltopdf.qrc win32: CONFIG += console QT += webkit network xmlpatterns svg greaterThan(QT_MAJOR_VERSION, 4) { QT += webkitwidgets greaterThan(QT_MINOR_VERSION, 2): QT += printsupport } # version related information VERSION_TEXT=$$(WKHTMLTOX_VERSION) isEmpty(VERSION_TEXT): VERSION_TEXT=$$cat($$PWD/VERSION) VERSION_LIST=$$split(VERSION_TEXT, "-") count(VERSION_LIST, 1): VERSION=$$VERSION_TEXT else: VERSION=$$member(VERSION_LIST, 0) DEFINES += VERSION=$$VERSION FULL_VERSION=$$VERSION_TEXT