summaryrefslogtreecommitdiff
path: root/json-glib
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-12-02 10:46:57 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2013-12-02 11:10:38 +0000
commit3c0ec689cdba1379791da3bcc1ad07c46416ac9a (patch)
treebb2e2fb18f08f54ffcd91a52d4e533a6dc38dd67 /json-glib
parent287628bc003ae3d3e1893898c5e1a8959f895f52 (diff)
downloadjson-glib-3c0ec689cdba1379791da3bcc1ad07c46416ac9a.tar.gz
build: Move the pkg-config file under json-glib
The pkg-config file for a library is tied to the source, so it should not be in the top-level of the project.
Diffstat (limited to 'json-glib')
-rw-r--r--json-glib/Makefile.am10
-rw-r--r--json-glib/json-glib.pc.in11
2 files changed, 21 insertions, 0 deletions
diff --git a/json-glib/Makefile.am b/json-glib/Makefile.am
index 700310f..09786cc 100644
--- a/json-glib/Makefile.am
+++ b/json-glib/Makefile.am
@@ -98,6 +98,16 @@ jsoninclude_DATA = \
EXTRA_DIST += json-version.h.in json-glib.h json-version.h
+pcfiles = json-glib-1.0.pc
+
+json-glib-1.0.pc: json-glib.pc
+ $(AM_V_GEN)cp -f $< $@
+
+pkgconfig_DATA = $(pcfiles)
+pkgconfigdir = $(libdir)/pkgconfig
+CLEANFILES += $(pcfiles)
+EXTRA_DIST += json-glib.pc.in
+
TESTS_ENVIRONMENT = srcdir="$(srcdir)" json_all_c_sources="$(source_c)"
if OS_LINUX
diff --git a/json-glib/json-glib.pc.in b/json-glib/json-glib.pc.in
new file mode 100644
index 0000000..1a86ead
--- /dev/null
+++ b/json-glib/json-glib.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: JSON-GLib
+Description: JSON Parser for GLib
+Version: @VERSION@
+Libs: -L${libdir} -ljson-glib-1.0
+Cflags: -I${includedir}/json-glib-1.0
+Requires: gobject-2.0 gio-2.0