From a68359cf3f189815e4e4d397c974f5da3dd328d2 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 20 Nov 2020 13:32:31 +0100 Subject: build: Remove autotools --- Makefile.am | 181 ------------------------------------------------------ Makefile.decl | 54 ---------------- autogen.sh | 50 --------------- configure.ac | 77 ----------------------- docs/Makefile.am | 107 -------------------------------- tests/Makefile.am | 20 ------ 6 files changed, 489 deletions(-) delete mode 100644 Makefile.am delete mode 100644 Makefile.decl delete mode 100755 autogen.sh delete mode 100644 configure.ac delete mode 100644 docs/Makefile.am delete mode 100644 tests/Makefile.am diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 8177fa7..0000000 --- a/Makefile.am +++ /dev/null @@ -1,181 +0,0 @@ -# ------------------------------------------------------------------------------ -# Common variables - -ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} -AUTOMAKE_OPTIONS = color-tests parallel-tests -DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc -SUBDIRS = . -lib_LTLIBRARIES = -noinst_DATA = -MANPAGES = -CLEANFILES = $(BUILT_SOURCES) -BUILT_SOURCES = - -GCC_COLORS ?= 'ooh, shiny!' -export GCC_COLORS - -# remove targets if the command fails -.DELETE_ON_ERROR: - -# keep intermediate files -.SECONDARY: - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = - -AM_MAKEFLAGS = --no-print-directory -AM_CPPFLAGS = -AM_CFLAGS = - -EXTRA_DIST = \ - README \ - COPYING \ - NEWS - -# ------------------------------------------------------------------------------ -# Version numbers - -LIBGUDEV_CURRENT=3 -LIBGUDEV_REVISION=0 -LIBGUDEV_AGE=3 - -# ------------------------------------------------------------------------------ -# libgudev - -libgudev_includedir = $(includedir)/gudev-1.0/gudev - -libgudev_include_HEADERS = \ - gudev/gudev.h \ - gudev/gudevenums.h \ - gudev/gudevenumtypes.h \ - gudev/gudevtypes.h \ - gudev/gudevclient.h \ - gudev/gudevdevice.h \ - gudev/gudevenumerator.h - -lib_LTLIBRARIES += \ - libgudev-1.0.la - -pkgconfig_DATA += \ - gudev-1.0.pc - -EXTRA_DIST += \ - gudev-1.0.pc.in \ - gudev/gudevenumtypes.h.template \ - gudev/gudevenumtypes.c.template \ - scripts/gjs-example.js \ - scripts/seed-example-enum.js \ - scripts/seed-example.js - -libgudev_1_0_la_SOURCES = \ - libgudev-1.0.sym \ - gudev/gudevenums.h \ - gudev/gudevenumtypes.h \ - gudev/gudevenumtypes.h\ - gudev/gudevtypes.h \ - gudev/gudevclient.h \ - gudev/gudevclient.c \ - gudev/gudevdevice.h \ - gudev/gudevdevice.c \ - gudev/gudevenumerator.h \ - gudev/gudevenumerator.c \ - gudev/gudevprivate.h - -nodist_libgudev_1_0_la_SOURCES = \ - gudev/gudevenumtypes.h \ - gudev/gudevenumtypes.c - -BUILT_SOURCES += \ - $(nodist_libgudev_1_0_la_SOURCES) - -libgudev_1_0_la_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - -I$(top_builddir)/gudev \ - -I$(top_srcdir)/gudev \ - -D_POSIX_PTHREAD_SEMANTICS \ - -D_REENTRANT \ - -D_GUDEV_COMPILATION \ - -DG_LOG_DOMAIN=\"GUdev\" - -libgudev_1_0_la_CFLAGS = \ - $(AM_CFLAGS) \ - -fvisibility=default \ - $(LIBUDEV_CFLAGS) \ - $(GLIB_CFLAGS) - -libgudev_1_0_la_LIBADD = \ - $(LIBUDEV_LIBS) \ - $(GLIB_LIBS) - -libgudev_1_0_la_LDFLAGS = \ - $(AM_LDFLAGS) \ - -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \ - -export-dynamic \ - -no-undefined \ - -Wl,--version-script=$(top_srcdir)/libgudev-1.0.sym - -gudev/gudevenumtypes.%: gudev/gudevenumtypes.%.template gudev/gudevenums.h - $(AM_V_at)$(MKDIR_P) $(dir $@) - $(AM_V_GEN)glib-mkenums --template $^ > $@ - -if HAVE_INTROSPECTION --include $(INTROSPECTION_MAKEFILE) - -gudev/GUdev-1.0.gir: libgudev-1.0.la - -gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0 - -gudev_GUdev_1_0_gir_CFLAGS = \ - $(AM_CFLAGS) \ - $(INCLUDES) \ - -D_GUDEV_COMPILATION \ - -D_GUDEV_WORK_AROUND_DEV_T_BUG \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - -I$(top_srcdir)/gudev \ - -I$(top_builddir)/gudev - -gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la - -gudev_GUdev_1_0_gir_SCANNERFLAGS = \ - --pkg-export=gudev-1.0 \ - --warn-all - -gudev_GUdev_1_0_gir_FILES = \ - gudev/gudev.h \ - gudev/gudevtypes.h \ - gudev/gudevenums.h \ - gudev/gudevenumtypes.h \ - gudev/gudevclient.h \ - gudev/gudevdevice.h \ - gudev/gudevenumerator.h \ - gudev/gudevclient.c \ - gudev/gudevdevice.c \ - gudev/gudevenumerator.c - -INTROSPECTION_GIRS = gudev/GUdev-1.0.gir -INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h - -girdir = $(datadir)/gir-1.0 -gir_DATA = \ - gudev/GUdev-1.0.gir - -typelibsdir = $(libdir)/girepository-1.0 -typelibs_DATA = \ - gudev/GUdev-1.0.typelib - -CLEANFILES += $(gir_DATA) $(typelibs_DATA) -endif # HAVE_INTROSPECTION - -# ------------------------------------------------------------------------------ -# docs - -if ENABLE_GTK_DOC -SUBDIRS += docs -endif - -SUBDIRS += tests - -#docs/html: -# $(AM_V_at)$(MKDIR_P) $(dir $@) -# $(AM_V_LN)$(LN_S) -f ../gudev/html $@ diff --git a/Makefile.decl b/Makefile.decl deleted file mode 100644 index ea39c7a..0000000 --- a/Makefile.decl +++ /dev/null @@ -1,54 +0,0 @@ -# Note, we need this set for umockdev to be available in tests -GTESTER = env LD_PRELOAD=libumockdev-preload.so.0: gtester # in $PATH for non-GLIB packages -GTESTER_REPORT = gtester-report # in $PATH for non-GLIB packages - -# initialize variables for unconditional += appending -TEST_PROGS = - -# test: run all tests in cwd and subdirs -test: ${TEST_PROGS} - @test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS} - @ for subdir in $(SUBDIRS) . ; do \ - test "$$subdir" = "." -o "$$subdir" = "po" || \ - ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ - done - -# test-report: run tests in subdirs and generate report -# perf-report: run tests in subdirs with -m perf and generate report -# full-report: like test-report: with -m perf and -m slow -test-report perf-report full-report: ${TEST_PROGS} - @test -z "${TEST_PROGS}" || { \ - case $@ in \ - test-report) test_options="-k";; \ - perf-report) test_options="-k -m=perf";; \ - full-report) test_options="-k -m=perf -m=slow";; \ - esac ; \ - if test -z "$$GTESTER_LOGDIR" ; then \ - ${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \ - elif test -n "${TEST_PROGS}" ; then \ - ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \ - fi ; \ - } - @ ignore_logdir=true ; \ - if test -z "$$GTESTER_LOGDIR" ; then \ - GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \ - ignore_logdir=false ; \ - fi ; \ - for subdir in $(SUBDIRS) . ; do \ - test "$$subdir" = "." -o "$$subdir" = "po" || \ - ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ - done ; \ - $$ignore_logdir || { \ - echo '' > $@.xml ; \ - echo '' >> $@.xml ; \ - for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \ - sed '1,1s/^?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \ - done ; \ - echo >> $@.xml ; \ - echo '' >> $@.xml ; \ - rm -rf "$$GTESTER_LOGDIR"/ ; \ - ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \ - } -.PHONY: test test-report perf-report full-report -# run make test as part of make check -check-local: test diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 9f42268..0000000 --- a/autogen.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -# Run this to generate all the initial makefiles, etc. -test -n "$srcdir" || srcdir=$(dirname "$0") -test -n "$srcdir" || srcdir=. - -olddir=$(pwd) - -cd $srcdir - -(test -f configure.ac) || { - echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***" - exit 1 -} - -GTKDOCIZE=$(which gtkdocize 2>/dev/null) -if test -z $GTKDOCIZE; then - echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation." - rm -f gtk-doc.make - cat > gtk-doc.make <&2 - echo "*** If you wish to pass any to it, please specify them on the" >&2 - echo "*** '$0' command line." >&2 - echo "" >&2 -fi - -aclocal --install || exit 1 -gtkdocize --copy || exit 1 -autoreconf --verbose --force --install || exit 1 - -cd "$olddir" -if [ "$NOCONFIGURE" = "" ]; then - $srcdir/configure "$@" || exit 1 - - if [ "$1" = "--help" ]; then - exit 0 - else - echo "Now type 'make' to compile $PKG_NAME" || exit 1 - fi -else - echo "Skipping configure process." -fi diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 605de2c..0000000 --- a/configure.ac +++ /dev/null @@ -1,77 +0,0 @@ -AC_PREREQ([2.64]) -AC_INIT([libgudev], - [234], - [http://bugzilla.gnome.org/enter_bug.cgi?product=libgudev], - [libgudev], - [http://wiki.gnome.org/Projects/libgudev]) -AC_CONFIG_SRCDIR([gudev/gudev.h]) -AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_AUX_DIR([build-aux]) - -AC_USE_SYSTEM_EXTENSIONS -AC_SYS_LARGEFILE -AM_MAINTAINER_MODE([enable]) -AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects parallel-tests]) -AM_SILENT_RULES([yes]) -AC_CANONICAL_HOST -LT_PREREQ([2.2]) -LT_INIT([disable-static]) - -AC_PROG_MKDIR_P -AC_PROG_LN_S -AC_PROG_SED -AC_PROG_GREP -AC_PROG_AWK -AC_PROG_CC_C99 -PKG_PROG_PKG_CONFIG - -# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line -m4_ifdef([GTK_DOC_CHECK], [ -GTK_DOC_CHECK([1.18],[--flavour no-tmpl])], - [AM_CONDITIONAL([ENABLE_GTK_DOC], [false]) - enable_gtk_doc=no]) - -m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [ -GOBJECT_INTROSPECTION_CHECK([1.31.1]) -], [ - AM_CONDITIONAL([HAVE_INTROSPECTION], [false]) - enable_introspection=no]) - -PKG_CHECK_MODULES([LIBUDEV], [libudev >= 199]) -PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.38 gobject-2.0 gio-2.0]) - -AC_ARG_ENABLE([umockdev], - AS_HELP_STRING([--disable-umockdev], [disable umockdev tests (default: enabled)]),, - [enable_umockdev=yes]) -if test x"$enable_umockdev" != x"no" ; then - PKG_CHECK_MODULES([UMOCKDEV], umockdev-1.0) -fi - -AM_CONDITIONAL(HAVE_UMOCKDEV, [test x"$enable_umockdev" = x"yes"]) - -AC_CONFIG_FILES([ - Makefile - gudev-1.0.pc - tests/Makefile - docs/Makefile - docs/version.xml -]) - -AC_OUTPUT -AC_MSG_RESULT([ - $PACKAGE_NAME $VERSION - gintrospection: ${enable_introspection} - gtk-doc: ${enable_gtk_doc} - - prefix: ${prefix} - exec_prefix: ${exec_prefix} - includedir: ${includedir} - libdir: ${libdir} - - CFLAGS: ${CFLAGS} - CPPFLAGS: ${CPPFLAGS} - LDFLAGS: ${LDFLAGS} - - umockdev (tests): ${enable_umockdev} -]) diff --git a/docs/Makefile.am b/docs/Makefile.am deleted file mode 100644 index c691e07..0000000 --- a/docs/Makefile.am +++ /dev/null @@ -1,107 +0,0 @@ -## Process this file with automake to produce Makefile.in - -# We require automake 1.10 at least. -AUTOMAKE_OPTIONS = 1.10 color-tests - -# This is a blank Makefile.am for using gtk-doc. -# Copy this to your project's API docs directory and modify the variables to -# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples -# of using the various options. - -# The name of the module, e.g. 'glib'. -DOC_MODULE=gudev - -# Uncomment for versioned docs and specify the version of the module, e.g. '2'. -#DOC_MODULE_VERSION=2 - -# The top-level SGML file. You can change this if you want to. -DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml - -# The directory containing the source code. Relative to $(srcdir). -# gtk-doc will search all .c & .h files beneath here for inline comments -# documenting the functions and macros. -# e.g. DOC_SOURCE_DIR=../../../gtk -DOC_SOURCE_DIR=$(top_srcdir)/gudev $(top_builddir)/gudev - -# Extra options to pass to gtkdoc-scangobj. Not normally needed. -SCANGOBJ_OPTIONS= - -# Extra options to supply to gtkdoc-scan. -# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" -SCAN_OPTIONS= - -# Extra options to supply to gtkdoc-mkdb. -# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml -MKDB_OPTIONS=--xml-mode --output-format=xml --name-space=g_udev - -# Extra options to supply to gtkdoc-mktmpl -# e.g. MKTMPL_OPTIONS=--only-section-tmpl -MKTMPL_OPTIONS= - -# Extra options to supply to gtkdoc-mkhtml -MKHTML_OPTIONS=--path=$(abs_srcdir) --path=$(abs_builddir) - -# Extra options to supply to gtkdoc-fixref. Not normally needed. -# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html -FIXXREF_OPTIONS=>/dev/null 2>&1 - -# Used for dependencies. The docs will be rebuilt if any of these change. -# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h -# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c -HFILE_GLOB=$(top_srcdir)/gudev/*.h -CFILE_GLOB=$(top_srcdir)/gudev/*.c - -# Extra header to include when scanning, which are not under DOC_SOURCE_DIR -# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h -EXTRA_HFILES= - -# Header files to ignore when scanning. Use base file name, no paths -# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h -IGNORE_HFILES=gudevenumtypes.h - -# Images to copy into HTML directory. -# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png -HTML_IMAGES= - -# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). -# e.g. content_files=running.sgml building.sgml changes-2.0.sgml -content_files = version.xml - -# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded -# These files must be listed here *and* in content_files -# e.g. expand_content_files=running.sgml -expand_content_files= - -# Hack, hack. You silly gtk-doc, you must not add CFLAGS multiple -# times when calling gcc; it surely can not work with options that must -# be listed only once. -# Kill CFLAGS here because gtk-doc thinks adding CFLAGS to CC _and_ also -# adding CFLAGS itself again would work. -override CFLAGS= -override LDFLAGS= - -# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. -# Only needed if you are using gtkdoc-scangobj to dynamically query widget -# signals and properties. -# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) -# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) -GTKDOC_CFLAGS = \ - $(GLIB_CFLAGS) \ - -I$(top_srcdir)/gudev \ - -I$(top_builddir)/gudev - -GTKDOC_LIBS = \ - $(GLIB_LIBS) \ - $(top_builddir)/libgudev-1.0.la - -# This includes the standard gtk-doc make rules, copied by gtkdocize. -include $(top_srcdir)/gtk-doc.make - -# Other files to distribute -# e.g. EXTRA_DIST += version.xml.in -EXTRA_DIST += version.xml.in - -# Files not to distribute -# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types -# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt -#DISTCLEANFILES += diff --git a/tests/Makefile.am b/tests/Makefile.am deleted file mode 100644 index 4cb60ca..0000000 --- a/tests/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -include $(top_srcdir)/Makefile.decl - -all-local: check-local - -if HAVE_UMOCKDEV - -noinst_PROGRAMS = test-enumerator-filter test-sysfsattr -TEST_PROGS += $(noinst_PROGRAMS) - -test_enumerator_filter_SOURCES = test-enumerator-filter.c -test_enumerator_filter_CFLAGS = $(UMOCKDEV_CFLAGS) -I$(top_srcdir) -test_enumerator_filter_LDADD = $(UMOCKDEV_LIBS) $(top_builddir)/libgudev-1.0.la - -test_sysfsattr_SOURCES = test-sysfsattr.c -test_sysfsattr_CFLAGS = $(UMOCKDEV_CFLAGS) -I$(top_srcdir) -test_sysfsattr_LDADD = $(UMOCKDEV_LIBS) $(top_builddir)/libgudev-1.0.la - -endif - -EXTRA_DIST = test-enumerator-filter.c -- cgit v1.2.1