-
Notifications
You must be signed in to change notification settings - Fork 11
/
qt-ultralight-browser.pro
136 lines (113 loc) · 3.41 KB
/
qt-ultralight-browser.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
QT += core gui network widgets printsupport
qtHaveModule(uitools):!embedded: QT += uitools
else: DEFINES += QT_NO_UITOOLS
DEFINES += QT_NO_OPENSSL QT_NO_UNDOSTACK
CONFIG += c++11 file_copies
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
VERSION = 1.0
DEFINES += \
"DEVELOPER_NAME=\"\\\"Niu Tech\\\"\"" \
"APP_NAME=\"\\\"Qt Ultralight Browser\\\"\"" \
"APP_VERSION=\"\\\"$${VERSION}\\\"\""
SOURCES += \
autosaver.cpp \
bookmarks.cpp \
browserapplication.cpp \
browsermainwindow.cpp \
chasewidget.cpp \
cookiejar.cpp \
downloadmanager.cpp \
edittableview.cpp \
edittreeview.cpp \
history.cpp \
modelmenu.cpp \
networkaccessmanager.cpp \
qultralightframe.cpp \
qultralighthistory.cpp \
qultralightpage.cpp \
qultralightsettings.cpp \
qultralightview.cpp \
searchlineedit.cpp \
settings.cpp \
squeezelabel.cpp \
tabwidget.cpp \
toolbarsearch.cpp \
urllineedit.cpp \
webview.cpp \
xbel.cpp \
main.cpp
HEADERS += \
autosaver.h \
bookmarks.h \
browserapplication.h \
browsermainwindow.h \
chasewidget.h \
cookiejar.h \
downloadmanager.h \
edittableview.h \
edittreeview.h \
history.h \
modelmenu.h \
networkaccessmanager.h \
qultralightframe.h \
qultralighthistory.h \
qultralightpage.h \
qultralightsettings.h \
qultralightview.h \
searchlineedit.h \
settings.h \
squeezelabel.h \
tabwidget.h \
toolbarsearch.h \
urllineedit.h \
webview.h \
xbel.h
FORMS += \
addbookmarkdialog.ui \
bookmarks.ui \
cookies.ui \
cookiesexceptions.ui \
downloaditem.ui \
downloads.ui \
history.ui \
passworddialog.ui \
proxy.ui \
settings.ui
RESOURCES += data/data.qrc htmls/htmls.qrc
build_all:!build_pass {
CONFIG -= build_all
CONFIG += release
}
win32 {
RC_FILE = browser.rc
}
mac {
ICON = browser.icns
QMAKE_INFO_PLIST = Info_mac.plist
TARGET = Browser
}
EXAMPLE_FILES = Info_mac.plist browser.icns browser.ico browser.rc
# Default rules for deployment.
unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
ULTRALIGHT_PATH = ../ultralight
unix|win32: LIBS += -L$$PWD/$$ULTRALIGHT_PATH/lib/ -lUltralight -lUltralightCore -lAppCore -lWebCore
INCLUDEPATH += $$PWD/$$ULTRALIGHT_PATH/include
DEPENDPATH += $$PWD/$$ULTRALIGHT_PATH/include
DISTFILES += assets/ultralight.ico
RC_ICONS = assets/ultralight.ico
COPIES += ultralightBin ultralightRes
ultralightBin.files = $$files($$PWD/$$ULTRALIGHT_PATH/bin/*.dll)
debug: ultralightBin.path = $$OUT_PWD/debug
release: ultralightBin.path = $$OUT_PWD/release
ultralightRes.files = $$files($$PWD/$$ULTRALIGHT_PATH/bin/resources/*)
debug: ultralightRes.path = $$OUT_PWD/debug/assets/resources
release: ultralightRes.path = $$OUT_PWD/release/assets/resources