2013-09-26 22:52:41 +00:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2011-06-20T22:05:30
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2018-05-28 22:35:48 +00:00
|
|
|
lessThan(QT_MAJOR_VERSION,5) {
|
|
|
|
error("Sorry, need Qt 5 to build SleepyHead");
|
2013-09-26 22:52:41 +00:00
|
|
|
}
|
|
|
|
|
2018-06-08 03:06:24 +00:00
|
|
|
QT += core gui network xml printsupport serialport widgets help
|
|
|
|
|
2018-06-07 21:53:09 +00:00
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
2014-06-02 17:55:59 +00:00
|
|
|
#SleepyHead requires OpenGL 2.0 support to run smoothly
|
|
|
|
#On platforms where it's not available, it can still be built to work
|
2015-07-30 22:36:52 +00:00
|
|
|
#provided the BrokenGL DEFINES flag is passed to qmake (eg, qmake [specs] /path/to/SleepyHeadQT.pro DEFINES+=BrokenGL)
|
2014-08-25 03:02:16 +00:00
|
|
|
contains(DEFINES, BrokenGL) {
|
2014-05-16 14:08:16 +00:00
|
|
|
message("Building with QWidget gGraphView")
|
2014-08-25 03:02:16 +00:00
|
|
|
DEFINES += BROKEN_OPENGL_BUILD
|
2016-01-05 06:06:32 +00:00
|
|
|
} else:contains(DEFINES, NoGL) {
|
|
|
|
message("Building with QWidget gGraphView (No GL at all)")
|
|
|
|
DEFINES += BROKEN_OPENGL_BUILD
|
|
|
|
DEFINES += NO_OPENGL_BUILD
|
2014-05-16 14:08:16 +00:00
|
|
|
} else {
|
|
|
|
message("Building with QGLWidget gGraphView")
|
|
|
|
}
|
2014-10-02 10:02:33 +00:00
|
|
|
QT += opengl
|
2014-05-16 14:08:16 +00:00
|
|
|
|
2018-04-22 12:06:48 +00:00
|
|
|
#ResMed summary data design is SHIT... SleepyHead *MUST* follow ResMed's idiocy.
|
2014-07-21 16:14:07 +00:00
|
|
|
DEFINES += LOCK_RESMED_SESSIONS
|
|
|
|
|
2018-05-05 09:21:57 +00:00
|
|
|
CONFIG += c++11
|
2014-04-24 09:44:15 +00:00
|
|
|
CONFIG += rtti
|
|
|
|
|
2013-09-26 22:52:41 +00:00
|
|
|
#static {
|
|
|
|
# CONFIG += static
|
|
|
|
# QTPLUGIN += qsvg qgif qpng
|
|
|
|
|
|
|
|
# DEFINES += STATIC // Equivalent to "#define STATIC" in source code
|
|
|
|
# message("Static build.")
|
|
|
|
#}
|
|
|
|
|
|
|
|
TARGET = SleepyHead
|
2016-01-05 06:06:32 +00:00
|
|
|
unix:!macx:!haiku {
|
2013-09-26 22:52:41 +00:00
|
|
|
TARGET.path=/usr/bin
|
|
|
|
}
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
2013-10-18 04:56:44 +00:00
|
|
|
|
2018-06-07 05:01:50 +00:00
|
|
|
gitinfotarget.target = git_info.h
|
|
|
|
gitinfotarget.depends = FORCE
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
system("$$_PRO_FILE_PWD_/update_gitinfo.bat");
|
2018-06-07 21:53:09 +00:00
|
|
|
gitinfotarget.commands = "$$_PRO_FILE_PWD_/update_gitinfo.bat"
|
2013-10-18 05:09:52 +00:00
|
|
|
} else {
|
2018-06-07 05:42:24 +00:00
|
|
|
system("/bin/bash $$_PRO_FILE_PWD_/update_gitinfo.sh");
|
|
|
|
gitinfotarget.commands = "/bin/bash $$_PRO_FILE_PWD_/update_gitinfo.sh"
|
2013-10-18 04:56:44 +00:00
|
|
|
}
|
|
|
|
|
2018-06-07 05:01:50 +00:00
|
|
|
PRE_TARGETDEPS += git_info.h
|
|
|
|
QMAKE_EXTRA_TARGETS += gitinfotarget
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-05-04 18:02:41 +00:00
|
|
|
#Comment out for official builds
|
2016-03-03 13:26:08 +00:00
|
|
|
DEFINES += BETA_BUILD
|
2013-09-26 22:52:41 +00:00
|
|
|
|
|
|
|
|
2018-06-06 16:03:51 +00:00
|
|
|
system(qcollectiongenerator help/help.qhcp -o help/help.qhc)
|
|
|
|
|
2016-01-05 06:06:32 +00:00
|
|
|
unix:!macx:!haiku {
|
2016-04-26 06:11:39 +00:00
|
|
|
LIBS += -lX11 -lz -lGLU
|
2013-10-10 02:22:58 +00:00
|
|
|
DEFINES += _TTY_POSIX_
|
|
|
|
}
|
2013-09-26 22:52:41 +00:00
|
|
|
|
|
|
|
macx {
|
2018-04-07 19:20:04 +00:00
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
2014-05-06 17:39:05 +00:00
|
|
|
|
2013-10-09 15:42:46 +00:00
|
|
|
LIBS += -lz
|
2013-10-11 11:41:49 +00:00
|
|
|
ICON = icons/iconfile.icns
|
2013-09-26 22:52:41 +00:00
|
|
|
}
|
|
|
|
|
2016-01-05 06:06:32 +00:00
|
|
|
haiku {
|
2016-04-26 06:11:39 +00:00
|
|
|
LIBS += -lz -lGLU
|
2016-01-05 06:06:32 +00:00
|
|
|
DEFINES += _TTY_POSIX_
|
|
|
|
}
|
|
|
|
|
2013-09-26 22:52:41 +00:00
|
|
|
win32 {
|
2014-05-09 07:05:54 +00:00
|
|
|
DEFINES += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
|
|
|
|
RC_FILE += win_icon.rc
|
|
|
|
LIBS += -lsetupapi
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD
|
|
|
|
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/../src/qtbase/src/3rdparty/zlib
|
|
|
|
|
|
|
|
if (*-msvc*):!equals(TEMPLATE_PREFIX, "vc") {
|
|
|
|
LIBS += -ladvapi32
|
2018-06-07 00:09:06 +00:00
|
|
|
DEFINES += "BUILD_WITH_MSVC=1"
|
2014-05-09 07:05:54 +00:00
|
|
|
} else {
|
|
|
|
# MingW needs this
|
|
|
|
LIBS += -lz
|
|
|
|
}
|
2014-07-09 03:49:20 +00:00
|
|
|
}
|
|
|
|
|
2018-06-07 21:53:09 +00:00
|
|
|
macx {
|
|
|
|
TransFiles.files = $$files(../Translations/*.qm)
|
|
|
|
TransFiles.path = Contents/Resources/Translations
|
|
|
|
HelpFiles.files = $$files(help/*.qch)
|
|
|
|
HelpFiles.files += $$files(help/help.qhc)
|
|
|
|
HelpFiles.path = Contents/Resources/Help
|
|
|
|
QMAKE_BUNDLE_DATA += TransFiles
|
|
|
|
QMAKE_BUNDLE_DATA += HelpFiles
|
|
|
|
message("Setting up Translations & Help Transfers")
|
|
|
|
} else {
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
DDIR = $$OUT_PWD/debug/Translations
|
|
|
|
HELPDIR = $$OUT_PWD/debug/Help
|
|
|
|
}
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DDIR = $$OUT_PWD/release/Translations
|
|
|
|
HELPDIR = $$OUT_PWD/release/Help
|
|
|
|
}
|
|
|
|
TRANS_FILES += $$PWD/../Translations/*.qm
|
|
|
|
HELP_FILES += $$PWD/help/*.qch
|
|
|
|
HELP_FILES += $$PWD/help/help.qhc
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
TRANS_FILES_WIN = $${TRANS_FILES}
|
|
|
|
HELP_FILES_WIN = $${HELP_FILES}
|
|
|
|
TRANS_FILES_WIN ~= s,/,\\,g
|
|
|
|
HELP_FILES_WIN ~= s,/,\\,g
|
|
|
|
DDIR ~= s,/,\\,g
|
|
|
|
HELPDIR ~= s,/,\\,g
|
|
|
|
|
|
|
|
system(mkdir $$quote($$HELPDIR))
|
|
|
|
system(mkdir $$quote($$DDIR))
|
|
|
|
|
|
|
|
for(FILE,TRANS_FILES_WIN) {
|
|
|
|
system(xcopy /y $$quote($$FILE) $$quote($$DDIR))
|
|
|
|
}
|
|
|
|
for(FILE,HELP_FILES_WIN) {
|
|
|
|
system(xcopy /y $$quote($$FILE) $$quote($$HELPDIR))
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
system(md $$quote($$HELPDIR))
|
|
|
|
system(md $$quote($$DDIR))
|
|
|
|
|
|
|
|
for(FILE,TRANS_FILES_WIN) {
|
|
|
|
system(copy $$quote($$FILE) $$quote($$DDIR))
|
|
|
|
}
|
|
|
|
for(FILE,HELP_FILES_WIN) {
|
|
|
|
system(copy $$quote($$FILE) $$quote($$HELPDIR))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-23 17:20:38 +00:00
|
|
|
SOURCES += \
|
|
|
|
common_gui.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
daily.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
exportcsv.cpp \
|
|
|
|
main.cpp \
|
|
|
|
mainwindow.cpp \
|
|
|
|
newprofile.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
overview.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
preferencesdialog.cpp \
|
|
|
|
profileselect.cpp \
|
|
|
|
reports.cpp \
|
|
|
|
sessionbar.cpp \
|
|
|
|
updateparser.cpp \
|
|
|
|
UpdaterWindow.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/gFlagsLine.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gFooBar.cpp \
|
|
|
|
Graphs/gGraph.cpp \
|
|
|
|
Graphs/gGraphView.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/glcommon.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gLineChart.cpp \
|
|
|
|
Graphs/gLineOverlay.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/gSegmentChart.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gspacer.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/gStatsLine.cpp \
|
|
|
|
Graphs/gSummaryChart.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gXAxis.cpp \
|
|
|
|
Graphs/gYAxis.cpp \
|
|
|
|
Graphs/layer.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
SleepLib/calcs.cpp \
|
|
|
|
SleepLib/common.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
SleepLib/day.cpp \
|
|
|
|
SleepLib/event.cpp \
|
|
|
|
SleepLib/machine.cpp \
|
|
|
|
SleepLib/machine_loader.cpp \
|
|
|
|
SleepLib/preferences.cpp \
|
|
|
|
SleepLib/profiles.cpp \
|
|
|
|
SleepLib/schema.cpp \
|
|
|
|
SleepLib/session.cpp \
|
|
|
|
SleepLib/loader_plugins/cms50_loader.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
SleepLib/loader_plugins/icon_loader.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
SleepLib/loader_plugins/intellipap_loader.cpp \
|
2013-09-26 22:52:41 +00:00
|
|
|
SleepLib/loader_plugins/mseries_loader.cpp \
|
2014-04-23 17:20:38 +00:00
|
|
|
SleepLib/loader_plugins/prs1_loader.cpp \
|
|
|
|
SleepLib/loader_plugins/resmed_loader.cpp \
|
|
|
|
SleepLib/loader_plugins/somnopose_loader.cpp \
|
2014-04-24 09:44:15 +00:00
|
|
|
SleepLib/loader_plugins/zeo_loader.cpp \
|
2014-04-25 05:28:10 +00:00
|
|
|
translation.cpp \
|
2014-05-25 07:07:08 +00:00
|
|
|
statistics.cpp \
|
2014-05-25 16:20:33 +00:00
|
|
|
oximeterimport.cpp \
|
2014-05-28 09:35:21 +00:00
|
|
|
SleepLib/serialoximeter.cpp \
|
2014-05-31 21:25:07 +00:00
|
|
|
SleepLib/loader_plugins/md300w1_loader.cpp \
|
2014-06-20 07:05:40 +00:00
|
|
|
Graphs/gSessionTimesChart.cpp \
|
2014-07-25 07:53:48 +00:00
|
|
|
logger.cpp \
|
2014-08-03 13:00:13 +00:00
|
|
|
SleepLib/machine_common.cpp \
|
2014-08-09 17:12:37 +00:00
|
|
|
SleepLib/loader_plugins/weinmann_loader.cpp \
|
2014-08-11 18:29:44 +00:00
|
|
|
Graphs/gdailysummary.cpp \
|
2014-08-17 12:56:05 +00:00
|
|
|
Graphs/MinutesAtPressure.cpp \
|
2014-08-17 15:55:40 +00:00
|
|
|
SleepLib/journal.cpp \
|
2014-08-17 23:29:30 +00:00
|
|
|
SleepLib/progressdialog.cpp \
|
2018-04-22 12:06:48 +00:00
|
|
|
SleepLib/loader_plugins/cms50f37_loader.cpp \
|
2018-04-25 15:22:29 +00:00
|
|
|
profileselector.cpp \
|
2018-05-07 12:13:07 +00:00
|
|
|
SleepLib/loader_plugins/edfparser.cpp \
|
2018-05-07 15:11:02 +00:00
|
|
|
aboutdialog.cpp \
|
2018-06-06 16:03:51 +00:00
|
|
|
welcome.cpp \
|
|
|
|
help.cpp
|
2013-09-26 22:52:41 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
2014-04-23 17:20:38 +00:00
|
|
|
common_gui.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
daily.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
exportcsv.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
mainwindow.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
newprofile.h \
|
|
|
|
overview.h \
|
|
|
|
preferencesdialog.h \
|
|
|
|
profileselect.h \
|
|
|
|
reports.h \
|
|
|
|
sessionbar.h \
|
|
|
|
updateparser.h \
|
|
|
|
UpdaterWindow.h \
|
|
|
|
version.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/gFlagsLine.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gFooBar.h \
|
|
|
|
Graphs/gGraph.h \
|
|
|
|
Graphs/gGraphView.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/glcommon.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gLineChart.h \
|
|
|
|
Graphs/gLineOverlay.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/gSegmentChart.h\
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gspacer.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
Graphs/gStatsLine.h \
|
|
|
|
Graphs/gSummaryChart.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
Graphs/gXAxis.h \
|
|
|
|
Graphs/gYAxis.h \
|
|
|
|
Graphs/layer.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
SleepLib/calcs.h \
|
|
|
|
SleepLib/common.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
SleepLib/day.h \
|
|
|
|
SleepLib/event.h \
|
|
|
|
SleepLib/machine.h \
|
|
|
|
SleepLib/machine_common.h \
|
|
|
|
SleepLib/machine_loader.h \
|
|
|
|
SleepLib/preferences.h \
|
|
|
|
SleepLib/profiles.h \
|
|
|
|
SleepLib/schema.h \
|
|
|
|
SleepLib/session.h \
|
|
|
|
SleepLib/loader_plugins/cms50_loader.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
SleepLib/loader_plugins/icon_loader.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
SleepLib/loader_plugins/intellipap_loader.h \
|
2013-09-26 22:52:41 +00:00
|
|
|
SleepLib/loader_plugins/mseries_loader.h \
|
2014-04-23 17:20:38 +00:00
|
|
|
SleepLib/loader_plugins/prs1_loader.h \
|
|
|
|
SleepLib/loader_plugins/resmed_loader.h \
|
|
|
|
SleepLib/loader_plugins/somnopose_loader.h \
|
2014-04-24 09:44:15 +00:00
|
|
|
SleepLib/loader_plugins/zeo_loader.h \
|
2014-04-25 05:28:10 +00:00
|
|
|
translation.h \
|
2014-05-25 07:07:08 +00:00
|
|
|
statistics.h \
|
2014-05-25 16:20:33 +00:00
|
|
|
oximeterimport.h \
|
2014-05-28 09:35:21 +00:00
|
|
|
SleepLib/serialoximeter.h \
|
2014-05-31 21:25:07 +00:00
|
|
|
SleepLib/loader_plugins/md300w1_loader.h \
|
2014-06-20 07:05:40 +00:00
|
|
|
Graphs/gSessionTimesChart.h \
|
2014-08-03 13:00:13 +00:00
|
|
|
logger.h \
|
2014-08-09 17:12:37 +00:00
|
|
|
SleepLib/loader_plugins/weinmann_loader.h \
|
2014-08-11 18:29:44 +00:00
|
|
|
Graphs/gdailysummary.h \
|
2014-08-17 12:56:05 +00:00
|
|
|
Graphs/MinutesAtPressure.h \
|
2014-08-17 15:55:40 +00:00
|
|
|
SleepLib/journal.h \
|
2014-08-17 23:29:30 +00:00
|
|
|
SleepLib/progressdialog.h \
|
2014-08-23 06:21:50 +00:00
|
|
|
SleepLib/loader_plugins/cms50f37_loader.h \
|
2018-04-22 12:06:48 +00:00
|
|
|
build_number.h \
|
|
|
|
profileselector.h \
|
2018-04-25 15:22:29 +00:00
|
|
|
SleepLib/appsettings.h \
|
2018-05-07 12:13:07 +00:00
|
|
|
SleepLib/loader_plugins/edfparser.h \
|
2018-05-07 15:11:02 +00:00
|
|
|
aboutdialog.h \
|
2018-05-29 03:48:59 +00:00
|
|
|
welcome.h \
|
2018-06-06 16:03:51 +00:00
|
|
|
mytextbrowser.h \
|
2018-06-07 05:02:58 +00:00
|
|
|
help.h \
|
|
|
|
git_info.h
|
2014-08-23 06:21:50 +00:00
|
|
|
|
2014-04-23 17:20:38 +00:00
|
|
|
FORMS += \
|
2013-09-26 22:52:41 +00:00
|
|
|
daily.ui \
|
|
|
|
overview.ui \
|
|
|
|
mainwindow.ui \
|
|
|
|
oximetry.ui \
|
|
|
|
preferencesdialog.ui \
|
|
|
|
report.ui \
|
|
|
|
profileselect.ui \
|
|
|
|
newprofile.ui \
|
|
|
|
exportcsv.ui \
|
2014-05-25 07:07:08 +00:00
|
|
|
UpdaterWindow.ui \
|
2018-04-22 12:06:48 +00:00
|
|
|
oximeterimport.ui \
|
2018-05-07 12:13:07 +00:00
|
|
|
profileselector.ui \
|
2018-05-07 15:11:02 +00:00
|
|
|
aboutdialog.ui \
|
2018-06-06 16:03:51 +00:00
|
|
|
welcome.ui \
|
|
|
|
help.ui
|
2013-09-26 22:52:41 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
2014-06-15 23:56:06 +00:00
|
|
|
Resources.qrc
|
2013-09-26 22:52:41 +00:00
|
|
|
|
|
|
|
OTHER_FILES += \
|
|
|
|
docs/index.html \
|
|
|
|
docs/usage.html \
|
|
|
|
docs/schema.xml \
|
|
|
|
docs/graphs.xml \
|
|
|
|
docs/channels.xml \
|
|
|
|
docs/release_notes.html \
|
|
|
|
docs/startup_tips.txt \
|
|
|
|
docs/countries.txt \
|
|
|
|
docs/tz.txt \
|
2013-10-10 17:36:53 +00:00
|
|
|
../LICENSE.txt \
|
2013-09-26 22:52:41 +00:00
|
|
|
docs/tooltips.css \
|
|
|
|
docs/script.js \
|
2013-10-10 17:36:53 +00:00
|
|
|
../update.xml \
|
2013-09-26 22:52:41 +00:00
|
|
|
docs/changelog.txt \
|
2014-05-06 09:11:31 +00:00
|
|
|
docs/intro.html \
|
2018-06-07 21:53:09 +00:00
|
|
|
docs/statistics.xml \
|
|
|
|
update_gitinfo.bat \
|
|
|
|
update_gitinfo.sh
|
2014-08-25 02:55:01 +00:00
|
|
|
|
2016-04-15 01:15:07 +00:00
|
|
|
DISTFILES += \
|
2018-06-06 16:03:51 +00:00
|
|
|
../README \
|
|
|
|
help/compile.sh \
|
|
|
|
help/default.css \
|
|
|
|
help/help_en.qhp \
|
|
|
|
help/help_en/daily.html \
|
|
|
|
help/help_en/glossary.html \
|
|
|
|
help/help_en/import.html \
|
|
|
|
help/help_en/index.html \
|
|
|
|
help/help_en/overview.html \
|
|
|
|
help/help_en/oximetry.html \
|
|
|
|
help/help_en/statistics.html \
|
|
|
|
help/help_en/supported.html \
|
|
|
|
help/help_en/gettingstarted.html \
|
|
|
|
help/help_en/tipsntricks.html \
|
|
|
|
help/help_en/faq.html \
|
|
|
|
help/help.qhcp
|