164 lines
5.8 KiB
Prolog
164 lines
5.8 KiB
Prolog
QT += core gui network widgets
|
||
|
||
CONFIG += c++17
|
||
|
||
TARGET = DroneScrewCtrlApp
|
||
TEMPLATE = app
|
||
|
||
DEFINES += QT_DEPRECATED_WARNINGS
|
||
DEFINES += UNICODE
|
||
DEFINES += _UNICODE
|
||
|
||
win32-msvc {
|
||
QMAKE_CXXFLAGS += /utf-8
|
||
}
|
||
|
||
# 澶存枃浠惰矾寰?
|
||
INCLUDEPATH += $$PWD/Presenter/Inc
|
||
INCLUDEPATH += $$PWD/../DroneScrewCtrlConfig/Inc
|
||
|
||
INCLUDEPATH += $$PWD/../../../Utils/VrCommon/Inc
|
||
INCLUDEPATH += $$PWD/../../../Utils/VrUtils/Inc
|
||
|
||
INCLUDEPATH += $$PWD/../../../Module/ShareMem/Inc
|
||
INCLUDEPATH += $$PWD/../../../Nets/ZeroMQClient/Inc
|
||
INCLUDEPATH += $$PWD/../../../Nets/ZeroMQPubSub/Inc
|
||
INCLUDEPATH += $$PWD/../../../Module/FFMediaStream/Inc
|
||
INCLUDEPATH += $$PWD/../../../Module/AuthModule/Inc
|
||
INCLUDEPATH += $$PWD/../../../Module/WDRemoteReceiver/Inc
|
||
|
||
INCLUDEPATH += $$PWD/../../../AppUtils/AppCommon/Inc
|
||
INCLUDEPATH += $$PWD/../../../AppUtils/AppConfig/Inc
|
||
INCLUDEPATH += $$PWD/../../../AppUtils/UICommon/Inc
|
||
|
||
# Protobuf / ZeroMQ
|
||
INCLUDEPATH += $$PWD/../../../SDK/Protobuf_3_20/include
|
||
INCLUDEPATH += $$PWD/../../../Nets/SDK/ZeroMQ/include
|
||
|
||
# 婧愭枃浠?
|
||
SOURCES += \
|
||
main.cpp \
|
||
mainwindow.cpp \
|
||
dialogalgoarg.cpp \
|
||
dialogcamerasetting.cpp \
|
||
dialoghistoryresult.cpp \
|
||
resultitem.cpp \
|
||
Presenter/Src/ConfigManager.cpp \
|
||
Presenter/Src/DroneScrewCtrlPresenter.cpp
|
||
|
||
HEADERS += \
|
||
mainwindow.h \
|
||
dialogalgoarg.h \
|
||
dialogcamerasetting.h \
|
||
dialoghistoryresult.h \
|
||
resultitem.h \
|
||
Version.h \
|
||
IYDroneScrewCtrlStatus.h \
|
||
Presenter/Inc/ConfigManager.h \
|
||
Presenter/Inc/DroneScrewCtrlPresenter.h
|
||
|
||
FORMS += \
|
||
mainwindow.ui \
|
||
dialogalgoarg.ui \
|
||
dialogcamerasetting.ui \
|
||
dialoghistoryresult.ui \
|
||
resultitem.ui
|
||
|
||
RESOURCES += \
|
||
../../../AppUtils/UICommon/common_resources.qrc \
|
||
resources.qrc
|
||
|
||
# Windows 浠诲姟鏍?/ exe 鍥炬爣
|
||
win32 {
|
||
RC_ICONS = resource/logo.ico
|
||
}
|
||
|
||
# 閾炬帴
|
||
win32:CONFIG(debug, debug|release) {
|
||
LIBS += -L../../../Utils/VrUtils/debug -lVrUtils
|
||
LIBS += -L../../../AppUtils/UICommon/debug -lUICommon
|
||
LIBS += -L../../../AppUtils/AppCommon/debug -lAppCommon
|
||
LIBS += -L../../../AppUtils/AppConfig/debug -lAppConfig
|
||
LIBS += -L../../../Module/AuthModule/debug -lAuthModule
|
||
LIBS += -L../../../Nets/debug -lZeroMQClient
|
||
LIBS += -L../../../Nets/debug -lZeroMQPubSub
|
||
LIBS += -L../../../Module/FFMediaStream/debug -lFFMediaStream
|
||
LIBS += -L../../../Module/ShareMem/debug -lShareMem
|
||
LIBS += -L../../../Module/WDRemoteReceiver/debug -lWDRemoteReceiver
|
||
LIBS += -L../DroneScrewCtrlConfig/debug -lDroneScrewCtrlConfig
|
||
}else:win32:CONFIG(release, debug|release){
|
||
LIBS += -L../../../Utils/VrUtils/release -lVrUtils
|
||
LIBS += -L../../../AppUtils/UICommon/release -lUICommon
|
||
LIBS += -L../../../AppUtils/AppCommon/release -lAppCommon
|
||
LIBS += -L../../../AppUtils/AppConfig/release -lAppConfig
|
||
LIBS += -L../../../Module/AuthModule/release -lAuthModule
|
||
LIBS += -L../../../Nets/release -lZeroMQClient
|
||
LIBS += -L../../../Nets/release -lZeroMQPubSub
|
||
LIBS += -L../../../Module/FFMediaStream/release -lFFMediaStream
|
||
LIBS += -L../../../Module/ShareMem/release -lShareMem
|
||
LIBS += -L../../../Module/WDRemoteReceiver/release -lWDRemoteReceiver
|
||
LIBS += -L../DroneScrewCtrlConfig/release -lDroneScrewCtrlConfig
|
||
}else:unix:!macx {
|
||
LIBS += -L../DroneScrewCtrlConfig -lDroneScrewCtrlConfig
|
||
LIBS += -L../../../AppUtils/UICommon -lUICommon
|
||
LIBS += -L../../../AppUtils/AppCommon -lAppCommon
|
||
LIBS += -L../../../AppUtils/AppConfig -lAppConfig
|
||
LIBS += -L../../../Module/AuthModule -lAuthModule
|
||
LIBS += -L../../../Nets -lZeroMQClient
|
||
LIBS += -L../../../Nets -lZeroMQPubSub
|
||
LIBS += -L../../../Module/FFMediaStream -lFFMediaStream
|
||
LIBS += -L../../../Module/ShareMem -lShareMem
|
||
LIBS += -L../../../Module/WDRemoteReceiver -lWDRemoteReceiver
|
||
LIBS += -L../../../Utils/VrUtils -lVrUtils
|
||
|
||
# 绯荤粺搴擄紙鏉垮瓙鑷甫锛?
|
||
LIBS += -lrga
|
||
|
||
# MPP 鍔ㄦ€佸簱 + FFmpeg 闈欐€佸簱鎼滅储璺緞
|
||
MPP_LIB_DIR = $$PWD/../../../Module/SDK/mpp/lib
|
||
FFMPEG_LIB_DIR = $$PWD/../../../Module/SDK/ffmpeg-rockchip/lib
|
||
LIBS += -L$${MPP_LIB_DIR}
|
||
LIBS += -L$${FFMPEG_LIB_DIR}
|
||
|
||
# FFmpeg-rockchip 闈欐€佸簱
|
||
# --whole-archive锛氳В鍐?.a 闂村惊鐜緷璧?+ ff_log_level 绛夊唴閮ㄧ鍙? # --allow-multiple-definition锛歭ibavcodec 鍜?libswscale 閮界紪璇戜簡 half2float.o锛堥噸澶嶄絾瀹屽叏鐩稿悓锛?
|
||
LIBS += -Wl,--whole-archive
|
||
LIBS += -lavformat -lavcodec -lswscale -lavutil -lswresample
|
||
LIBS += -Wl,--no-whole-archive
|
||
LIBS += -Wl,--allow-multiple-definition
|
||
|
||
# FFmpeg / MPP 浼犻€掍緷璧?
|
||
LIBS += -lrockchip_mpp -lz -llzma -ldrm -lpthread -ldl
|
||
|
||
# ZeroMQ
|
||
LIBS += -L$$PWD/../../../Nets/SDK/ZeroMQ/Arm/aarch64 -lzmq
|
||
|
||
# WDRemoteReceiver uses OpenCV imgcodecs for PNG raw-image decode.
|
||
OPENCV_LIB_DIR = $$PWD/../../../SDK/OpenCV320/Arm/aarch64
|
||
LIBS += -L$${OPENCV_LIB_DIR} -lopencv_imgcodecs -lopencv_core
|
||
QMAKE_LFLAGS += -Wl,-rpath-link,$${OPENCV_LIB_DIR}
|
||
|
||
LIBS += -lpthread -ldl
|
||
}
|
||
|
||
win32 {
|
||
LIBS += -lws2_32
|
||
LIBS += Advapi32.lib
|
||
|
||
# ZeroMQ
|
||
CONFIG(release, debug|release) {
|
||
LIBS += -L$$PWD/../../../Nets/SDK/ZeroMQ/Windows/x64/Release -llibzmq-v142-mt-4_3_5
|
||
LIBS += -L$$PWD/../../../SDK/Protobuf_3_20/Windows/x64/Release -llibprotobuf
|
||
} else {
|
||
LIBS += -L$$PWD/../../../Nets/SDK/ZeroMQ/Windows/x64/Debug -llibzmq-v142-mt-gd-4_3_5
|
||
LIBS += -L$$PWD/../../../SDK/Protobuf_3_20/Windows/x64/Debug -llibprotobuf
|
||
}
|
||
}
|
||
|
||
unix {
|
||
target.path = /opt/dronescrewctrl
|
||
LIBS += -lrt
|
||
}
|
||
|
||
!isEmpty(target.path): INSTALLS += target
|