Skip to content

Commit

Permalink
First checkin of libklbars library
Browse files Browse the repository at this point in the history
  • Loading branch information
dheitmueller committed Jan 13, 2017
0 parents commit d3c014f
Show file tree
Hide file tree
Showing 13 changed files with 3,575 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
*.o
.deps/
.libs/
Makefile.in
Makefile
aclocal.m4
autom4te.cache/
compile
config.guess
config.log
config.status
config.sub
configure
depcomp
install-sh
libtool
ltmain.sh
m4/
missing
libklbars.la
src/*.lo
doxygen/html
7 changes: 7 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src
EXTRA_DIST = doxygen/libklbars.doxyconf doxygen/include

docs:
cd doxygen && doxygen libklbars.doxyconf

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# LICENSE

LGPL-V2.1
See the included lgpl-2.1.txt for the complete license agreement.

## Dependencies

## Compilation
./autogen.sh --build
./configure --enable-shared=no
make

## Dependencies
* none

## Making Documentation:
To make doxygen documentation in the doxygen folder, run the following command:

make docs

To view the documentation, cd into the doxygen/html/ directory and open the index.html file in a browser window.
23 changes: 23 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

case "$1" in
--clean)
make distclean
rm -rf autom4te.cache m4
rm -f aclocal.m4 config.log config.status configure
rm -f depcomp install-sh Makefile Makefile.in missing
rm -f config.guess config.sub libtool ltmain.sh
rm -f src/Makefile.in
;;
--build)
aclocal
autoconf
autoreconf -i
automake --add-missing
;;
*)
echo "$0 --clean --build"
exit 1
;;
esac

59 changes: 59 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_INIT([libklbars], [1.0], [[email protected]])
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST

# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
if test `uname -s` = "Darwin"
then
CFLAGS+=" -I/usr/local/include "
LDFLAGS+="-L/usr/local/lib "
fi

# We always build with -fPIC in case our static libraries end up
# being linked into a consumer's shared library
AC_MSG_CHECKING(whether fPIC compiler option is accepted)
SAVED_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fPIC -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return 0;])],
[AC_MSG_RESULT(yes)
CFLAGS="$SAVED_CFLAGS -fPIC"],
[AC_MSG_RESULT(no)
CFLAGS="$SAVED_CFLAGS"])

AC_PROG_RANLIB
AC_PROG_LIBTOOL

# Checks for header files.
AC_CHECK_HEADERS([stdint.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UINT8_T

# Checks for library functions.
AC_CHECK_FUNCS([memset strrchr])

AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT

# Add debug support
AC_ARG_ENABLE(debug,
AS_HELP_STRING(
[--enable-debug],
[enable debugging, default: no]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],
[debug=false])
AM_CONDITIONAL(DEBUG, test x"$debug" = x"true")
AM_COND_IF(DEBUG,
AC_DEFINE(DEBUG, 1, [Define to 0 if this is a release build]),
AC_DEFINE(DEBUG, 0, [Define to 1 or higher if this is a debug build]))
Binary file added doxygen/include/kl-logo-doxygen_200x55.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions doxygen/include/mainpage.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
\mainpage LibKLVanc Documentation.

TODO: Enter description of what the tool does.

*/

Loading

0 comments on commit d3c014f

Please sign in to comment.