Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dew committed Feb 17, 2015
1 parent eec75a0 commit 12ad684
Show file tree
Hide file tree
Showing 49 changed files with 6,001 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions COPYING
@@ -0,0 +1 @@
<Place your desired license here.>
1 change: 1 addition & 0 deletions ChangeLog
@@ -0,0 +1 @@

370 changes: 370 additions & 0 deletions INSTALL

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Makefile.am
@@ -0,0 +1 @@
SUBDIRS=libprotobuf2jansson include testsuite
1 change: 1 addition & 0 deletions NEWS
@@ -0,0 +1 @@
Sample NEWS file for protobuf2jansson project.
16 changes: 16 additions & 0 deletions README
@@ -0,0 +1,16 @@
This is a very early version of a library which converts a protobuf serialised
message and a .desc file describing the message format into a Jansson JSON
object, which can be serialised to a string.

This avoid recompiling a C executable each time you make minor changes to .proto
files (assuming you need to output JSON).


Configure with:

CC=clang ./configure

unless you have gcc-4.9 or later, until I find some answers to:

http://stackoverflow.com/questions/28557945/how-to-make-autotools-generated-configure-enforce-availability-of-c11s-gener
http://stackoverflow.com/questions/28558206/make-autotools-add-std-c11-to-cflags
32 changes: 32 additions & 0 deletions configure.ac
@@ -0,0 +1,32 @@
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(protobuf2jansson, 1.0)
AC_PROG_CC

PKG_CHECK_MODULES([jansson], [jansson >= 2.7])

AC_CANONICAL_SYSTEM

dnl Initialize automake
AM_INIT_AUTOMAKE

dnl this allows us specify individual liking flags for each target
AM_PROG_CC_C_O

dnl Initialize Libtool
LT_INIT

dnl Check if Libtool is present
dnl Libtool is used for building share libraries
AC_PROG_LIBTOOL

AC_PROG_CC
CFLAGS+=" -std=c11 -O0 -g"

AC_CONFIG_FILES(Makefile
testsuite/Makefile
libprotobuf2jansson/Makefile
include/Makefile)

AC_OUTPUT

0 comments on commit 12ad684

Please sign in to comment.