pkgconfig

# tree hiredis/

hiredis/
└── usr
└── local
├── include
│   └── hiredis
│   ├── adapters
│   │   ├── ae.h
│   │   ├── glib.h
│   │   ├── ivykis.h
│   │   ├── libevent.h
│   │   ├── libev.h
│   │   ├── libuv.h
│   │   ├── macosx.h
│   │   └── qt.h
│   ├── async.h
│   ├── hiredis.h
│   ├── read.h
│   └── sds.h
└── lib
├── libhiredis.a
├── libhiredis.so.0.14
└── pkgconfig└── hiredis.pc

 

when cross-compile hiredis package, we can find the pkgconfig dir 

under pkgconfig dir,  we can get hiredis.pc content :

 

cat hiredis/usr/local/lib/pkgconfig/hiredis.pc
prefix=/home/vmuer/work/git/hiredis/usr/local
exec_prefix=${prefix}
libdir=/home/vmuer/work/git/hiredis/usr/local/lib
includedir=/home/vmuer/work/git/hiredis/usr/local/include/hiredis

Name: hiredis
Description: Minimalistic C client library for Redis.
Version: 0.14.0
Libs: -L${libdir} -lhiredis
Cflags: -I${includedir} -D_FILE_OFFSET_BITS=64

posted @ 2019-10-15 16:20  嵌入式实操  阅读(237)  评论(0编辑  收藏  举报