mirror of
https://github.com/rizinorg/cutter
synced 2026-08-11 16:23:06 -04:00
Add cmake script for packaging r2dec on windows. (#2425)
This commit is contained in:
parent
38b317e619
commit
c49cbc9f01
5 changed files with 65 additions and 46 deletions
|
|
@ -1,9 +1,11 @@
|
|||
$dist = $args[0]
|
||||
$python = Split-Path((Get-Command python.exe).Path)
|
||||
|
||||
git clone https://github.com/radareorg/r2dec-js.git
|
||||
if (-not (Test-Path -Path 'r2dec-js' -PathType Container)) {
|
||||
git clone https://github.com/radareorg/r2dec-js.git --branch master --depth 1
|
||||
}
|
||||
cd r2dec-js
|
||||
git checkout b5a0d15c7bcc488f268ffb0931b7ced2919f6c9d
|
||||
#git checkout b5a0d15c7bcc488f268ffb0931b7ced2919f6c9d
|
||||
& meson.exe --buildtype=release -Dc_args=-DDUK_USE_DATE_NOW_WINDOWS --prefix=$dist --libdir=lib\plugins --datadir=lib\plugins p build
|
||||
ninja -C build install
|
||||
Remove-Item -Recurse -Force $dist\lib\plugins\core_pdd.lib
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
|||
cd "$SCRIPTPATH/.."
|
||||
|
||||
if [[ ! -d r2dec-js ]]; then
|
||||
git clone https://github.com/wargio/r2dec-js.git
|
||||
cd r2dec-js
|
||||
git checkout b5a0d15c7bcc488f268ffb0931b7ced2919f6c9d
|
||||
cd ..
|
||||
git clone https://github.com/radareorg/r2dec-js.git --depth 1 --branch master
|
||||
#cd r2dec-js
|
||||
#git checkout b5a0d15c7bcc488f268ffb0931b7ced2919f6c9d
|
||||
#cd ..
|
||||
fi
|
||||
|
||||
cd r2dec-js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue