mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
39 lines
892 B
Prolog
39 lines
892 B
Prolog
TEMPLATE = lib
|
|
TARGET = ScreenPlaySysInfo
|
|
QT += qml quick
|
|
CONFIG += plugin c++11
|
|
|
|
TARGET = $$qtLibraryTarget($$TARGET)
|
|
uri = net.aimber.sysinfo
|
|
|
|
# Input
|
|
SOURCES += \
|
|
screenplaysysinfo_plugin.cpp \
|
|
sysinfo.cpp \
|
|
cpu.cpp \
|
|
ram.cpp
|
|
|
|
HEADERS += \
|
|
screenplaysysinfo_plugin.h \
|
|
sysinfo.h \
|
|
cpu.h \
|
|
ram.h
|
|
|
|
DISTFILES = qmldir
|
|
|
|
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
|
|
copy_qmldir.target = $$OUT_PWD/qmldir
|
|
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
|
|
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
|
|
QMAKE_EXTRA_TARGETS += copy_qmldir
|
|
PRE_TARGETDEPS += $$copy_qmldir.target
|
|
}
|
|
|
|
qmldir.files = qmldir
|
|
|
|
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
|
|
qmldir.path = $$installPath
|
|
target.path = $$installPath
|
|
INSTALLS += target qmldir
|
|
|