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
|
# We need the qt libraries, we want compiler warnings on, and this is a release version of the program
CONFIG += qt
CONFIG += warn_on
CONFIG += release
CONFIG += nostrip
# Widgets needed for QT5,
QT += dbus
# cmst variables
include(../../cmst.pri)
TEMPLATE = app
TARGET = cmstroothelper
target.path = $$CMST_LIB_PATH
INSTALLS += target
conf.path = /usr/share/dbus-1/system.d
conf.files = ./system/distro/$$CMST_BUILD_DISTRO/org.cmst.roothelper.conf
INSTALLS += conf
service.path = /usr/share/dbus-1/system-services
service.files = ./system/org.cmst.roothelper.service
service.extra = echo "[D-BUS Service]" > ./system/org.cmst.roothelper.service; echo "Name=org.cmst.roothelper" >> ./system/org.cmst.roothelper.service; echo "Exec=$$CMST_LIB_PATH/cmstroothelper" >> ./system/org.cmst.roothelper.service; echo "User=root" >> ./system/org.cmst.roothelper.service
INSTALLS += service
# dbus
DBUS_ADAPTORS += ./code/roothelper/org.monkey_business_enterprises.roothelper.xml
DBUS_INTERFACES += ./code/roothelper/org.monkey_business_enterprises.roothelper.xml
# header files
HEADERS += ./code/roothelper/roothelper.h
# sources
SOURCES += ./code/main.cpp
SOURCES += ./code/roothelper/roothelper.cpp
## Place all object files in their own directory and moc files in their own directory
## This is not necessary but keeps things cleaner.
mkpath(./object_files)
mkpath(./moc_files)
OBJECTS_DIR = ./object_files
MOC_DIR = ./moc_files
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
|