Commit 1b891500 authored by Bruno Colombet's avatar Bruno Colombet

Update .pro/.pri files to build on Mac using qmake

parent 6ae268df
......@@ -203,6 +203,7 @@ SOURCES += ./AnyWave.cpp \
./MATPy/GetFileInfo.cpp \
./MATPy/GetICAPanelCapture.cpp \
./MATPy/GetMarkers.cpp \
./MATPy/AwGetMarkersEx.cpp \
./MATPy/GetPluginInfo.cpp \
./MATPy/GetPluginIO.cpp \
./MATPy/GetScreenCapture.cpp \
......
......@@ -7,7 +7,7 @@
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += common getdata getdataex getmarkers getfileinfo getpluginio getplugininfo addmarkers sendcommand setbf getcapture captureicapanel gettriggers \
SUBDIRS += common getdata getdataex getmarkers getmarkers_ex getfileinfo getpluginio getplugininfo addmarkers sendcommand setbf getcapture captureicapanel gettriggers \
sendmessage isprocessterminated
getdataex.file = ./getdataex.pro
......@@ -15,6 +15,7 @@ getpluginio.file =./getpluginio.pro
common.file = ./common.pro
getdata.file = ./getdata.pro
getmarkers.file = ./getmarkers.pro
getmarkers_ex.file = ./getmarkers_ex.pro
getfileinfo.file = ./getfileinfo.pro
getplugininfo.file = ./getplugininfo.pro
addmarkers.file = ./addmarkers.pro
......
#include "CompumedicsPF.h"
#include <QDir>
#include <QDomDocument>
#include <qdatastream.h>
#include <QDataStream>
#include <QTextStream>
#ifdef Q_OS_WIN
#include <QSqlDatabase>
#include <QSqlQuery>
#ifdef _DEBUG
#include <QDebug>
#include <QSqlError>
#endif
#endif
#include <AwCore.h>
#include <math.h>
CompumedicsReaderPlugin::CompumedicsReaderPlugin() : AwFileIOPlugin()
{
......@@ -181,6 +184,7 @@ AwFileIO::FileStatus CompumedicsReader::openFile(const QString &path)
auto block = infos.newBlock();
block->setDuration(m_numSamples / m_samplingRate);
block->setSamples(m_numSamples);
#ifdef Q_OS_WIN
// READING EVENTS involves Microsoft Access Database connection using QSqlDatabase..
// TO DO LATER
QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
......@@ -215,7 +219,7 @@ AwFileIO::FileStatus CompumedicsReader::openFile(const QString &path)
qDebug() << db.lastError().text() << endl;
#endif
}
#endif
return AwFileIO::openFile(path);
}
......
......@@ -8,5 +8,5 @@ TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += 4DNI_Reader ANT_Reader AppendFiles AutoMarking BrainVisionIO Correlation \
CTF_Reader FIFF_Reader FileConverter ICA MergeFiles Micromed_Reader EDFIO EGIReader SPMReader \
EEGLABReader
EEGLABReader DeltamedBinTxtReader CompumedicsPF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment