taskbusplatform.pro 3.0 KB
Newer Older
丁劲犇's avatar
丁劲犇 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#-------------------------------------------------
#
# Project created by QtCreator 2018-02-01T09:30:28
#
#-------------------------------------------------

QT       += core gui


greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

#Judge whether qtcharts is supported.
qtHaveModule(charts){
    QT += charts
    HEADERS += watchdog/status_charts/formstatus.h
    SOURCES += watchdog/status_charts/formstatus.cpp
    FORMS += watchdog/status_charts/formstatus.ui
    message("Qt with charts!");
    INCLUDEPATH += watchdog/status_charts
} else {
    HEADERS += watchdog/status_nocharts/formstatus.h
    SOURCES += watchdog/status_nocharts/formstatus.cpp
    FORMS += watchdog/status_nocharts/formstatus.ui
    message("Qt without charts!");
    INCLUDEPATH += watchdog/status_nocharts
}


DESTDIR = $$OUT_PWD/../bin

TARGET = taskBusPlatform
TEMPLATE = app

# 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

INCLUDEPATH += "../tb_interface"
# 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


SOURCES += \
    core/tasknode.cpp \
    core/taskcell.cpp \
    core/taskproject.cpp \
    gui/taskbusplatformfrm.cpp \
    gui/taskbusplatformfrm_modules.cpp \
    gui/taskbusplatformfrm_project.cpp  \
    gui/dlgabout.cpp \
    gui/main.cpp \
    gui/pdesignerview.cpp \
57
    gui/handbookview.cpp \
丁劲犇's avatar
丁劲犇 已提交
58 59 60 61 62
    gui/taskmodule.cpp \
    gui/tgraphicstaskitem.cpp \
    core/process_prctl.cpp \
    watchdog/tbwatchdog.cpp \
    watchdog/watchmemmodule.cpp \
63
    gui/custom_item_editor.cpp \
M
manjaro-xfce 已提交
64
    gui/tbscene.cpp
丁劲犇's avatar
丁劲犇 已提交
65 66 67 68 69

HEADERS += \
    core/tasknode.h \
    core/taskcell.h \
    core/taskproject.h \
70
    gui/handbookview.h \
丁劲犇's avatar
丁劲犇 已提交
71 72 73 74 75 76 77 78 79 80
    gui/taskbusplatformfrm.h \
    gui/pdesignerview.h \
    gui/taskmodule.h \
    gui/tgraphicstaskitem.h \
    gui/dlgabout.h \
    core/process_prctl.h \
    ../tb_interface/cmdlineparser.h \
    ../tb_interface/tb_interface.h \
    watchdog/profile_log.h \
    watchdog/tbwatchdog.h \
81
    watchdog/watchmemmodule.h \
M
manjaro-xfce 已提交
82
    gui/tbscene.h
丁劲犇's avatar
丁劲犇 已提交
83 84 85 86


FORMS += \
    gui/taskbusplatformfrm.ui \
87
    gui/handbookview.ui	\
丁劲犇's avatar
丁劲犇 已提交
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
    gui/pdesignerview.ui \
    gui/dlgabout.ui

TRANSLATIONS +=\
	taskBusPlatform_zh_CN.ts

OTHER_FILES += \
	taskBusPlatform_zh_CN.ts

win32{
    VERSION = 1.0.0.0 # major.minor.patch.build
    VERSION_PE_HEADER = 1.0
    RC_ICONS += taskbusplatform.ico
}
else
{
    VERSION = 1.0.0    # major.minor.patch
}

RESOURCES += \
    taskbusplatform.qrc

message($$QT_ARCH)
contains(QT_ARCH,x86):CONFIG(release, debug|release): QMAKE_CXXFLAGS +=  -march=core2  -O3 -fexpensive-optimizations