2023-04-11 03:35:52 +00:00
|
|
|
$dist = $args[0]
|
|
|
|
$cmake_opts = $args[1]
|
|
|
|
$python = Split-Path((Get-Command python.exe).Path)
|
|
|
|
|
|
|
|
if (-not (Test-Path -Path 'rz-silhouette' -PathType Container)) {
|
|
|
|
git clone https://github.com/rizinorg/rz-silhouette.git --depth 1 rz-silhouette
|
|
|
|
}
|
|
|
|
cd rz-silhouette
|
|
|
|
& meson.exe --buildtype=release --prefix=$dist build
|
|
|
|
ninja -C build install
|
2023-06-20 08:40:57 +00:00
|
|
|
$pathdll = "$dist\lib\rizin\plugins\rz_silhouette.dll"
|
2023-04-11 03:35:52 +00:00
|
|
|
if(![System.IO.File]::Exists($pathdll)) {
|
|
|
|
type build/meson-logs/meson-log.txt
|
2023-06-20 08:40:57 +00:00
|
|
|
ls "$dist\lib\rizin\plugins\"
|
2023-04-11 03:35:52 +00:00
|
|
|
throw (New-Object System.IO.FileNotFoundException("File not found: $pathdll", $pathdll))
|
|
|
|
}
|
2023-06-20 08:40:57 +00:00
|
|
|
Remove-Item -Recurse -Force "$dist\lib\rizin\plugins\rz_silhouette.lib"
|