1 # pkg-config Wrapper hygiene
3 # See comments in cc-wrapper's setup hook. This works exactly the same way.
5 # Skip setup hook if we're neither a build-time dep, nor, temporarily, doing a
8 # TODO(@Ericson2314): No native exception
9 [[ -z ${strictDeps-} ]] ||
(( "$hostOffset" < 0 )) ||
return 0
11 pkgConfigWrapper_addPkgConfigPath
() {
12 # See ../setup-hooks/role.bash
16 addToSearchPath
"PKG_CONFIG_PATH${role_post}" "$1/lib/pkgconfig"
17 addToSearchPath
"PKG_CONFIG_PATH${role_post}" "$1/share/pkgconfig"
20 # See ../setup-hooks/role.bash
24 addEnvHooks
"$targetOffset" pkgConfigWrapper_addPkgConfigPath
26 export PKG_CONFIG
${role_post}=@targetPrefix@@baseBinName@
28 # No local scope in sourced file