From e165344ab55e98e27e13f7024b6143aa84518489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 9 Jun 2021 20:12:59 +0800 Subject: Add support for Autotools though the resulting library is not right yet. --- .gitignore | 24 ++++++++++++++++++++++++ Makefile.am | 15 +++++++++++++++ aarch64-linux-android-configure | 8 ++++++++ configure.ac | 8 ++++++++ i686-w64-mingw32-configure | 6 ++++++ x86_64-pc-linux-gnu-configure | 4 ++++ 6 files changed, 65 insertions(+) create mode 100644 Makefile.am create mode 100755 aarch64-linux-android-configure create mode 100644 configure.ac create mode 100755 i686-w64-mingw32-configure create mode 100755 x86_64-pc-linux-gnu-configure diff --git a/.gitignore b/.gitignore index bb18bf8..9378f72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,28 @@ +*~ +*.la +*.lo +*.o *.swp +.deps +.libs CMakeLists.txt.user +Makefile +Makefile.am.user* +Makefile.in +aclocal.m4 +ar-lib +autom4te.cache +autoscan-2.69.log build* +compile +config.* +configure +configure.scan +depcomp html +install-sh +libtool +ltmain.sh +m4 +missing +stamp-h1 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..67425a7 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,15 @@ +lib_LTLIBRARIES = libqicclient.la +libqicclient_la_SOURCES = \ + catalog.cxx \ + ord.cxx \ + member.cxx \ + admin.cxx \ + client.cxx +libqicclient_la_CPPFLAGS = $(QT_CFLAGS) +libqicclient_la_LDFLAGS = $(QT_LIBS) +pkginclude_HEADERS = \ + qicclient/catalog.hxx \ + qicclient/ord.hxx \ + qicclient/member.hxx \ + qicclient/admin.hxx \ + qicclient/client.hxx diff --git a/aarch64-linux-android-configure b/aarch64-linux-android-configure new file mode 100755 index 0000000..5594ce3 --- /dev/null +++ b/aarch64-linux-android-configure @@ -0,0 +1,8 @@ +#!/bin/sh +export TOOLCHAIN=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64 +export TARGET=aarch64-linux-android +export API=21 +export CC=$TOOLCHAIN/bin/$TARGET$API-clang +export PREFIX=$TOOLCHAIN/sysroot/usr +export CFLAGS="$CFLAGS -g" +./configure --host=$TARGET --prefix=$PREFIX --libdir=$PREFIX/lib/$TARGET/$API --disable-static diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..674a490 --- /dev/null +++ b/configure.ac @@ -0,0 +1,8 @@ +AC_INIT([qicclient], [0.0], [pt@darapsa.co.id]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AC_PROG_CXX +AC_CONFIG_FILES([Makefile]) +PKG_CHECK_MODULES([QT], [Qt5Core]) +AM_PROG_AR +LT_INIT +AC_OUTPUT diff --git a/i686-w64-mingw32-configure b/i686-w64-mingw32-configure new file mode 100755 index 0000000..11c3b58 --- /dev/null +++ b/i686-w64-mingw32-configure @@ -0,0 +1,6 @@ +#!/bin/sh +export TARGET=i686-w64-mingw32 +export CC=$TARGET-gcc +export CPPFLAGS="$CPPFLAGS -DDEBUG" +export CFLAGS="$CFLAGS -g" +./configure --host=$TARGET --prefix=/usr/$TARGET/usr diff --git a/x86_64-pc-linux-gnu-configure b/x86_64-pc-linux-gnu-configure new file mode 100755 index 0000000..8499b0b --- /dev/null +++ b/x86_64-pc-linux-gnu-configure @@ -0,0 +1,4 @@ +#!/bin/sh +export CPPFLAGS="$CPPFLAGS -DDEBUG" +export CFLAGS="$CFLAGS -g" +./configure --libdir=/usr/local/lib64 --disable-static -- cgit v1.2.3