You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I find the existing methods for loading third-party libraries to be a bit verbose and tightly coupled to the file system. I would like to propose a new pragma that allows dependencies to be linked using pkg-config. It would be something like:
#pragma cling pkg-config(libname)
This picks up the include directories, lib directories, lib names, other flags, etc. in a single pragma. Also, it doesn't have any hardcoded paths. As long as PKG_CONFIG_PATH is defined in the environment where the .pc files are found, everything will be found.
Hello! I find the existing methods for loading third-party libraries to be a bit verbose and tightly coupled to the file system. I would like to propose a new pragma that allows dependencies to be linked using pkg-config. It would be something like:
#pragma cling pkg-config(libname)
This picks up the include directories, lib directories, lib names, other flags, etc. in a single pragma. Also, it doesn't have any hardcoded paths. As long as
PKG_CONFIG_PATH
is defined in the environment where the.pc
files are found, everything will be found.My inspiration for this is how cgo uses comment magic to link dependencies with pkg-config.
The text was updated successfully, but these errors were encountered: