More build fixes

This commit is contained in:
Mark Watkins 2013-10-10 03:54:06 +10:00
parent 758ebe8024
commit b34600c8e2
5 changed files with 18 additions and 6 deletions

View File

@ -1,9 +1,9 @@
TEMPLATE = subdirs
CONFIG -= use_bundled_libs
# Need them for windows..
win32:CONFIG += use_bundled_libs
else:CONFIG -= use_bundled_libs
use_bundled_libs {
SUBDIRS = 3rdparty

View File

@ -13,8 +13,8 @@
#include <QDesktopWidget>
#include "SleepLib/profiles.h"
#include "quazip/quazip.h"
#include "quazip/quazipfile.h"
#include <quazip/quazip.h>
#include <quazip/quazipfile.h>
#include "UpdaterWindow.h"
#include "ui_UpdaterWindow.h"
#include "version.h"

View File

@ -9,7 +9,12 @@
#include <QCalendarWidget>
#include <QTextCharFormat>
#ifdef USE_BUNDLED_LIBS
#include "src/qextserialenumerator.h"
#else
#include <qextserialport/qextserialenumerator.h>
#endif
#include "oximetry.h"
#include "ui_oximetry.h"

View File

@ -14,7 +14,11 @@
#include <QMessageBox>
#include <QMutex>
#ifdef USE_BUNDLED_LIBS
#include "src/qextserialport.h"
#else
#include <qextserialport/qextserialport.h>
#endif
#include "SleepLib/profiles.h"
#include "SleepLib/day.h"

View File

@ -40,7 +40,6 @@ else:DEFINES += GIT_REVISION=\\\"UNKNOWN\\\"
unix:!macx:LIBS += -lX11 -lz -lGLU
macx {
SOURCES +=
LIBS += -lz
ICON = ../icons/iconfile.icns
}
@ -55,6 +54,10 @@ if (win32-msvc2008|win32-msvc2010|win32-msvc2012):!equals(TEMPLATE_PREFIX, "vc")
}
win32:CONFIG += use_bundled_libs
use_bundled_libs:DEFINES += USE_BUNDLED_LIBS
#include(..3rdparty/qextserialport/src/qextserialport.pri)
#include(3rdparty/quazip-0.5.1/quazip/quazip.pri)
@ -243,6 +246,6 @@ greaterThan(QT_MAJOR_VERSION,4) {
}
use_bundled_libs {
INCLUDEPATH += $$PWD/../3rdparty/qextserialport/src
DEPENDPATH += $$PWD/../3rdparty/qextserialport/src
INCLUDEPATH += $$PWD/../3rdparty/qextserialport
DEPENDPATH += $$PWD/../3rdparty/qextserialport
}