pkgconfig

可紊 提交于 2019-12-01 10:05:06

# 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!