Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Harri Mähönen committed Jan 27, 2010
0 parents commit 15758e8
Show file tree
Hide file tree
Showing 22 changed files with 1,678 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.libs
Empty file added AUTHORS
Empty file.
4 changes: 4 additions & 0 deletions COPYING
@@ -0,0 +1,4 @@
This material, including documentation and any related computer programs, is protected by copyright controlled by Nokia.
All rights are reserved. Copying, including reproducing, storing, adapting or translating,
any or all of this material requires the prior written consent of Nokia. This material also contains confidential information,
which may not be disclosed to others without the prior written consent of Nokia.
Empty file added ChangeLog
Empty file.
5 changes: 5 additions & 0 deletions Makefile.am
@@ -0,0 +1,5 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = $(NGF_LIBRARY_NAME) examples

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libngf-1.0.pc
Empty file added NEWS
Empty file.
Empty file added README
Empty file.
105 changes: 105 additions & 0 deletions autogen.sh
@@ -0,0 +1,105 @@
#!/bin/sh

ACLOCAL_FLAGS="$ACLOCAL_FLAGS"
DIE=0

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`autoconf' installed."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}

if [ -z "$LIBTOOL" ]; then
LIBTOOL=`which glibtool 2>/dev/null`
if [ ! -x "$LIBTOOL" ]; then
LIBTOOL=`which libtool`
fi
fi

(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtool' installed."
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
}

(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`automake' installed."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
NO_AUTOMAKE=yes
}

# if no automake, don't bother testing for aclocal
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: Missing \`aclocal'. The version of \`automake'"
echo "installed doesn't appear recent enough."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}

if test "$DIE" -eq 1; then
exit 1
fi

if [ -z "$*" -a "x$NOCONFIGURE" = "x" ]; then
echo "**Warning**: I am going to run \`configure' with no arguments."
echo "If you wish to pass any to it, please specify them on the"
echo \`$0\'" command line."
echo
fi

case $CC in
xlc )
am_opt=--include-deps;;
esac


if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
if test -z "$NO_LIBTOOLIZE" ; then
echo "Running libtoolize..."
libtoolize --force --copy
fi
fi

echo "Running aclocal $ACLOCAL_FLAGS ..."
aclocal $ACLOCAL_FLAGS || {
echo
echo "**Error**: aclocal failed. This may mean that you have not"
echo "installed all of the packages you need, or you may need to"
echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
echo "for the prefix where you installed the packages whose"
echo "macros were not found"
exit 1
}

if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi

echo "Running automake --gnu $am_opt ..."
automake --add-missing --gnu $am_opt ||
{ echo "**Error**: automake failed."; exit 1; }
echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }

if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile $PKG_NAME || exit 1
else
echo Skipping configure process.
fi
52 changes: 52 additions & 0 deletions configure.ac
@@ -0,0 +1,52 @@
AC_INIT(libngf/ngf.h)
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])

NGF_LIBRARY_NAME=libngf

NGF_MAJOR_VERSION=0
NGF_MINOR_VERSION=1
NGF_MICRO_VERSION=0

NGF_API_VERSION=1.0
AC_SUBST(NGF_API_VERSION)

NGF_LIBRARY_VERSION=0:1:0
AC_SUBST(NGF_LIBRARY_VERSION)

PACKAGE=$NGF_LIBRARY_NAME
AC_SUBST(NGF_LIBRARY_NAME)

NGF_VERSION=$NGF_MAJOR_VERSION.$NGF_MINOR_VERSION.$NGF_MICRO_VERSION
NGF_RELEASE=$NGF_MAJOR_VERSION.$NGF_MINOR_VERSION
AC_SUBST(NGF_VERSION)
AC_SUBST(NGF_RELEASE)

VERSION=$NGF_VERSION

AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)

AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_C_O
AM_PROG_LIBTOOL
AM_SANITY_CHECK

PKG_CHECK_MODULES(BASE, dbus-1 dbus-glib-1 glib-2.0)
AC_SUBST(BASE_LIBS)
AC_SUBST(BASE_CFLAGS)

pkgconfigdir="\$(libdir)/pkgconfig"
AC_SUBST(pkgconfigdir)

servicesdir="`pkg-config --variable=session_bus_services_dir dbus-1`"
AC_SUBST(servicesdir)

echo "
== $PACKAGE $VERSION ==

Compiler: ${CC}
CFLAGS: ${CFLAGS}
"

AC_OUTPUT(Makefile libngf-1.0.pc libngf/Makefile examples/Makefile)
152 changes: 152 additions & 0 deletions doc/doxygen.cfg
@@ -0,0 +1,152 @@
PROJECT_NAME = libngf
PROJECT_NUMBER =
OUTPUT_DIRECTORY = ./doc
OUTPUT_LANGUAGE = English
DISABLE_INDEX = NO
EXTRACT_ALL = YES
EXTRACT_PRIVATE = NO
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
HIDE_UNDOC_RELATIONS = YES
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = YES
ALWAYS_DETAILED_SEC = NO
FULL_PATH_NAMES = YES
STRIP_FROM_PATH =
INTERNAL_DOCS = NO
CLASS_DIAGRAMS = YES
SOURCE_BROWSER = NO
INLINE_SOURCES = NO
STRIP_CODE_COMMENTS = YES
CASE_SENSE_NAMES = NO
VERBATIM_HEADERS = YES
SHOW_INCLUDE_FILES = YES
JAVADOC_AUTOBRIEF = YES
INHERIT_DOCS = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
TAB_SIZE = 8
ENABLED_SECTIONS =

#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------

QUIET = YES
WARNINGS = YES
WARN_IF_UNDOCUMENTED = YES
WARN_FORMAT = "File: $file (row: $line) $text"
WARN_LOGFILE = "doxygen.log"

#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------

FILE_VERSION_FILTER = "git log --pretty=format:%H -n 1"
INPUT = ./libngf/ ./doc/src
FILE_PATTERNS = *.h *.dox
RECURSIVE = YES
#EXCLUDE =
EXCLUDE_PATTERNS = *_p.h
#IMAGE_PATH = ./doc/src/images
INPUT_FILTER =

#---------------------------------------------------------------------------
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------

ALPHABETICAL_INDEX = YES
COLS_IN_ALPHA_INDEX = 5
#IGNORE_PREFIX =

#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------

GENERATE_TESTLIST = YES
GENERATE_HTML = YES
HTML_OUTPUT = html
#HTML_HEADER = doc/header.html
#HTML_FOOTER = doc/footer.html
#HTML_STYLESHEET = doc/dui.css
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = NO

#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------

GENERATE_LATEX = NO
#LATEX_OUTPUT = latex
#COMPACT_LATEX = NO
#PAPER_TYPE = a4wide
#EXTRA_PACKAGES =
#LATEX_HEADER =
#PDF_HYPERLINKS = NO
#LATEX_BATCHMODE = NO

#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------

GENERATE_RTF = NO
#RTF_OUTPUT = rtf
#COMPACT_RTF = NO
#RTF_HYPERLINKS = NO

#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------

GENERATE_MAN = NO
#MAN_OUTPUT = man
#MAN_EXTENSION = .3

#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------

ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = NO
SEARCH_INCLUDES = YES
INCLUDE_PATH =
PREDEFINED =
EXPAND_ONLY_PREDEF = YES

#---------------------------------------------------------------------------
# Configuration::addtions related to external references
#---------------------------------------------------------------------------

#TAGFILES = qt.tag
# GENERATE_TAGFILE = YES
ALLEXTERNALS = NO
#PERL_PATH = /scratchbox/tools/bin

#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------

HAVE_DOT = NO
#CLASS_GRAPH = YES
#COLLABORATION_GRAPH = YES
#INCLUDE_GRAPH = YES
#GRAPHICAL_HIERARCHY = YES
#DOT_PATH = /scratchbox/devkits/doctools/bin/

#---------------------------------------------------------------------------
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------

SEARCHENGINE = NO
#CGI_NAME = search.cgi
#CGI_URL =
#DOC_URL =
#DOC_ABSPATH =
#BIN_ABSPATH = /usr/local/bin/
# EXT_DOC_PATHS =

ALIASES += internal="\cond INTERNAL"
ALIASES += internal_end="\endcond"

ALIASES += reimp="\cond REIMPLEMENTATION"
ALIASES += reimp_end="\endcond"
16 changes: 16 additions & 0 deletions doc/src/mainpage.dox
@@ -0,0 +1,16 @@
/*! \mainpage libngf - Non-Graphic Feedback client library
*
* \section intro_sec Introduction
*
* libngf is a client library for accessing non-graphical events.
*
* \section getting_started_sec Getting started
*
* \section features_sec Core features
*
* \section api_reference_sec API reference
*
* - \link client.h Client API \endlink
* - \link ngf.h Pre-defined events \endlink
*/

8 changes: 8 additions & 0 deletions examples/Makefile.am
@@ -0,0 +1,8 @@
INCLUDES = -I$(top_srcdir)

bin_PROGRAMS = test-client

test_client_SOURCES = test-client.c
test_client_CPPFLAGS = $(BASE_CFLAGS)
test_client_LDADD = $(BASE_LIBS) -L../libngf/.libs/ -lngf-1.0

0 comments on commit 15758e8

Please sign in to comment.