build: remove autotools support
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia8db934a144f4be6c3299d1f5ada88119481cf8b
diff --git a/.gitignore b/.gitignore
index 92622d3..de8712e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,58 +1,2 @@
build*/
subprojects/*/
-
-# Template from:
-# https://github.com/github/gitignore/blob/master/Autotools.gitignore
-
-# http://www.gnu.org/software/automake
-
-Makefile.in
-/ar-lib
-/mdate-sh
-/py-compile
-/test-driver
-/ylwrap
-
-# http://www.gnu.org/software/autoconf
-
-/autom4te.cache
-/autoscan.log
-/autoscan-*.log
-/aclocal.m4
-/compile
-/config.guess
-/config.h.in
-/config.sub
-/configure
-/configure.scan
-/depcomp
-/install-sh
-/missing
-/stamp-h1
-
-# https://www.gnu.org/software/libtool/
-
-/ltmain.sh
-
-# http://www.gnu.org/software/texinfo
-
-/texinfo.tex
-
-# Repo Specific Items
-Makefile.interfaces
-Makefile.yaml
-*.pc
-.deps
-*.o
-*.la
-*.lo
-*.log
-/config.h
-/config.h.in~
-/config.status
-Makefile
-/libtool
-*-libtool
-.libs
-*.hpp
-*.cpp
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 72ac4dc..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-AM_DEFAULT_SOURCE_EXT = .cpp
-
-if WANT_LIBPHOSPHOR_DBUS
-nobase_include_HEADERS = ## These get filled in by Makefile.interfaces
-
-libphosphor_dbusdir = ${libdir}
-libphosphor_dbus_LTLIBRARIES = libphosphor_dbus.la
-libphosphor_dbus_la_LDFLAGS = $(SYSTEMD_LIBS) $(SDBUSPLUS_LIBS) -version-info 0:0:0 -shared
-libphosphor_dbus_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(SDBUSPLUS_CFLAGS) -flto
-
-BUILT_SOURCES = libphosphor_dbus.cpp libphosphor_dbus_client.hpp
-CLEANFILES = libphosphor_dbus.cpp libphosphor_dbus_client.hpp
-
-pkgconfiglibdir = ${libdir}/pkgconfig
-pkgconfiglib_DATA = phosphor-dbus-interfaces.pc
-
-clean-local: clean-dbus
-
--include Makefile.interfaces
-endif
-
-yamldir = ${datadir}/phosphor-dbus-yaml/yaml
-nobase_yaml_DATA = ## Filled in by Makefile.yaml
-
--include Makefile.yaml
-
diff --git a/Makefile.interfaces.in b/Makefile.interfaces.in
deleted file mode 100644
index 714e6d0..0000000
--- a/Makefile.interfaces.in
+++ /dev/null
@@ -1 +0,0 @@
-# Empty file so that 'configure' attempts to generate Makefile.interfaces.
diff --git a/Makefile.yaml.in b/Makefile.yaml.in
deleted file mode 100644
index 964f971..0000000
--- a/Makefile.yaml.in
+++ /dev/null
@@ -1 +0,0 @@
-# Empty file so that 'configure' attempts to generate Makefile.yaml
diff --git a/bootstrap.sh b/bootstrap.sh
deleted file mode 100755
index 50b75b7..0000000
--- a/bootstrap.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
- config.guess config.h.in config.sub configure depcomp install-sh \
- ltmain.sh missing *libtool test-driver"
-
-case $1 in
- clean)
- test -f Makefile && make maintainer-clean
- for file in ${AUTOCONF_FILES}; do
- find -name "$file" | xargs -r rm -rf
- done
- exit 0
- ;;
-esac
-
-autoreconf -i
-echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index bb6c8e4..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,76 +0,0 @@
-# Initialization
-AC_PREREQ([2.69])
-AC_INIT([phosphor-dbus-interfaces], [1.0], [https://github.com/openbmc/phosphor-dbus-interfaces])
-AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
-AM_SILENT_RULES([yes])
-AC_LANG([C++])
-
-# Checks for programs.
-AC_PROG_CXX
-AC_PROG_CC
-AM_PROG_AR
-AC_PROG_INSTALL
-AC_PROG_MAKE_SET
-AC_PROG_SED
-AC_CHECK_PROG([FIND], find, find)
-AC_CHECK_PROG([BASENAME], basename, basename)
-AC_CHECK_PROG([DIRNAME], dirname, dirname)
-
-AC_ARG_ENABLE([libphosphor_dbus],
- AS_HELP_STRING([--disable-libphosphor_dbus], [Disable libphosphor_dbus]))
-
-YAML_DIRS="xyz"
-
-AC_ARG_ENABLE([openpower_dbus_interfaces],
- AS_HELP_STRING([--enable-openpower-dbus-interfaces], [Enable the OpenPower D-Bus interfaces]))
-
-AS_IF([test "x$enable_openpower_dbus_interfaces" == "xyes"], [
- YAML_DIRS="$YAML_DIRS org/open_power"
-])
-
-AC_ARG_ENABLE([ibm_dbus_interfaces],
- AS_HELP_STRING([--enable-ibm-dbus-interfaces], [Enable the IBM D-Bus interfaces]))
-
-AS_IF([test "x$enable_ibm_dbus_interfaces" == "xyes"], [
- YAML_DIRS="$YAML_DIRS com/ibm"
-])
-
-AM_CONDITIONAL([WANT_LIBPHOSPHOR_DBUS], [test "x$enable_libphosphor_dbus" != "xno"])
-
-AS_IF([test "x$enable_libphosphor_dbus" != "xno"], [
- AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++])
- AS_IF([test "x$SDBUSPLUSPLUS" == "x"],
- AC_MSG_ERROR([Cannot find sdbus++]))
-
- # Checks for libraries.
- AX_PKG_CHECK_MODULES([SYSTEMD], [], [libsystemd >= 221])
- AX_PKG_CHECK_MODULES([SDBUSPLUS], [], [sdbusplus])
-
- # Checks for typedefs, structures, and compiler characteristics.
- AX_CXX_COMPILE_STDCXX_17([noext])
- AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CFLAGS])
- AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
-
- # Checks for header files.
- old_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$SDBUSPLUS_CFLAGS $CPPFLAGS"
- AC_CHECK_HEADER(sdbusplus/server.hpp, ,[AC_MSG_ERROR([Could not find sdbusplus/server.hpp...sdbusplus package required])])
- CPPFLAGS="$old_CPPFLAGS"
-
- # Checks for library functions.
- LT_INIT([dlopen disable-static shared])
- LT_LIB_DLLOAD
-
- # Create configured output
- AC_CONFIG_FILES([Makefile.interfaces],
- [${srcdir}/generate_makefile.sh ${srcdir} "$yamlDirs" > Makefile.interfaces],
- [yamlDirs="$YAML_DIRS"])
- AC_CONFIG_FILES([phosphor-dbus-interfaces.pc])
-])
-AC_CONFIG_FILES([Makefile.yaml],
- [${srcdir}/generate_yaml_makefile.sh ${srcdir} "$yamlDirs" > Makefile.yaml],
- [yamlDirs="$YAML_DIRS"])
-
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
diff --git a/generate_makefile.sh b/generate_makefile.sh
deleted file mode 100755
index 036ec02..0000000
--- a/generate_makefile.sh
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/bin/sh
-
-cd $1
-
-toplevel_dirs=$2
-interfaces=`find $toplevel_dirs -name "*.interface.yaml"`
-
-for i in ${interfaces};
-do
- iface_path=`dirname $i`/`basename $i .interface.yaml`
- iface=`echo $iface_path | sed 's/\//./g'`
- cat <<MAKEFILE
-
-${i%.interface.yaml}/server.cpp: ${i} ${i%.interface.yaml}/server.hpp
- @mkdir -p \`dirname \$@\`
- \$(SDBUSPLUSPLUS) -r \$(srcdir) interface server-cpp ${iface} > \$@
-
-${i%.interface.yaml}/server.hpp: ${i}
- @mkdir -p \`dirname \$@\`
- \$(SDBUSPLUSPLUS) -r \$(srcdir) interface server-header ${iface} > \$@
-
-${i%.interface.yaml}/client.hpp: ${i}
- @mkdir -p \`dirname \$@\`
- \$(SDBUSPLUSPLUS) -r \$(srcdir) interface client-header ${iface} > \$@
-
-MAKEFILE
-
-done
-
-errors=`find $toplevel_dirs -name "*.errors.yaml"`
-
-for e in ${errors};
-do
- iface_path=`dirname $e`/`basename $e .errors.yaml`
- iface=`echo $iface_path | sed 's/\//./g'`
- cat <<MAKEFILE
-
-${e%.errors.yaml}/error.cpp: ${e} ${e%.errors.yaml}/error.hpp
- @mkdir -p \`dirname \$@\`
- \$(SDBUSPLUSPLUS) -r \$(srcdir) error exception-cpp ${iface} > \$@
-
-${e%.errors.yaml}/error.hpp: ${e}
- @mkdir -p \`dirname \$@\`
- \$(SDBUSPLUSPLUS) -r \$(srcdir) error exception-header ${iface} > \$@
-
-MAKEFILE
-
-done
-
-echo "libphosphor_dbus_cpp_SOURCES = \\"
-for i in ${interfaces};
-do
- echo " ${i%.interface.yaml}/server.cpp \\"
-done
-for e in ${errors};
-do
- echo " ${e%.errors.yaml}/error.cpp \\"
-done
-echo
-
-echo "libphosphor_dbus_hpp_SOURCES = \\"
-for i in ${interfaces};
-do
- echo " ${i%.interface.yaml}/server.hpp \\"
-done
-for e in ${errors};
-do
- echo " ${e%.errors.yaml}/error.hpp\\"
-done
-echo
-
-echo "libphosphor_dbus_client_hpp_SOURCES = \\"
-for i in ${interfaces};
-do
- echo " ${i%.interface.yaml}/client.hpp \\"
-done
-echo
-
-cat << MAKEFILE
-libphosphor_dbus.cpp: \$(libphosphor_dbus_cpp_SOURCES)
- cat \$^ > \$@
-
-libphosphor_dbus_client.hpp: \$(libphosphor_dbus_client_hpp_SOURCES)
- cat \$^ > \$@
-
-nobase_include_HEADERS = \$(libphosphor_dbus_hpp_SOURCES) \\
- \$(libphosphor_dbus_client_hpp_SOURCES)
-
-.PHONY: clean-dbus
-clean-dbus:
- for i in \$(libphosphor_dbus_cpp_SOURCES) \\
- \$(libphosphor_dbus_hpp_SOURCES) \\
- \$(libphosphor_dbus_client_hpp_SOURCES); \\
- do \\
- test -e \$\$i && rm \$\$i ; \\
- test -d \`dirname \$\$i\` && rmdir -p \`dirname \$\$i\` ; \\
- true; \\
- done
-MAKEFILE
diff --git a/generate_yaml_makefile.sh b/generate_yaml_makefile.sh
deleted file mode 100755
index 7767a1d..0000000
--- a/generate_yaml_makefile.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-cd $1
-
-toplevel_dirs=$2
-all_yaml=`find $toplevel_dirs -name "*.yaml"`
-
-echo "nobase_yaml_DATA = \\"
-for i in ${all_yaml};
-do
- echo " ${i} \\"
-done
-echo
diff --git a/phosphor-dbus-interfaces.pc.in b/phosphor-dbus-interfaces.pc.in
deleted file mode 100644
index c669aa7..0000000
--- a/phosphor-dbus-interfaces.pc.in
+++ /dev/null
@@ -1,12 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: phosphor-dbus-interfaces
-Description: Generated sdbusplus bindings for phosphor-dbus-interfaces.
-URL: https://github.com/openbmc/phosphor-dbus-interfaces
-Version: @VERSION@
-Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
-Libs: -L@libdir@ -lphosphor_dbus
-Cflags: -I@includedir@