forked from wkhtmltopdf/wkhtmltopdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.pri
43 lines (36 loc) · 1.52 KB
/
common.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2010-2020 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 <http:#www.gnu.org/licenses/>.
CONFIG(static, shared|static):lessThan(QT_MAJOR_VERSION, 5) {
DEFINES += QT4_STATICPLUGIN_TEXTCODECS
QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs
}
INCLUDEPATH += ../../src/lib
RESOURCES = $$PWD/wkhtmltopdf.qrc
win32: CONFIG += console
win32-g++*: QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
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 BUILDING_WKHTMLTOX