source: wkhtmltox/trunk/fuentes/common.pri @ 51

Last change on this file since 51 was 51, checked in by mabarracus, 4 years ago

wip

File size: 1.4 KB
Line 
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
18CONFIG(static, shared|static):lessThan(QT_MAJOR_VERSION, 5) {
19    DEFINES  += QT4_STATICPLUGIN_TEXTCODECS
20    QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs
21}
22
23INCLUDEPATH += ../../include
24RESOURCES    = $$PWD/wkhtmltopdf.qrc
25
26win32: CONFIG += console
27
28QT += webkit network xmlpatterns svg
29greaterThan(QT_MAJOR_VERSION, 4) {
30    QT += webkitwidgets
31    greaterThan(QT_MINOR_VERSION, 2): QT += printsupport
32}
33
34# version related information
35VERSION_TEXT=$$(WKHTMLTOX_VERSION)
36isEmpty(VERSION_TEXT): VERSION_TEXT=$$cat($$PWD/VERSION)
37VERSION_LIST=$$split(VERSION_TEXT, "-")
38
39count(VERSION_LIST, 1): VERSION=$$VERSION_TEXT
40else:                   VERSION=$$member(VERSION_LIST, 0)
41
42DEFINES += VERSION=$$VERSION FULL_VERSION=$$VERSION_TEXT
Note: See TracBrowser for help on using the repository browser.