forked from Metrological/qtbrowser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
qtbrowser.pro
83 lines (66 loc) · 1.91 KB
/
qtbrowser.pro
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
TEMPLATE = app
TARGET = qtbrowser
HEADERS += \
sslhandler.h \
webpage.h \
graphicswebview.h \
graphicsview.h \
webview.h
SOURCES += \
sslhandler.cpp \
webpage.cpp \
graphicswebview.cpp \
graphicsview.cpp \
webview.cpp \
qtbrowser.cpp
# No we don't want OpenGL right now.
#contains(QT_CONFIG, opengl) {
# DEFINES += QT_BUILD_WITH_OPENGL
# message("Building with OpenGL support.")
#} else {
# warning("OpenGL support is not available, qtbrowser might work but supported features and performance are limited.")
#}
#contains(QT_CONFIG, opengles1) {}
#contains(QT_CONFIG, opengles2) {}
#contains(QT_CONFIG, egl) {}
contains(QT_CONFIG, openssl)|contains(QT_CONFIG, openssl-linked) {
message("Building with OpenSSL support.")
} else {
error("OpenSSL support is not available, qtbrowser requires OpenSSL.")
}
contains(QT_MAJOR_VERSION, 4) {
contains(QT_CONFIG, webkit) {
message("Module webkit found.")
} else {
error("No module webkit, qtbrowser requires module webkit.")
}
QT += \
webkit
contains(QT_CONFIG, opengl){
QT += \
opengl
}
message("Building for Qt4.")
}
contains(QT_MAJOR_VERSION, 5) {
qtHaveModule(widgets)|qtHaveModule(webkitwidgets) {
message("Module webkit/webkitwidgets found.")
} else {
error("No module webkit/webkitwidgets found, qtbrowser requires module webkitwidgets.")
}
QT += \
webkitwidgets
contains(QT_CONFIG, opengl){
QT += \
opengl
}
qtHaveModule(quick):qtHaveModule(qml) {
message("Modules qml and quick found.")
QT += \
qml quick
DEFINES += QT_BUILD_WITH_QML_API
} else {
warning("QtQuick/QML API might not be supported.")
}
message("Building for Qt5.")
}