-
Notifications
You must be signed in to change notification settings - Fork 0
/
EasyNotepad.pro
109 lines (92 loc) · 2.81 KB
/
EasyNotepad.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
#-------------------------------------------------
#
# Project created by QtCreator 2014-12-20T09:10:01
#
#-------------------------------------------------
QT += core gui multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat
greaterThan(QT_MAJOR_VERSION, 6): QT += multimedia
TARGET = EasyNotepad
TEMPLATE = app
# Start Common Versioning Includes
unix:BUILDDATE = $$system(date +\"%Y-%d-%m %H:%M:%S\")
win32:BUILDDATE = $$system(echo "%date:~6,4%-%date:~3,2%-%date:~0,2% %time:~0,8%")
GITHASH = $$system(git --git-dir=\"$$PWD/.git\" describe --always --tags)
GITHASH = $$replace(GITHASH,"v","")
GITHASH = $$replace(GITHASH,"-",".")
LIBHASH = $$system(git --git-dir=\"$$PWD/../Lib/.git\" describe --always --tags)
LIBHASH = $$replace(LIBHASH,"v","")
LIBHASH = $$replace(LIBHASH,"-",".")
GITHASHPARTS = $$split(GITHASH, .)
V1 = $$member(GITHASHPARTS,0)
V2 = $$member(GITHASHPARTS,1)
V3 = $$member(GITHASHPARTS,2)
VERSION = "$${V1}.$${V2}.$${V3}"
system("echo VERSION=\"$$VERSION\" > $$OUT_PWD/version.txt")
system("echo GITHASH=\"$$GITHASH\" >> $$OUT_PWD/version.txt")
system("echo LIBHASH=\"$$LIBHASH\" >> $$OUT_PWD/version.txt")
system("echo BUILDDATE=\"$$BUILDDATE\" >> $$OUT_PWD/version.txt")
DEFINES += GITHASH='"\\\"$$GITHASH\\\""'
DEFINES += LIBHASH='"\\\"$$LIBHASH\\\""'
DEFINES += BUILDDATE='"\\\"$$BUILDDATE\\\""'
DEFINES += PWD='"\\\"$$PWD\\\""'
# End Common Versioning Includes
win32:RC_FILE=icon.rc
win32:LIBS += -lUser32
SOURCES += main.cpp\
mainwindow.cpp \
filenavigator.cpp \
fileselect.cpp \
listviewstrings.cpp \
../Lib/warningform.cpp \
../Lib/warningok.cpp \
../Lib/warningyesno.cpp \
../Lib/supportfunctions.cpp \
globalsearch.cpp \
../Lib/itemselect.cpp \
../Lib/safetextedit.cpp \
../Lib/lineeditnavigator.cpp \
help.cpp \
importfilter.cpp \
../Lib/alertsound.cpp \
../Lib/iniconfig.cpp \
formatselect.cpp \
../Lib/aes.cpp \
../Lib/encryption.cpp \
../Lib/safelineedit.cpp
HEADERS += mainwindow.h \
filenavigator.h \
fileselect.h \
listviewstrings.h \
../Lib/warningform.h \
../Lib/warningok.h \
../Lib/warningyesno.h \
../Lib/supportfunctions.h \
globalsearch.h \
filetypes.h \
../Lib/itemselect.h \
../Lib/safetextedit.h \
../Lib/lineeditnavigator.h \
help.h \
importfilter.h \
../Lib/alertsound.h \
../Lib/iniconfig.h \
formatselect.h \
../Lib/aes.h \
../Lib/encryption.h \
../Lib/safelineedit.h
FORMS += mainwindow.ui \
fileselect.ui \
../Lib/warningform.ui \
../Lib/warningok.ui \
../Lib/warningyesno.ui \
globalsearch.ui \
../Lib/itemselect.ui \
help.ui \
formatselect.ui \
../Lib/encryption.ui
RESOURCES += \
../Lib/sounds.qrc \
Icon.qrc
OTHER_FILES +=