92 lines
2.0 KiB
Prolog
92 lines
2.0 KiB
Prolog
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
QT += core gui network
|
||
|
|
|
||
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
TARGET = MAVLinkInspector
|
||
|
|
TEMPLATE = lib
|
||
|
|
|
||
|
|
DEFINES += MAVLINKINSPECTOR_LIBRARY
|
||
|
|
|
||
|
|
|
||
|
|
CONFIG += resources_big
|
||
|
|
|
||
|
|
|
||
|
|
# The following define makes your compiler emit warnings if you use
|
||
|
|
# any feature of Qt which has been marked as deprecated (the exact warnings
|
||
|
|
# depend on your compiler). Please consult the documentation of the
|
||
|
|
# deprecated API in order to know how to port your code away from it.
|
||
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||
|
|
|
||
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
||
|
|
# In order to do so, uncomment the following line.
|
||
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
DESTDIR = $$PWD/../thirdpart/lib
|
||
|
|
MOC_DIR = $$PWD/../build
|
||
|
|
OBJECTS_DIR = $$PWD/../build
|
||
|
|
|
||
|
|
DEFINES += QtMavlinkInspector
|
||
|
|
|
||
|
|
|
||
|
|
#添加mavlink目录
|
||
|
|
INCLUDEPATH += $$PWD/../mavlink \
|
||
|
|
$$PWD/../mavlink/ardupilotmega \
|
||
|
|
$$PWD/../mavlink/common \
|
||
|
|
$$PWD/../mavlink/icarous \
|
||
|
|
$$PWD/../mavlink/uAvionix \
|
||
|
|
$$PWD/../mavlink/XYK \
|
||
|
|
$$PWD/../mavlink/message_definitions
|
||
|
|
|
||
|
|
FORMS += \
|
||
|
|
$$PWD/MAVLinkInspector.ui
|
||
|
|
|
||
|
|
HEADERS += \
|
||
|
|
$$PWD/MAVLinkInspector.h \
|
||
|
|
MAVLinkInspectorGlobal.h
|
||
|
|
|
||
|
|
SOURCES += \
|
||
|
|
$$PWD/MAVLinkInspector.cc
|
||
|
|
|
||
|
|
|
||
|
|
win32|win64 {
|
||
|
|
src_dir = $$PWD\\*.h
|
||
|
|
dst_dir = $$PWD\\..\\thirdpart\\include\\
|
||
|
|
# dst_dir 最后的 \\ 是必须的,用来标示 xcopy 到一个文件夹,若不存在,创建之
|
||
|
|
|
||
|
|
# Replace slashes in paths with backslashes for Windows
|
||
|
|
src_dir ~= s,/,\\,g
|
||
|
|
dst_dir ~= s,/,\\,g
|
||
|
|
|
||
|
|
system(xcopy $$src_dir $$dst_dir /y /e)
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
unix {
|
||
|
|
src_dir = $$PWD/*.h
|
||
|
|
dst_dir = $$PWD/../thirdpart/include/
|
||
|
|
|
||
|
|
!exists($$dst_dir): system(mkdir -p $$dst_dir)
|
||
|
|
|
||
|
|
system(cp $$src_dir $$dst_dir -arf )
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|