ozw-admin/ozwadmin-main/ozwadmin-main.pro

126 lines
3.5 KiB
Prolog
Raw Permalink Normal View History

2016-04-27 23:02:11 +08:00
#-------------------------------------------------
#
# Project created by QtCreator 2016-04-27T16:10:29
#
#-------------------------------------------------
QT += core gui widgets xml remoteobjects websockets svg
CONFIG += silent
2016-04-27 23:02:11 +08:00
2016-10-06 14:42:37 +08:00
TARGET = ../ozwadmin
2016-04-27 23:02:11 +08:00
TEMPLATE = app
2020-05-11 12:55:20 +08:00
isEmpty(BUILDNUMBER) {
BUILDNUMBER = 0
}
2020-06-17 00:16:01 +08:00
GIT_VERSION_TAG=$$system(git describe --tags --match *.0)
message($$GIT_VERSION_TAG)
GIT_VERSIONS = $$split(GIT_VERSION_TAG, "-")
message($$GIT_VERSIONS)
BUILDNUMBER=$$member(GIT_VERSIONS, 1)
2020-05-11 12:55:20 +08:00
VERSION = 0.1.$$BUILDNUMBER
message("Building Version $$VERSION")
DEFINES +=APP_VERSION=$$VERSION
2020-06-17 00:16:01 +08:00
unix {
packagefiles.input=$$PWD/../scripts/version.in
packagefiles.output=$$PWD/../scripts/version
QMAKE_SUBSTITUTES += packagefiles
}
2020-06-17 01:28:55 +08:00
win32 {
packagefiles.input=$$PWD\..\scripts\package.nsis.in
packagefiles.output=$$PWD\..\scripts\package.nsis
2020-06-17 00:16:01 +08:00
QMAKE_SUBSTITUTES += packagefiles
2020-06-17 01:28:55 +08:00
message("doing Substitutions")
2020-06-17 00:16:01 +08:00
}
2020-05-11 12:55:20 +08:00
2016-04-27 23:02:11 +08:00
SOURCES += main.cpp\
configuration.cpp \
controllercommands.cpp \
deviceinfo.cpp \
eventwindow.cpp \
2019-06-29 11:55:43 +08:00
logwindow.cpp \
mainwindow.cpp \
metadatawindow.cpp \
nodestatus.cpp \
nodetablewidget.cpp \
ozwcore.cpp \
2020-05-11 12:55:20 +08:00
splashdialog.cpp \
2020-02-13 17:14:55 +08:00
startup.cpp \
startupprogress.cpp \
2020-02-23 00:34:32 +08:00
statusbarmessages.cpp \
util.cpp \
valuetable.cpp
2016-04-27 23:02:11 +08:00
HEADERS += mainwindow.h \
configuration.h \
controllercommands.h \
deviceinfo.h \
eventwindow.h \
2019-06-29 11:55:43 +08:00
logwindow.h \
metadatawindow.h \
nodestatus.h \
nodetablewidget.h \
ozwcore.h \
2020-05-11 12:55:20 +08:00
splashdialog.h \
2020-02-13 17:14:55 +08:00
startup.h \
startupprogress.h \
2020-02-23 00:34:32 +08:00
statusbarmessages.h \
util.h \ \
valuetable.h
2016-10-06 14:42:37 +08:00
FORMS += mainwindow.ui \
configuration.ui \
deviceinfo.ui \
eventwindow.ui \
2019-06-29 11:55:43 +08:00
logwindow.ui \
2020-02-13 17:14:55 +08:00
metadatawindow.ui \
nodestatus.ui \
nodetablewidget.ui \
2020-05-11 12:55:20 +08:00
splashdialog.ui \
2020-02-13 17:14:55 +08:00
startup.ui \
startupprogress.ui
2016-10-06 14:42:37 +08:00
RESOURCES += \
ozwadmin-main.qrc \
2020-05-23 12:53:38 +08:00
stylesheets/darkorange/darkorange.qrc
include(../ozw-admin.pri)
2019-10-14 16:56:14 +08:00
unix {
2020-01-25 12:46:31 +08:00
target.path = /usr/local/bin
INSTALLS += target
2020-05-20 18:11:31 +03:00
LIBS += -L../devicedb-lib/ -ldevicedb-lib -L../ozwadmin-widgets/ -lozwadmin-widgets -lqt-openzwavedatabase
2019-10-14 16:56:14 +08:00
}
windows {
CONFIG(debug, debug|release) {
debug: LIBS += -L..\devicedb-lib\debug\ -L..\ozwadmin-widgets\debug\ -L..\..\qt-openzwave\qt-openzwave\debug\ -L..\..\qt-openzwave\qt-openzwavedatabase\debug\
2020-02-13 17:14:55 +08:00
}
CONFIG(release, debug|release) {
release: LIBS += -L..\devicedb-lib\release\ -L..\ozwadmin-widgets\release\ -L..\..\qt-openzwave\qt-openzwave\release\ -L..\..\qt-openzwave\qt-openzwavedatabase\release\
2019-10-14 16:56:14 +08:00
}
LIBS += -ldevicedb-lib -lozwadmin-widgets -lqt-openzwave1 -lqt-openzwavedatabase1
2019-10-14 16:56:14 +08:00
message($$LIBS)
RC_ICONS=res/ozw_logo.ico
2019-10-14 16:56:14 +08:00
}
INCLUDEPATH += ../devicedb-lib ../ozwadmin-widgets
2016-04-27 23:02:11 +08:00
macx: {
LIBS += -framework IOKit -framework CoreFoundation
2020-01-27 11:32:55 +08:00
BUNDLE.files = $$OZW_LIB_PATH/libopenzwave-1.6.dylib $$QTOZW_LIB_PATH/libqt-openzwave.1.dylib $$QTOZW_LIB_PATH/../qt-openzwavedatabase/libqt-openzwavedatabase.1.dylib
BUNDLE.path = Contents/Frameworks/
OZWDB.files = $$absolute_path($$QTOZW_LIB_PATH/../qt-openzwavedatabase/qt-openzwavedatabase.rcc)
OZWDB.path = Contents/Resources/
QMAKE_BUNDLE_DATA += BUNDLE
QMAKE_BUNDLE_DATA += OZWDB
MakeBundle.commands = $$[QT_HOST_BINS]/macdeployqt ../ozwadmin.app -no-strip && $$top_srcdir/scripts/macdeployqtfix.py ../ozwadmin.app/Contents/MacOS/ozwadmin $$[QT_INSTALL_PREFIX]
2020-01-27 11:32:55 +08:00
QMAKE_EXTRA_TARGETS += MakeBundle
QMAKE_POST_LINK += $$MakeBundle.commands
ICON = res/ozw_logo.icns
2020-05-28 01:12:59 +08:00
QMAKE_INFO_PLIST = ../scripts/Info.plist
}