ronin.pkg_config

class ronin.pkg_config.Package(name, command=None, path=None, static=False)

Bases: ronin.extensions.Extension

A library that is configured by the external pkg-config tool.

Supports gcc-like executors.

Parameters:
  • name (str or FunctionType) – package name
  • command (str or FunctionType) – pkg-config command; defaults to the context’s pkg_config.pkg_config_command
  • path (str or FunctionType) – pkg-config path; defaults to the context’s pkg_config.path
  • static (bool) – set to True to use static library linking
apply_to_executor_gcc_compile(executor)
ronin.pkg_config.configure_pkg_config(pkg_config_command=None, pkg_config_path=None)

Configures the current context’s pkg-config support.

Parameters:
  • pkg_config_command (str or FunctionType) – pkg-config command; defaults to “pkg-config”
  • pkg_config_path (str or FunctionType) – pkg-config path