-
Notifications
You must be signed in to change notification settings - Fork 4
/
nobleNote.pro
116 lines (104 loc) · 3.23 KB
/
nobleNote.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
TEMPLATE = app
TARGET = bin/noblenote
DEPENDPATH = . src
INCLUDEPATH = . src
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
RCC_DIR = build
QT += gui widgets concurrent
win32 {
#QMAKE_LFLAGS += -static-libgcc
# use these for windows builds release builds only because debugging
#symbols wont be linked if only release is specified
#CONFIG -= debug_and_release
#CONFIG += release
RC_FILE += icon.rc
}
system(lrelease nobleNote.pro)
# BUILDTIME and BUILDDATE will be shown in the About dialog
win32 {
DEFINES += BUILDTIME=\\\"$$system('echo %time%')\\\"
DEFINES += BUILDDATE=\\\"$$system('echo %date%')\\\"
} else {
DEFINES += BUILDTIME=\\\"$$system(date '+%H:%M.%s')\\\"
DEFINES += BUILDDATE=\\\"$$system(date '+%d/%m/%y')\\\"
}
QMAKE_DISTCLEAN = src/translations/*.qm
# Input
HEADERS = src/mainwindow.h src/note.h \
src/systemtraycreator.h \
src/welcome.h \
src/filesystemmodel.h \
src/preferences.h \
src/findfilesystemmodel.h \
src/findfilemodel.h \
src/lineedit.h \
src/textbrowser.h \
src/xorcipher.h \
src/textformattingtoolbar.h \
src/highlighter.h src/textsearchtoolbar.h \
src/xmlnotewriter.h \
src/xmlnotereader.h \
src/datetime.h \
src/textdocument.h \
src/notedescriptor.h \
src/abstractnotereader.h \
src/htmlnotereader.h \
src/htmlnotewriter.h \
src/fileiconprovider.h \
src/backup.h \
src/trash.h \
src/progressreceiver.h \
src/noteimporter.h
FORMS = src/ui/mainwindow.ui src/ui/welcome.ui src/ui/note.ui \
src/ui/preferences.ui src/ui/trash.ui
SOURCES = src/main.cpp src/mainwindow.cpp src/note.cpp \
src/systemtraycreator.cpp \
src/welcome.cpp\
src/preferences.cpp \
src/findfilemodel.cpp \
src/findfilesystemmodel.cpp src/lineedit.cpp src/textbrowser.cpp \
src/xorcipher.cpp \
src/textformattingtoolbar.cpp \
src/highlighter.cpp src/textsearchtoolbar.cpp \
src/xmlnotewriter.cpp \
src/xmlnotereader.cpp \
src/textdocument.cpp \
src/notedescriptor.cpp \
src/htmlnotereader.cpp \
src/htmlnotewriter.cpp \
src/datetime.cpp \
src/fileiconprovider.cpp \
src/backup.cpp \
src/trash.cpp \
src/progressreceiver.cpp \
src/noteimporter.cpp
RESOURCES += nobleNote.qrc
TRANSLATIONS = src/translations/noblenote_ast.ts\
src/translations/noblenote_cs.ts\
src/translations/noblenote_de.ts\
src/translations/noblenote_de_DE.ts\
src/translations/noblenote_es.ts\
src/translations/noblenote_gl.ts\
src/translations/noblenote_ms.ts\
src/translations/noblenote_pl.ts\
src/translations/noblenote_ru.ts\
src/translations/noblenote_uk.ts
!win32{
# install
target.path = /usr/bin
icons.files = src/noblenote-icons/*
icons.path = /usr/share/pixmaps/noblenote-icons
translation.files = src/translations/*.qm
translation.path = /usr/share/noblenote/translations
autostart.files = autostart/noblenote.desktop
autostart.path = /usr/share/applications
INSTALLS = target icons translation autostart
deinstall.depends = uninstall FORCE
deinstall.commands = rm -R /usr/share/noblenote
QMAKE_EXTRA_TARGETS = deinstall
}
OTHER_FILES += \
icon.rc \
src/noblenote-icons/noblenote.ico