mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
594f102cf5
Python bindings are not well maintained. Currently it's just broken when trying to build with cython 3.0.8: make --no-print-directory all-recursive Making all in . CYTHON libkmod/python/kmod/kmod.c Error compiling Cython file: ------------------------------------------------------------ ... # details. # # You should have received a copy of the GNU Lesser General Public License # along with python-kmod. If not, see <http://www.gnu.org/licenses/>. cimport _libkmod_h ^ Nothing really touched those bindings for 10 years already. I postponed the removal since they were at least building, but that just changed. So let's drop it and allow any interested people to give it a better life outside of libkmod. Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
75 lines
1.8 KiB
Bash
Executable File
75 lines
1.8 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
oldpwd=$(pwd)
|
|
topdir=$(dirname $0)
|
|
cd $topdir
|
|
|
|
gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
|
|
autoreconf --force --install --symlink
|
|
|
|
libdir() {
|
|
echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
|
|
}
|
|
|
|
args="\
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=$(libdir /usr/lib) \
|
|
"
|
|
|
|
if [ -f "$topdir/.config.args" ]; then
|
|
args="$args $(cat $topdir/.config.args)"
|
|
fi
|
|
|
|
if [ ! -L /bin ]; then
|
|
args="$args \
|
|
--with-rootlibdir=$(libdir /lib) \
|
|
"
|
|
fi
|
|
|
|
cd $oldpwd
|
|
|
|
hackargs="\
|
|
--enable-debug \
|
|
--with-zstd \
|
|
--with-xz \
|
|
--with-zlib \
|
|
--with-openssl \
|
|
"
|
|
|
|
if [ "x$1" = "xc" ]; then
|
|
shift
|
|
$topdir/configure CFLAGS='-g -O2' $args $hackargs "$@"
|
|
make clean
|
|
elif [ "x$1" = "xg" ]; then
|
|
shift
|
|
$topdir/configure CFLAGS='-g -Og' $args "$@"
|
|
make clean
|
|
elif [ "x$1" = "xl" ]; then
|
|
shift
|
|
$topdir/configure CC=clang CXX=clang++ $args "$@"
|
|
make clean
|
|
elif [ "x$1" = "xa" ]; then
|
|
shift
|
|
$topdir/configure CFLAGS='-g -O2 -Wsuggest-attribute=pure -Wsuggest-attribute=const' $args "$@"
|
|
make clean
|
|
elif [ "x$1" = "xs" ]; then
|
|
shift
|
|
scan-build $topdir/configure CFLAGS='-g -O0 -std=gnu11' $args "$@"
|
|
scan-build make
|
|
else
|
|
echo
|
|
echo "----------------------------------------------------------------"
|
|
echo "Initialized build system. For a common configuration please run:"
|
|
echo "----------------------------------------------------------------"
|
|
echo
|
|
echo "$topdir/configure CFLAGS='-g -O2' $args"
|
|
echo
|
|
echo If you are debugging or hacking on kmod, consider configuring
|
|
echo like below:
|
|
echo
|
|
echo "$topdir/configure CFLAGS='-g -O2' $args $hackargs"
|
|
fi
|