class

Bootstrap::PkgConfigCommand

Inherits Bootstrap::CLI < Reference < Object

Minimal pkg-config replacement for Crystal's libssl/libcrypto probes.

Constants

DEBUG_ENV = "BQ2_PKG_CONFIG_DEBUG"
INCLUDE_DIRS = ["/usr/include", "/opt/sysroot/include"]
LIB_DIRS = ["/usr/lib", "/usr/lib64", "/opt/sysroot/lib", "/opt/sysroot/lib64"]
PKG_LIBS = {"libssl" => ["-lssl", "-lcrypto"], "openssl" => ["-lssl", "-lcrypto"], "libcrypto" => ["-lcrypto"], "crypto" => ["-lcrypto"], "bdw-gc" => ["-lgc"], "libpcre2-8" => ["-lpcre2-8"]}
PKG_VARIABLES = {"prefix" => "/usr", "includedir" => "/usr/include", "libdir" => "/usr/lib"}
PKG_VERSIONS = {"libssl" => SysrootBuilder::DEFAULT_LIBRESSL, "openssl" => SysrootBuilder::DEFAULT_LIBRESSL, "libcrypto" => SysrootBuilder::DEFAULT_LIBRESSL, "crypto" => SysrootBuilder::DEFAULT_LIBRESSL, "bdw-gc" => SysrootBuilder::DEFAULT_BDWGC, "libpcre2-8" => SysrootBuilder::DEFAULT_PCRE2}
VERSION = "0.29.2"

Class methods

command_line_override

Return the canonical command name for the pkg-config shim.

Source
run(args : Array(String), _command_name : String) : Int32

Run the pkg-config shim with args and return a shell-style exit code.

Source
summary

Summarize the pkg-config shim for help output.

Source