From: Andrea Zagli Date: Sun, 13 Mar 2016 08:34:36 +0000 (+0100) Subject: Initial import. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=476dfb7a6e2c20203b973a85e193733e54abd0c4;p=libzakgflow Initial import. --- 476dfb7a6e2c20203b973a85e193733e54abd0c4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb59166 --- /dev/null +++ b/.gitignore @@ -0,0 +1,53 @@ +compile +*~ +*.rpath +*.pot +*.mo +*.gmo +*.o +*.lo +*.la +*.bak +*.stamp +*.tar.gz +*.pc +*.sed +*.sin +*.header +.libs +.deps +ABOUT-NLS +INSTALL +COPYING +Makefile +Makefile.in +Makefile.in.in +Makevars +aclocal.m4 +autom4te.cache/ +config.guess +config.log +config.sub +config.h.in +configure +depcomp +gtk-doc.make +install-sh +ltmain.sh +m4/ +missing +config.h +config.status +docs/reference/version.xml +docs/reference/html/ +docs/reference/xml/ +libtool +stamp-h1 +tests/test +POTFILES +mkinstalldirs +stamp-it +intltool-* +Rules-quot +*.exe +*.csv diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..ad1de0f --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Andrea Zagli diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..f1f11c6 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,29 @@ +SUBDIRS = po src tests + +ACLOCAL_AMFLAGS = -I m4 + +EXTRA_DIST = libzakgflow.pc.in + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libzakgflow.pc + +distclean-local: + if test "$(srcdir)" = "."; then :; else \ + rm -f ChangeLog; \ + fi + +ChangeLog: + @echo Creating $@ + @if test -d "$(srcdir)/.git"; then \ + (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat -M -C --name-status --date=short --no-color) | fmt --split-only > $@.tmp \ + && mv -f $@.tmp $@ \ + || ($(RM) $@.tmp; \ + echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ + (test -f $@ || echo git-log is required to generate this file >> $@)); \ + else \ + test -f $@ || \ + (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ + echo A git checkout and git-log is required to generate this file >> $@); \ + fi + +.PHONY: ChangeLog diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..83f5de2 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,44 @@ +#!/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 +} + +PKG_NAME=`autoconf --trace 'AC_INIT:$1' configure.ac` + +if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then + echo "*** WARNING: I am going to run \`configure' with no arguments." >&2 + echo "*** If you wish to pass any to it, please specify them on the" >&2 + echo "*** \`$0\' command line." >&2 + echo "" >&2 +fi + +set -x +aclocal --install || exit 1 +glib-gettextize --force --copy || exit 1 +#gtkdocize --copy || exit 1 +intltoolize --force --copy --automake || exit 1 +autoreconf --verbose --force --install -Wno-portability || 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 + +{ set +x; } 2>/dev/null diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..751dee1 --- /dev/null +++ b/configure.ac @@ -0,0 +1,86 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.65) +AC_INIT([libzakgflow], [0.0.1], [azagli@libero.it]) +AC_CONFIG_SRCDIR([src/libzakgflow.h]) +AC_CONFIG_HEADER([config.h]) + +AM_INIT_AUTOMAKE(-Wall) + +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) + +AM_MAINTAINER_MODE + +AC_CONFIG_MACRO_DIR([m4]) + +AC_CANONICAL_SYSTEM + +LT_INIT + +AC_LIBTOOL_WIN32_DLL + +# Checks for programs. +AC_PROG_CC +AC_PROG_CXX +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_PROG_LIBTOOL +AC_PROG_RANLIB + +GTK_DOC_CHECK(1.0) +IT_PROG_INTLTOOL + +dnl ****************************** +dnl Translations +dnl ****************************** +GETTEXT_PACKAGE=libzakgflow +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", + [The prefix for our gettext translation domains.]) +AM_GLIB_GNU_GETTEXT + +# Checks for libraries. +PKG_CHECK_MODULES(ZAKGFLOW, [glib-2.0 >= 2.36 + gobject-2.0 >= 2.36 + gmodule-2.0 >= 2.0.0 + libxml-2.0 >= 2.0.0 + libzakutils]) + +AC_SUBST(ZAKGFLOW_CFLAGS) +AC_SUBST(ZAKGFLOW_LIBS) + +# Checks for header files. +AC_HEADER_STDC + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST + +# Checks for library functions. + +# Checks for library functions. + +dnl ****************************** +dnl Check for Operating System +dnl ****************************** + +platform_win32=no + +case "$host" in +*-mingw*) + platform_win32=yes + ;; +esac + +AM_CONDITIONAL(PLATFORM_WIN32, [test $platform_win32 = yes]) + +# Output files +AC_CONFIG_FILES([ + libzakgflow.pc + Makefile + po/Makefile.in + src/Makefile + tests/Makefile +]) +AC_OUTPUT diff --git a/libzakgflow.pc.in b/libzakgflow.pc.in new file mode 100644 index 0000000..abeb561 --- /dev/null +++ b/libzakgflow.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +modulesdir=@libdir@/@PACKAGE@/modules + +Name: @PACKAGE_NAME@ +Description: Class to manage workflows. +Version: @PACKAGE_VERSION@ +Requires: glib-2.0 >= 2.36 gobject-2.0 gmodule-2.0 libxml-2.0 libzakutils +Libs: -L${libdir} -lzakgflow +Cflags: -I${includedir} diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..e69de29 diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..7e2a93f --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,25 @@ +LIBS = $(ZAKGFLOW_LIBS) + +AM_CPPFLAGS = $(ZAKGFLOW_CFLAGS) \ + -DLOCALEDIR=\"$(localedir)\" \ + -DMODULESDIR=\""$(libdir)/$(PACKAGE)/modules"\" \ + -DG_LOG_DOMAIN=\"ZakGFlow\" + +lib_LTLIBRARIES = libzakgflow.la + +libzakgflow_la_SOURCES = \ + commons.c + +libzakgflow_la_LDFLAGS = -no-undefined + +libzakgflow_include_HEADERS = \ + libzakgflow.h \ + commons.h + +libzakgflow_includedir = $(includedir)/libzakgflow + +install-exec-hook: + mkdir -p "$(libdir)/$(PACKAGE)/modules" + +uninstall-hook: + rm -rf "$(libdir)/$(PACKAGE)" diff --git a/src/commons.c b/src/commons.c new file mode 100644 index 0000000..9503714 --- /dev/null +++ b/src/commons.c @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2016 Andrea Zagli + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifdef HAVE_CONFIG_H + #include +#endif + +#include + +#ifdef G_OS_WIN32 + #include +#endif + +#include "commons.h" diff --git a/src/commons.h b/src/commons.h new file mode 100644 index 0000000..1c52810 --- /dev/null +++ b/src/commons.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2016 Andrea Zagli + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _ZAK_GFLOW_COMMONS_H_ +#define _ZAK_GFLOW_COMMONS_H_ + +#include + + +G_BEGIN_DECLS + + + + +G_END_DECLS + + +#endif /* _ZAK_GFLOW_COMMONS_H_ */ diff --git a/src/libzakgflow.h b/src/libzakgflow.h new file mode 100644 index 0000000..3f1ab4d --- /dev/null +++ b/src/libzakgflow.h @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2016 Andrea Zagli + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __LIBZAKGFLOW_H__ +#define __LIBZAKGFLOW_H__ + + +#include + + +#endif /* __LIBZAKGFLOW_H__ */ diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..e1b5b22 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,11 @@ +AM_CPPFLAGS = $(WARN_CFLAGS) \ + $(DISABLE_DEPRECATED_CFLAGS) \ + $(ZAKGFLOW_CFLAGS) \ + -I$(top_srcdir)/src + +LIBS = $(ZAKGFLOW_LIBS) \ + -export-dynamic + +LDADD = $(top_builddir)/src/libzakgflow.la + +noinst_PROGRAMS =