Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add pkg-config support

Thanks to Sean Middleditch for contributing.
  • Loading branch information...
commit aeb5b481c95c6bd71e3025a7965861ab82a643b8 1 parent f5202be
Petri Lehtinen authored
Showing with 15 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +3 −0  Makefile.am
  3. +1 −0  configure.ac
  4. +10 −0 jansson.pc.in
1  .gitignore
View
@@ -22,3 +22,4 @@ missing
*.la
stamp-h1
*.pyc
+*.pc
3  Makefile.am
View
@@ -1,6 +1,9 @@
EXTRA_DIST = CHANGES LICENSE README.rst
SUBDIRS = doc src test
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = jansson.pc
+
distcheck-hook:
sphinx-build -b html -W \
$(distdir)/doc \
1  configure.ac
View
@@ -19,6 +19,7 @@ AC_PROG_LIBTOOL
# Checks for library functions.
AC_CONFIG_FILES([
+ jansson.pc
Makefile
doc/Makefile
src/Makefile
10 jansson.pc.in
View
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=${prefix}/include
+
+Name: Jansson
+Description: Library for encoding, decoding and manipulating JSON data
+Version: @VERSION@
+Libs: -L${libdir} -ljansson
+Cflags: -I${includedir}
Please sign in to comment.
Something went wrong with that request. Please try again.