File: rootapp.pro

package info (click to toggle)
cmst 2023.03.14-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,608 kB
  • sloc: cpp: 6,999; xml: 142; makefile: 12
file content (45 lines) | stat: -rwxr-xr-x 1,501 bytes parent folder | download | duplicates (2)
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