source: src-qt4/libpcbsd/utils/utils.pro @ cab198c

releng/10.0.2
Last change on this file since cab198c was cab198c, checked in by Ken Moore <ken@…>, 5 months ago

Add a new file/classes to libpcbsd - utils.
1) SystemFlags? : public enumeration of different flag types, and a static function to set a particular system flag (SystemFlags::setFlat(SYSFLAG, QString contents) )
2) SystemFlagWatcher? : Class that can be used in Qt utilites for alerting when a new system flag is available (as well as a public function to look for new flags within the last X minutes - for when a utility just started up)

Still needs testing in an actual utility.
One known restriction: setFlag() needs to be run by a root-permissions utility after computer startup before non-root utilities can successfully set flags. This is because the /tmp/pcbsdflags dir needs to be initially created first with 666 permissions.

  • Property mode set to 100644
File size: 512 bytes
Line 
1
2QT       += core network
3
4TARGET=pcbsd-utils
5target.path = /usr/local/lib
6
7DESTDIR= $$_PRO_FILE_PWD_/../
8
9TEMPLATE        = lib
10LANGUAGE        = C++
11VERSION         = 0.9.8
12
13HEADERS += pcbsd-netif.h \
14        pcbsd-utils.h \
15        pcbsd-hardware.h \
16        pcbsd-DLProcess.h \
17        pcbsd-sysFlags.h
18
19SOURCES += utils.cpp \
20        hardware.cpp \
21        netif.cpp \
22        pcbsd-DLProcess.cpp \
23        pcbsd-sysFlags.cpp
24
25include.path=/usr/local/include/
26include.files=pcbsd-*.h
27
28INSTALLS += target include
29
30QMAKE_LIBDIR = /usr/local/lib/qt4 /usr/local/lib
Note: See TracBrowser for help on using the repository browser.