1 Star 0 Fork 0

youngyajun/keystone

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nmake-dll.bat 929 Bytes
一键复制 编辑 原始数据 按行查看 历史
:: Keystone assembler engine (www.keystone-engine.org)
:: Build Keystone DLL (keystone.dll) on Windows with CMake & Nmake
:: By Nguyen Anh Quynh, 2016
:: This generates .\llvm\bin\keystone.dll
:: Usage: nmake-dll.bat [x86 arm aarch64 m68k mips sparc], default build all.
@echo off
set flags="-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON"
set allparams=
:loop
set str=%1
if "%str%"=="" (
goto end
)
set allparams=%allparams% %str%
shift /0
goto loop
:end
if "%allparams%"=="" (
goto eof
)
:: remove left, right blank
:intercept_left
if "%allparams:~0,1%"==" " set "allparams=%allparams:~1%" & goto intercept_left
:intercept_right
if "%allparams:~-1%"==" " set "allparams=%allparams:~0,-1%" & goto intercept_right
:eof
if "%allparams%"=="" (
cmake "%flags%" -DLLVM_TARGETS_TO_BUILD="all" -G "NMake Makefiles" ..
) else (
cmake "%flags%" "-DLLVM_TARGETS_TO_BUILD=%allparams%" -G "NMake Makefiles" ..
)
nmake
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/youngyajun/keystone.git
git@gitee.com:youngyajun/keystone.git
youngyajun
keystone
keystone
master

搜索帮助