This repository has been archived by the owner on Sep 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Charm.pro
195 lines (177 loc) · 6.62 KB
/
Charm.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
!override_platform_check {
!android: error("Building Charm with QMake is not supported, and used only for Qt/Android experiments. For everything else, please use the CMake build system.")
}
QT += core gui xml sql network widgets qml quick
INCLUDEPATH += Core/
INCLUDEPATH += Charm/
TARGET = AndCharm
TEMPLATE = app
RESOURCES = Charm/CharmResources.qrc Charm/QtQuick/qml.qrc
DEFINES += 'CHARM_VERSION=\'\"0.1a\"\''
DEFINES += 'CHARM_IDLE_TIME=0'
DEFINES += QT_NO_DBUS QT_NO_PRINTER
SOURCES += $$files(Core/*.cpp)
SOURCES += \
Charm/ApplicationCore.cpp \
Charm/Data.cpp \
Charm/EventModelAdapter.cpp \
Charm/EventModelFilter.cpp \
Charm/GUIState.cpp \
Charm/ModelConnector.cpp \
Charm/TaskModelAdapter.cpp \
Charm/ViewFilter.cpp \
Charm/ViewHelpers.cpp \
Charm/WeeklySummary.cpp \
Charm/UndoCharmCommandWrapper.cpp \
Charm/Commands/CommandRelayCommand.cpp \
Charm/Commands/CommandModifyEvent.cpp \
Charm/Commands/CommandDeleteEvent.cpp \
Charm/Commands/CommandSetAllTasks.cpp \
Charm/Commands/CommandAddTask.cpp \
Charm/Commands/CommandModifyTask.cpp \
Charm/Commands/CommandDeleteTask.cpp \
Charm/Commands/CommandMakeEvent.cpp \
Charm/Commands/CommandExportToXml.cpp \
Charm/Commands/CommandImportFromXml.cpp \
Charm/Commands/CommandMakeAndActivateEvent.cpp \
Charm/HttpClient/HttpJob.cpp \
Charm/HttpClient/GetProjectCodesJob.cpp \
Charm/HttpClient/UploadTimesheetJob.cpp \
Charm/Idle/IdleDetector.cpp \
Charm/Reports/MonthlyTimesheetXmlWriter.cpp \
Charm/Reports/TimesheetInfo.cpp \
Charm/Reports/WeeklyTimesheetXmlWriter.cpp \
Charm/Widgets/ActivityReport.cpp \
Charm/Widgets/BillDialog.cpp \
Charm/Widgets/CharmPreferences.cpp \
Charm/Widgets/CharmWindow.cpp \
Charm/Widgets/CharmAboutDialog.cpp \
Charm/Widgets/ConfigurationDialog.cpp \
Charm/Widgets/HttpJobProgressDialog.cpp \
Charm/Widgets/DateEntrySyncer.cpp \
Charm/Widgets/EnterVacationDialog.cpp \
Charm/Widgets/EventEditor.cpp \
Charm/Widgets/EventEditorDelegate.cpp \
Charm/Widgets/EventView.cpp \
Charm/Widgets/ExpandStatesHelper.cpp \
Charm/Widgets/IdleCorrectionDialog.cpp \
Charm/Widgets/MessageBox.cpp \
Charm/Widgets/MonthlyTimesheet.cpp \
Charm/Widgets/MonthlyTimesheetConfigurationDialog.cpp \
Charm/Widgets/ReportConfigurationDialog.cpp \
Charm/Widgets/ReportPreviewWindow.cpp \
Charm/Widgets/SelectTaskDialog.cpp \
Charm/Widgets/TaskIdDialog.cpp \
Charm/Widgets/TaskEditor.cpp \
Charm/Widgets/TasksView.cpp \
Charm/Widgets/TasksViewDelegate.cpp \
Charm/Widgets/TimeTrackingView.cpp \
Charm/Widgets/TimeTrackingWindow.cpp \
Charm/Widgets/TimeTrackingTaskSelector.cpp \
Charm/Widgets/TrayIcon.cpp \
Charm/Widgets/Timesheet.cpp \
Charm/Widgets/WeeklyTimesheet.cpp \
SOURCES += \
Charm/Keychain/keychain.cpp \
Charm/Keychain/keychain_unsecure.cpp
SOURCES += Charm/QtQuick/Charm.cpp
HEADERS += $$files(Core/*.h)
HEADERS += \
Charm/MakeTemporarilyVisible.h \
Charm/EventModelAdapter.h \
Charm/EventModelFilter.h \
Charm/Idle/IdleDetector.h \
Charm/Uniquifier.h \
Charm/ViewModeInterface.h \
Charm/GUIState.h \
Charm/UndoCharmCommandWrapper.h \
Charm/ViewFilter.h \
Charm/Reports/MonthlyTimesheetXmlWriter.h \
Charm/Reports/TimesheetInfo.h \
Charm/Reports/WeeklyTimesheetXmlWriter.h \
Charm/Widgets/TasksViewDelegate.h \
Charm/Widgets/IdleCorrectionDialog.h \
Charm/Widgets/Timesheet.h \
Charm/Widgets/WeeklyTimesheet.h \
Charm/Widgets/CharmWindow.h \
Charm/Widgets/DateEntrySyncer.h \
Charm/Widgets/MonthlyTimesheetConfigurationDialog.h \
Charm/Widgets/TaskIdDialog.h \
Charm/Widgets/MessageBox.h \
Charm/Widgets/TaskEditor.h \
Charm/Widgets/ReportConfigurationDialog.h \
Charm/Widgets/TimeTrackingTaskSelector.h \
Charm/Widgets/EventEditor.h \
Charm/Widgets/TasksView.h \
Charm/Widgets/CharmPreferences.h \
Charm/Widgets/EnterVacationDialog.h \
Charm/Widgets/TimeTrackingWindow.h \
Charm/Widgets/TrayIcon.h \
Charm/Widgets/TimeTrackingView.h \
Charm/Widgets/ActivityReport.h \
Charm/Widgets/EventEditorDelegate.h \
Charm/Widgets/ExpandStatesHelper.h \
Charm/Widgets/SelectTaskDialog.h \
Charm/Widgets/MonthlyTimesheet.h \
Charm/Widgets/EventView.h \
Charm/Widgets/ConfigurationDialog.h \
Charm/Widgets/HttpJobProgressDialog.h \
Charm/Widgets/ReportPreviewWindow.h \
Charm/Widgets/BillDialog.h \
Charm/Widgets/CharmAboutDialog.h \
Charm/Commands/CommandImportFromXml.h \
Charm/Commands/CommandModifyTask.h \
Charm/Commands/CommandAddTask.h \
Charm/Commands/CommandExportToXml.h \
Charm/Commands/CommandDeleteTask.h \
Charm/Commands/CommandModifyEvent.h \
Charm/Commands/CommandMakeAndActivateEvent.h \
Charm/Commands/CommandSetAllTasks.h \
Charm/Commands/CommandRelayCommand.h \
Charm/Commands/CommandDeleteEvent.h \
Charm/Commands/CommandMakeEvent.h \
Charm/ViewHelpers.h \
Charm/ModelConnector.h \
Charm/WeeklySummary.h \
Charm/HttpClient/GetProjectCodesJob.h \
Charm/HttpClient/UploadTimesheetJob.h \
Charm/HttpClient/HttpJob.h \
Charm/ApplicationCore.h \
Charm/Keychain/keychain.h \
Charm/Keychain/keychain_p.h \
Charm/TaskModelAdapter.h \
Charm/Data.h \
FORMS += $$files(Charm/Widgets/*.ui)
CONFIG += mobility
MOBILITY =
# Disable some of the noise for now.
*-g++*|*-clang*|*-llvm* {
QMAKE_CXXFLAGS += -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function
}
# CMake works with include files named "filename.moc" while qmake expects
# "moc_filename.cpp". Since qmake does not provide any way to change that
# to the requirement we just hack around.
#new_moc.output = ${QMAKE_FILE_BASE}.moc
#new_moc.commands = moc -i -nw ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT}
#new_moc.depend_command = $$QMAKE_CXX -E -M ${QMAKE_FILE_NAME} | sed "s/^.*: //"
#new_moc.input = HEADERS
#QMAKE_EXTRA_COMPILERS += new_moc
MOC_HEADERS = $$HEADERS
#MOC_HEADERS -= $$files(Charm/keychain_p.h)
for(hdr, MOC_HEADERS) {
fdir=$$dirname(hdr)
base=$$basename(hdr)
fname=$$section(base, ".", 0, 0)
in=$${LITERAL_HASH}include <moc_$${fname}.cpp>
out=$${OUT_PWD}/$${fname}.moc
exists( $${fdir}/$${fname}.cpp ) {
system(echo \"$$in\" > \"$$out\")
}
}
# Create that CharmCMake.h file that is auto-created by cmake and included
# everywhere. Here we could also hard-code defines or whatever that file
# includes when cmake creates it.
system('echo "" > "$${OUT_PWD}/CharmCMake.h"')
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
OTHER_FILES += \
android/AndroidManifest.xml