GrabBag/Device/VrEyeDevice/VrEyeDevice.pro

80 lines
2.1 KiB
Prolog
Raw Normal View History

2025-07-23 01:35:14 +08:00
#CONFIG -= qt
TEMPLATE = lib
CONFIG += staticlib
DEFINES += VREYEDEVICE_LIBRARY
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
INCLUDEPATH += ./Inc
INCLUDEPATH += ./_Inc
2025-12-10 00:01:32 +08:00
INCLUDEPATH += ../../VrCommon/Inc
2025-07-23 01:35:14 +08:00
SOURCES += \
Src/VrConvert.cpp \
Src/VrEyeDevice.cpp \
Src/VrEyeCommon.cpp
HEADERS += \
Inc/IVrEyeDevice.h \
Inc/VrConvert.h \
Inc/VrEyeDevice_global.h \
VrEyeDevice_global.h \
_Inc/VrEyeCommon.h \
_Inc/VrEyeDevice.h
2025-12-10 00:01:32 +08:00
INCLUDEPATH += $$PWD/../../SDK/eigen-3.3.9
2025-07-23 01:35:14 +08:00
#linux下的为unix windows下用的win32
2025-12-10 00:01:32 +08:00
INCLUDEPATH += $$PWD/../../SDK/VzNLSDK/_Inc
INCLUDEPATH += $$PWD/../../SDK/VzNLSDK/Inc
2025-07-23 01:35:14 +08:00
win32:CONFIG(release, debug|release): {
2025-12-10 00:01:32 +08:00
LIBS += -L$$PWD/../../SDK/VzNLSDK/Windows/x64/Release
2025-07-23 01:35:14 +08:00
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics
}
else:win32:CONFIG(debug, debug|release): {
2025-12-10 00:01:32 +08:00
LIBS += -L$$PWD/../../SDK/VzNLSDK/Windows/x64/Debug
2025-07-23 01:35:14 +08:00
LIBS += -lVzKerneld -lVzNLDetectd -lVzNLGraphicsd
}
else:unix:!macx: {
message("build unix")
2025-12-10 00:01:32 +08:00
LIBS += -L$$PWD/../../SDK/VzNLSDK/Arm/aarch64
2025-07-23 01:35:14 +08:00
# 强制链接所有符号,避免循环依赖问题
LIBS += -Wl,--whole-archive
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics -lVzLog -lVzEyeSecurityLoader-shared
LIBS += -Wl,--no-whole-archive
LIBS += -ldl -lpthread -lrt
}
2025-12-10 00:01:32 +08:00
INCLUDEPATH += $$PWD/../../VrUtils/Inc
INCLUDEPATH += $$PWD/../../VrUtils/ini
2025-07-23 01:35:14 +08:00
win32:CONFIG(debug, debug|release) {
2025-12-10 00:01:32 +08:00
LIBS += -L../../VrUtils/debug -lVrUtils
2025-07-23 01:35:14 +08:00
}else:win32:CONFIG(release, debug|release){
2025-12-10 00:01:32 +08:00
LIBS += -L../../VrUtils/release -lVrUtils
2025-07-23 01:35:14 +08:00
}else:unix:!macx {
# Unix/Linux平台库链接(包括交叉编译)
2025-12-10 00:01:32 +08:00
LIBS += -L../../VrUtils -lVrUtils
2025-07-23 01:35:14 +08:00
}
# 添加libmodbus依赖
win32 {
LIBS += -lws2_32
LIBS += Advapi32.lib
}
# Default rules for deployment.
unix {
target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target