QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 CONFIG += release #CONFIG += debug # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked 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 it uses 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 TARGET = testui # Release 版本配置 CONFIG(release, debug|release): { # Release 版本特有的配置选项 DEFINES += MY_DEFINE_RELEASE QMAKE_CXXFLAGS += -O2 # 仅链接需要的动态库 QMAKE_LFLAGS += -Wl,--strip-all SET_CFG_DIR = release } ## Debug 版本配置 CONFIG(debug, debug|release): { # Debug 版本特有的配置选项 DEFINES += MY_DEFINE_DEBUG QMAKE_CXXFLAGS += -g # 或者,如果只需要剥离调试信息,但保留符号表: QMAKE_LFLAGS += -Wl,--strip-debug SET_CFG_DIR = debug } OBJ_DIR = ./qt_generate/$$SET_CFG_DIR DESTDIR = ../../../board_dir/x86_bin/testui OBJECTS_DIR += ./$$OBJ_DIR/obj UI_DIR += ./$$OBJ_DIR/ui RCC_DIR += ./$$OBJ_DIR/rcc MOC_DIR += ./$$OBJ_DIR/moc SOURCES += \ main.cpp \ mainThread.cpp \ mainwindow.cpp \ strategytime.cpp \ tableViewBms.cpp \ tableViewPvdc.cpp \ tableViewDevice.cpp \ tableViewEMS.cpp \ tableViewEss.cpp \ tableViewGrid.cpp \ tableViewMainSys.cpp \ tableViewMeter.cpp \ tableViewPcs.cpp \ tableViewPv.cpp \ tableViewSubSys.cpp \ tableViewsysPv.cpp \ tableviewload.cpp HEADERS += \ mainThread.h \ mainwindow.h \ shareMemoryInstance.h \ strategytime.h \ tableViewBms.h \ tableViewPvdc.h \ tableViewDevice.h \ tableViewEMS.h \ tableViewEss.h \ tableViewGrid.h \ tableViewMainSys.h \ tableViewMeter.h \ tableViewPcs.h \ tableViewPv.h \ tableViewSubSys.h \ tableViewsysPv.h \ tableviewload.h FORMS += \ mainwindow.ui \ strategytime.ui EXTERNAL_REFERENCES = ../../../ INCLUDEPATH += $$EXTERNAL_REFERENCES/include INCLUDEPATH += $$EXTERNAL_REFERENCES/include/dev_model INCLUDEPATH += $$EXTERNAL_REFERENCES/include/general_type INCLUDEPATH += $$EXTERNAL_REFERENCES/include/sys_model INCLUDEPATH += $$EXTERNAL_REFERENCES/lib_src/so_src/prpublicmemory/inc QCLIENT_LIB_NAME = ./$$EXTERNAL_REFERENCES/lib LIBS += -L$$_PRO_FILE_PWD_/$$QCLIENT_LIB_NAME/x86/lib_so -lprpublicmemory # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target