修改环境到可以使用VS编译
This commit is contained in:
@@ -34,7 +34,8 @@ FORMS += \
|
|||||||
$$PWD/clientlinkdialog.ui
|
$$PWD/clientlinkdialog.ui
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/clientlinkdialog.h
|
$$PWD/clientlinkdialog.h \
|
||||||
|
clientlinkglobal.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
$$PWD/clientlinkdialog.cpp
|
$$PWD/clientlinkdialog.cpp
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifndef CLIENTLINKDIALOG_H
|
#ifndef CLIENTLINKDIALOG_H
|
||||||
#define CLIENTLINKDIALOG_H
|
#define CLIENTLINKDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
@@ -9,8 +9,15 @@ namespace Ui {
|
|||||||
class ClientLinkDialog;
|
class ClientLinkDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef QtClientLink
|
||||||
|
#include <clientlinkglobal.h>
|
||||||
|
class CLIENTLINKSHARED_EXPORT ClientLinkDialog : public QDialog {
|
||||||
|
#else
|
||||||
class ClientLinkDialog : public QDialog
|
class ClientLinkDialog : public QDialog
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#ifndef CLIENTLINKGLOBAL_H
|
||||||
|
#define CLIENTLINKGLOBAL_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
|
#ifdef QtClientLink
|
||||||
|
#if defined(CLIENTLINK_LIBRARY)
|
||||||
|
# define CLIENTLINKSHARED_EXPORT Q_DECL_EXPORT
|
||||||
|
#else
|
||||||
|
# define CLIENTLINKSHARED_EXPORT Q_DECL_IMPORT
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif // CLIENTLINKGLOBAL_H
|
||||||
@@ -11,8 +11,15 @@
|
|||||||
|
|
||||||
class QColor;
|
class QColor;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef QtCockpit
|
||||||
|
#include <Cockpitglobal.h>
|
||||||
|
class COCKPITSHARED_EXPORT Cockpit: public QWidget {
|
||||||
|
#else
|
||||||
class Cockpit: public QWidget
|
class Cockpit: public QWidget
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
enum ErrorCode {MaxValueError=1,MinValueError,ThresholdError,TargetError,PrecisionError,ColorError,UnitsEmpty,OutOfRange};
|
enum ErrorCode {MaxValueError=1,MinValueError,ThresholdError,TargetError,PrecisionError,ColorError,UnitsEmpty,OutOfRange};
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/Cockpit.h \
|
$$PWD/Cockpit.h \
|
||||||
|
cockpitglobal.h \
|
||||||
leftladder.h
|
leftladder.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#ifndef COCKPITGLOBAL_H
|
||||||
|
#define COCKPITGLOBAL_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
|
#ifdef QtCockpit
|
||||||
|
#if defined(COCKPIT_LIBRARY)
|
||||||
|
# define COCKPITSHARED_EXPORT Q_DECL_EXPORT
|
||||||
|
#else
|
||||||
|
# define COCKPITSHARED_EXPORT Q_DECL_IMPORT
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif // COPKITGLOBAL_H
|
||||||
@@ -52,7 +52,8 @@ INCLUDEPATH += $$PWD/../mavlink \
|
|||||||
$$PWD/../mavlink/message_definitions
|
$$PWD/../mavlink/message_definitions
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
mavlinknode.h \
|
mavlinknode.h \ \
|
||||||
|
mavlinknodeglobal.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
mavlinknode.cpp
|
mavlinknode.cpp
|
||||||
|
|||||||
@@ -8,11 +8,14 @@
|
|||||||
|
|
||||||
//#include "mavlink.h"
|
//#include "mavlink.h"
|
||||||
|
|
||||||
|
#ifdef QtMavlinkNode
|
||||||
|
#include <mavlinknodeglobal.h>
|
||||||
|
class MAVLINKNODESHARED_EXPORT MavLinkNode : public QObject {
|
||||||
|
#else
|
||||||
class MavLinkNode : public QObject
|
class MavLinkNode : public QObject
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit MavLinkNode(QObject *parent = nullptr);
|
explicit MavLinkNode(QObject *parent = nullptr);
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#ifndef MAVLINKNODEGLOBAL_H
|
||||||
|
#define MAVLINKNODEGLOBAL_H
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
|
#ifdef QtMavlinkNode
|
||||||
|
#if defined(MAV_LIBRARY)
|
||||||
|
# define MAVLINKNODESHARED_EXPORT Q_DECL_EXPORT
|
||||||
|
#else
|
||||||
|
# define MAVLINKNODESHARED_EXPORT Q_DECL_IMPORT
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif // MAVLINKNODEGLOBAL_H
|
||||||
@@ -37,7 +37,7 @@ FORMS += \
|
|||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/connectdialog.h \
|
$$PWD/connectdialog.h \
|
||||||
$$PWD/disconnectdialog.h \
|
$$PWD/disconnectdialog.h \
|
||||||
serialportlib.h
|
serialportglobal.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
$$PWD/connectdialog.cpp \
|
$$PWD/connectdialog.cpp \
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <QSerialPort>
|
#include <QSerialPort>
|
||||||
#include <QSerialPortInfo>
|
#include <QSerialPortInfo>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include "serialportlib.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
@@ -16,10 +15,13 @@ class ConnectDialog;
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef QtSerialPort
|
||||||
|
#include <serialportglobal.h>
|
||||||
|
class SERIALPORTSHARED_EXPORT ConnectDialog : public QDialog {
|
||||||
|
#else
|
||||||
class ConnectDialog : public QDialog
|
class ConnectDialog : public QDialog
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
#ifndef DISCONNECTDIALOG_H
|
#ifndef DISCONNECTDIALOG_H
|
||||||
#define DISCONNECTDIALOG_H
|
#define DISCONNECTDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include "serialportlib.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class disconnectdialog;
|
class disconnectdialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef QtSerialPort
|
||||||
|
#include <serialportglobal.h>
|
||||||
|
class SERIALPORTSHARED_EXPORT disconnectdialog : public QDialog {
|
||||||
|
#else
|
||||||
class disconnectdialog : public QDialog
|
class disconnectdialog : public QDialog
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
#ifndef SERIALPORTGLOBAL_H
|
||||||
|
#define SERIALPORTGLOBAL_H
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
|
#ifdef QtSerialPort
|
||||||
|
#if defined(SERIALPORT_LIBRARY)
|
||||||
|
# define SERIALPORTSHARED_EXPORT Q_DECL_EXPORT
|
||||||
|
#else
|
||||||
|
# define SERIALPORTSHARED_EXPORT Q_DECL_IMPORT
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif // SERIALPORTGLOBAL_H
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#ifndef SERIALPORTLIB_H
|
|
||||||
#define SERIALPORTLIB_H
|
|
||||||
|
|
||||||
|
|
||||||
//这一句用于输出lib exp文件
|
|
||||||
#ifdef QtSerialPort
|
|
||||||
#if defined(SERIALPORT_LIBRARY)
|
|
||||||
# define SHARED_EXPORT Q_DECL_EXPORT
|
|
||||||
#else
|
|
||||||
# define SHARED_EXPORT Q_DECL_IMPORT
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // SERIALPORTLIB_H
|
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#ifndef QNAVIGANTIONGLOBAL_H
|
||||||
|
#define QNAVIGANTIONGLOBAL_H
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
|
#ifdef QNavigation
|
||||||
|
#if defined(QNAVGATION_LIBRARY)
|
||||||
|
# define QNAVGATIONSHARED_EXPORT Q_DECL_EXPORT
|
||||||
|
#else
|
||||||
|
# define QNAVGATIONSHARED_EXPORT Q_DECL_IMPORT
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif // QNAVIGANTIONGLOBAL_H
|
||||||
@@ -4,8 +4,14 @@
|
|||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef QNavigation
|
||||||
|
#include <qnavigantionglobal.h>
|
||||||
|
class QNAVGATIONSHARED_EXPORT QNavigationWidget : public QWidget {
|
||||||
|
#else
|
||||||
class QNavigationWidget : public QWidget
|
class QNavigationWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/qnavigationwidget.h
|
$$PWD/qnavigationwidget.h \
|
||||||
|
qnavigantionglobal.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
$$PWD/qnavigationwidget.cpp
|
$$PWD/qnavigationwidget.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user