mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
parent
011d7e7fba
commit
28252707a2
3 changed files with 68 additions and 7 deletions
62
autogen.sh
62
autogen.sh
|
@ -1,2 +1,62 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
autoreconf -f --install
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
oldpwd=$(pwd)
|
||||||
|
topdir=$(dirname $0)
|
||||||
|
cd $topdir
|
||||||
|
|
||||||
|
#intltoolize --force --automake
|
||||||
|
autoreconf --force --install --symlink
|
||||||
|
|
||||||
|
libdir() {
|
||||||
|
echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
|
||||||
|
}
|
||||||
|
|
||||||
|
args="\
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--libdir=$(libdir /usr/lib) \
|
||||||
|
"
|
||||||
|
|
||||||
|
if [ -f "$topdir/.config.args" ]; then
|
||||||
|
args="$args $(cat $topdir/.config.args)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $oldpwd
|
||||||
|
|
||||||
|
if [ "x$1" = "xc" ]; then
|
||||||
|
$topdir/configure CFLAGS='-g -O0 -ftrapv' $args
|
||||||
|
make clean
|
||||||
|
elif [ "x$1" = "xg" ]; then
|
||||||
|
$topdir/configure CFLAGS='-g -Og -ftrapv' $args
|
||||||
|
make clean
|
||||||
|
elif [ "x$1" = "xa" ]; then
|
||||||
|
$topdir/configure CFLAGS='-g -O0 -Wsuggest-attribute=pure -Wsuggest-attribute=const -ftrapv' $args
|
||||||
|
make clean
|
||||||
|
elif [ "x$1" = "xl" ]; then
|
||||||
|
$topdir/configure CC=clang CFLAGS='-g -O0 -ftrapv' $args
|
||||||
|
make clean
|
||||||
|
elif [ "x$1" = "xs" ]; then
|
||||||
|
scan-build $topdir/configure CFLAGS='-std=gnu99 -g -O0 -ftrapv' $args
|
||||||
|
scan-build make
|
||||||
|
else
|
||||||
|
cat <<EOF
|
||||||
|
|
||||||
|
----------------------------------------------------------------
|
||||||
|
Initialized build system. For a common configuration please run:
|
||||||
|
----------------------------------------------------------------
|
||||||
|
|
||||||
|
$topdir/configure CFLAGS='-g -O0 -ftrapv' $args
|
||||||
|
|
||||||
|
or run $0 with param:
|
||||||
|
|
||||||
|
- c: compilation
|
||||||
|
- g: debugging
|
||||||
|
- a: pure/const warning
|
||||||
|
- l: clang build
|
||||||
|
- s: scan-build reporting
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
|
@ -6,9 +6,7 @@ install(
|
||||||
DESTINATION bin
|
DESTINATION bin
|
||||||
)
|
)
|
||||||
|
|
||||||
|
INSTALL(
|
||||||
|
FILES org.freedesktop.miracle.conf
|
||||||
#original Makefile.am contents follow:
|
DESTINATION /etc/dbus-1/system.d
|
||||||
|
)
|
||||||
#bin_SCRIPTS = miracle-gst.sh
|
|
||||||
#EXTRA_DIST = wpa.conf
|
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
bin_SCRIPTS = miracle-gst gstplayer uibc-viewer
|
bin_SCRIPTS = miracle-gst gstplayer uibc-viewer
|
||||||
EXTRA_DIST = wpa.conf
|
EXTRA_DIST = wpa.conf
|
||||||
|
|
||||||
|
dbuspolicydir=$(sysconfdir)/dbus-1/system.d
|
||||||
|
dbuspolicy_DATA = org.freedesktop.miracle.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue