implement binds and optional binds for windows builds
@@ -1088,9 +1088,23 @@ function _Write-Metadata {
Out-File "$pkg_prefix\EXPOSES" -Encoding ascii
}
+ if ($pkg_exports) {
foreach ($export in $pkg_exports.GetEnumerator()) {
"$($export.Key)=$($export.Value)" | Out-File "$pkg_prefix\EXPORTS" -Encoding ascii -Append
}
+ }
+
+ if ($pkg_binds) {
+ foreach ($bind in $pkg_binds.GetEnumerator()) {
+ "$($bind.Key)=$($bind.Value)" | Out-File "$pkg_prefix\BINDS" -Encoding ascii -Append
+ }
+ }
+
+ if ($pkg_binds_optional) {
+ foreach ($bind in $pkg_binds_optional.GetEnumerator()) {
+ "$($bind.Key)=$($bind.Value)" | Out-File "$pkg_prefix\BINDS_OPTIONAL" -Encoding ascii -Append
+ }
+ }
$pkg_build_deps_resolved | % {
Resolve-HabPkgPath $_ | Out-File $pkg_prefix\BUILD_DEPS -Encoding ascii -Append
