mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00
c: supports pkg-config
About pkg-config: From http://www.freedesktop.org/wiki/Software/pkg-config pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test.c `pkg-config --libs --cflags glib-2.0` for instance, rather than hard-coding values on where to find glib (or other libraries). It is language-agnostic, so it can be used for defining the location of documentation tools, for instance. pkg-config is a widely used build helper tool. Major build tools such as GNU Autoconf, CMake and so on support pkg-config. MessagePack users can build their software more easily.
This commit is contained in:
parent
3399148d75
commit
ed6faf4e65
@ -13,6 +13,9 @@ DOC_FILES = \
|
|||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
$(DOC_FILES)
|
$(DOC_FILES)
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = msgpack.pc
|
||||||
|
|
||||||
doxygen:
|
doxygen:
|
||||||
./preprocess clean
|
./preprocess clean
|
||||||
cd src && $(MAKE) doxygen
|
cd src && $(MAKE) doxygen
|
||||||
|
@ -93,6 +93,7 @@ AC_SUBST(VERSION_MINOR, $minor)
|
|||||||
|
|
||||||
|
|
||||||
AC_OUTPUT([Makefile
|
AC_OUTPUT([Makefile
|
||||||
|
msgpack.pc
|
||||||
src/Makefile
|
src/Makefile
|
||||||
src/msgpack/version.h
|
src/msgpack/version.h
|
||||||
test/Makefile])
|
test/Makefile])
|
||||||
|
10
cpp/msgpack.pc.in
Normal file
10
cpp/msgpack.pc.in
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: MessagePack
|
||||||
|
Description: Binary-based efficient object serialization library
|
||||||
|
Version: @VERSION@
|
||||||
|
Libs: -L${libdir} -lmsgpack
|
||||||
|
Cflags: -I${includedir}
|
Loading…
x
Reference in New Issue
Block a user