Add pkg-config file for libjq
pkg-config is a common interface to resolve build details. It will become easier to incorporate libjq in other projects by providing this interface.
This commit is contained in:
1 parent
b52fc1043b
commit
3c4fcb1594
4 files changed
+17
-1
No files matched your search
@@ -18,6 +18,7 @@ jq.1
|
|||||||
|
|
||||||
# Generated source
|
# Generated source
|
||||||
src/builtin.inc
|
src/builtin.inc
|
||||||
|
*.pc
|
||||||
|
|
||||||
# Autotools junk
|
# Autotools junk
|
||||||
.libs
|
.libs
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ DOC_FILES = docs/content docs/public docs/templates docs/site.yml \
|
|||||||
EXTRA_DIST = $(DOC_FILES) $(man_MANS) $(TESTS) $(TEST_LOG_COMPILER) \
|
EXTRA_DIST = $(DOC_FILES) $(man_MANS) $(TESTS) $(TEST_LOG_COMPILER) \
|
||||||
jq.1.prebuilt jq.spec src/lexer.c src/lexer.h src/parser.c \
|
jq.1.prebuilt jq.spec src/lexer.c src/lexer.h src/parser.c \
|
||||||
src/parser.h src/version.h src/builtin.jq scripts/version \
|
src/parser.h src/version.h src/builtin.jq scripts/version \
|
||||||
|
libjq.pc \
|
||||||
tests/base64.test tests/jq-f-test.sh tests/jq.test \
|
tests/base64.test tests/jq-f-test.sh tests/jq.test \
|
||||||
tests/modules/a.jq tests/modules/b/b.jq tests/modules/c/c.jq \
|
tests/modules/a.jq tests/modules/b/b.jq tests/modules/c/c.jq \
|
||||||
tests/modules/c/d.jq tests/modules/data.json \
|
tests/modules/c/d.jq tests/modules/data.json \
|
||||||
@@ -194,6 +195,9 @@ EXTRA_DIST = $(DOC_FILES) $(man_MANS) $(TESTS) $(TEST_LOG_COMPILER) \
|
|||||||
docdir = ${datadir}/doc/${PACKAGE}
|
docdir = ${datadir}/doc/${PACKAGE}
|
||||||
dist_doc_DATA = README.md COPYING AUTHORS README
|
dist_doc_DATA = README.md COPYING AUTHORS README
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = libjq.pc
|
||||||
|
|
||||||
RELEASE ?= 1
|
RELEASE ?= 1
|
||||||
rpm: dist jq.spec
|
rpm: dist jq.spec
|
||||||
@echo "Packaging jq as an RPM ..."
|
@echo "Packaging jq as an RPM ..."
|
||||||
|
|||||||
+1
-1
@@ -279,6 +279,6 @@ AM_CONDITIONAL([BUILD_ONIGURUMA], [test "x$build_oniguruma" = xyes])
|
|||||||
AC_SUBST([BUNDLER], ["$bundle_cmd"])
|
AC_SUBST([BUNDLER], ["$bundle_cmd"])
|
||||||
|
|
||||||
AC_CONFIG_MACRO_DIR([config/m4])
|
AC_CONFIG_MACRO_DIR([config/m4])
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile libjq.pc])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: libjq
|
||||||
|
URL: https://stedolan.github.io/jq/
|
||||||
|
Description: Library to process JSON using a query language
|
||||||
|
Version: @VERSION@
|
||||||
|
Libs: -L${libdir} -ljq
|
||||||
|
Cflags: -I${includedir}
|
||||||
Reference in new issue
Block a user