Add the archs variable in the pkg-config file (#1828)

Usage:
 $ pkg-config --variable=archs capstone
 arm aarch64 m68k mips powerpc sparc systemz x86
 xcore tms320c64x m680x evm riscv mos65xx wasm bpf

Co-authored-by: pancake <pancake@nopcode.org>
This commit is contained in:
pancake 2022-01-25 02:15:59 +01:00 committed by GitHub
parent 50a41e8670
commit a7c1ecde05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -609,4 +609,5 @@ define generate-pkgcfg
echo 'archive=$${libdir}/libcapstone.a' >> $(PKGCFGF)
echo 'Libs: -L$${libdir} -lcapstone' >> $(PKGCFGF)
echo 'Cflags: -I$${includedir}' >> $(PKGCFGF)
echo 'archs: ${CAPSTONE_ARCHS}' >> $(PKGCFGF)
endef

View File

@ -10,3 +10,4 @@ URL: http://www.capstone-engine.org
archive=${libdir}/libcapstone.a
Libs: -L${libdir} -lcapstone
Cflags: -I${includedir}
archs=@CAPSTONE_ARCHITECTURES@