Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 2 KB

README.md

File metadata and controls

37 lines (26 loc) · 2 KB

pkg-config

pkg-config is a script to make putting together all the build flags when compiling/linking a lot easier. Visit releases for prebuilt binaries. Extract archive and add bin directory in your PATH environment variable.

Building

  1. Install meson build system. Then install any one of these c compiler: msvc, gcc, mingw or clang.

  2. Now recursively clone pkg-config repository.

git clone https://github.com/lua-batteries/pkg-config --recursive --depth 1
cd pkg-config
  1. Now setup pkg-config using meson. Use --prefix flag to specify installation directory. For more meson options see meson_options.txt.
meson setup build --buildtype release --warnlevel 0 --default-library static --prefix c:/pkg-config -Dstatic-glib=true
  1. Now install pkg-config using meson. The skipped subprojects are not needed at runtime if you still want to keep them, then remove --skip-subprojects flag.
meson install -C build --skip-subprojects "glib,libffi,pcre2,proxy-libintl,zlib"
  1. Now pkg-config should be installed in your prefix directory. Now add $PREFIX/bin in your PATH environment variable. You can further read more information about building through meson from meson's quick guide.