mirror of
https://github.com/rizinorg/cutter.git
synced 2024-11-23 04:49:49 +00:00
de46cb109b
* disable openssl for libyara on linux/mac builds and use tagged version * Bump rizin version
27 lines
971 B
PowerShell
27 lines
971 B
PowerShell
$dist = $args[0]
|
|
$cmake_opts = $args[1]
|
|
$python = Split-Path((Get-Command python.exe).Path)
|
|
|
|
if (-not (Test-Path -Path 'rz_libyara' -PathType Container)) {
|
|
git clone https://github.com/rizinorg/rz-libyara.git --depth 1 --branch main rz_libyara
|
|
git -C rz_libyara submodule init
|
|
git -C rz_libyara submodule update
|
|
}
|
|
cd rz_libyara
|
|
& meson.exe --buildtype=release --prefix=$dist -Duse_sys_yara=disabled -Denable_openssl=false build
|
|
ninja -C build install
|
|
$pathdll = "$dist\lib\rizin\plugins\rz_yara.dll"
|
|
if(![System.IO.File]::Exists($pathdll)) {
|
|
type build/meson-logs/meson-log.txt
|
|
ls "$dist\lib\rizin\plugins\"
|
|
throw (New-Object System.IO.FileNotFoundException("File not found: $pathdll", $pathdll))
|
|
}
|
|
Remove-Item -Recurse -Force "$dist\lib\rizin\plugins\rz_yara.lib"
|
|
|
|
cd cutter-plugin
|
|
mkdir build
|
|
cd build
|
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DRIZIN_INSTALL_PLUGDIR="../build" -DCMAKE_INSTALL_PREFIX="$dist" $cmake_opts ..
|
|
ninja
|
|
ninja install
|