1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Revert "Revert change for opmaplib, causes linking problems on Windows."

This reverts commit 822017953e35fd4af656fd8f3ce8bff92c309dad
and fixes it to work on Windows too.
This commit is contained in:
Oleg Semyonov 2011-05-09 19:36:17 +03:00
parent 1c09f85be2
commit 75c5761506
4 changed files with 7 additions and 6 deletions

View File

@ -7,3 +7,4 @@ TEMPLATE = lib
UI_DIR = uics
MOC_DIR = mocs
OBJECTS_DIR = objs
INCLUDEPATH +=../../../../libs/

View File

@ -25,6 +25,7 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "cache.h"
#include "utils/pathutils.h"
#include <QSettings>
namespace core {
@ -53,11 +54,7 @@ namespace core {
{
if(cache.isNull()|cache.isEmpty())
{
QSettings set(QSettings::IniFormat, QSettings::UserScope,QLatin1String("OpenPilot"), QLatin1String("OpenPilotGCS"));
QDir dir(set.fileName());
QFileInfo f(dir.absolutePath());
f.dir().absolutePath();
cache=f.dir().absolutePath()+QDir::separator()+"mapscache"+QDir::separator();
cache= Utils::PathUtils().GetStoragePath()+"mapscache"+QDir::separator();
setCacheLocation(cache);
}
}

View File

@ -3,6 +3,8 @@ TARGET = opmapwidget
DEFINES += OPMAPWIDGET_LIBRARY
include(../../../../openpilotgcslibrary.pri)
include(../../../utils/utils.pri)
# DESTDIR = ../build
SOURCES += mapgraphicitem.cpp \
opmapwidget.cpp \
@ -15,6 +17,7 @@ SOURCES += mapgraphicitem.cpp \
mapripform.cpp \
mapripper.cpp \
traillineitem.cpp
LIBS += -L../build \
-lcore \
-linternals \

View File

@ -1 +1 @@
LIBS *= -l$$qtLibraryTarget(Utils)
LIBS += -lcore -l$$qtLibraryTarget(Utils)