-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleNote.pro
More file actions
73 lines (59 loc) · 1.69 KB
/
SimpleNote.pro
File metadata and controls
73 lines (59 loc) · 1.69 KB
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
QT += core gui sql network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
CONFIG += utf8_source
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
# 应用程序图标和版本信息
QMAKE_TARGET_COMPANY = Biubush
QMAKE_TARGET_PRODUCT = SimpleNote
QMAKE_TARGET_DESCRIPTION = "简单便签"
QMAKE_TARGET_COPYRIGHT = "版权所有 (C) 2025 Biubush"
# 确保中文编码正确
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
# Windows资源文件
win32:RC_FILE = SimpleNote.rc
win32:RC_CODEPAGE = 65001
# 包含QtWebDAV库
include(QtWebDAV/QtWebDAV.pri)
SOURCES += \
main.cpp \
mainwindow.cpp \
note.cpp \
noteeditwidget.cpp \
notedatabase.cpp \
notelistwidget.cpp \
webdavconfigdialog.cpp \
webdavsyncmanager.cpp
HEADERS += \
mainwindow.h \
note.h \
noteeditwidget.h \
notedatabase.h \
notelistwidget.h \
webdavconfigdialog.h \
webdavsyncmanager.h
FORMS += \
mainwindow.ui \
noteeditwidget.ui \
notelistwidget.ui \
webdavconfigdialog.ui
RESOURCES += \
resources.qrc
# 添加打包脚本
win32 {
# 创建打包脚本
deploy_script.input = $$PWD/deploy.bat.in
deploy_script.output = $$PWD/deploy.bat
QMAKE_SUBSTITUTES += deploy_script
# 自定义打包命令
deploy.commands = $$PWD/deploy.bat
deploy.depends = $$TARGET
QMAKE_EXTRA_TARGETS += deploy
}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target