mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
This adds two new components: 1) ratbagd The ratbagd daemon is a very basic dbus daemon that provides an org.freedesktop.DBus.ObjectManager based enumeration and modification API for libratbag devices. So far, all it does is enumerate input devices on the bus. However, this will be extended to advertise full libratbag hierarchies on the bus and allow clients to modify properties via DBus. So far, it is root-only, but the DBus policy can be losened and PolKit support can be added. 2) ratbagctl A very basic command-line tool to manage ratbagd. It's basically a command-line interface for the DBus API of ratbagd. So far, it has no hookup for anything. This will be added once ratbagd gains further DBus APIs. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
49 lines
1.2 KiB
Bash
Executable File
49 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# autogen.sh: prepare build system
|
|
# Run this script to prepare the build-system for your local checkout. It
|
|
# requires the usual autotools dependencies to be installed.
|
|
#
|
|
# Prepare build system, but don't configure:
|
|
# $ ./autogen.sh
|
|
#
|
|
# Prepare build system and run ./configure with debugging enabled:
|
|
# $ ./autogen.sh c
|
|
#
|
|
# Prepare build system and run ./configure with llvm over gcc:
|
|
# $ ./autogen.sh l
|
|
#
|
|
# You can put additional arguments to ./configure into ".config.args". They
|
|
# will be appended to the arguments used by this script.
|
|
#
|
|
|
|
set -e
|
|
|
|
oldpwd=$(pwd)
|
|
topdir=$(dirname $0)
|
|
cd $topdir
|
|
|
|
autoreconf --force --install --symlink
|
|
|
|
if [ -f "$topdir/.config.args" ]; then
|
|
args="$args $(cat $topdir/.config.args)"
|
|
fi
|
|
|
|
cd $oldpwd
|
|
|
|
if [ "x$1" = "xc" ]; then
|
|
$topdir/configure --enable-debug $args
|
|
make clean
|
|
elif [ "x$1" = "xl" ]; then
|
|
$topdir/configure CC=clang $args
|
|
make clean
|
|
else
|
|
echo
|
|
echo "----------------------------------------------------------------"
|
|
echo "Initialized build system. For a common configuration please run:"
|
|
echo "----------------------------------------------------------------"
|
|
echo
|
|
echo "$topdir/configure $args"
|
|
echo
|
|
fi
|