1 Star 0 Fork 0

打补丁的狮子/capstone

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cmake.sh 988 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nguyen Anh Quynh 提交于 2019-04-29 21:15 . fix cmake.sh
#!/bin/sh
# Capstone disassembler engine (www.capstone-engine.org)
# Build Capstone libs for specified architecture, or all if none is specified (libcapstone.so & libcapstone.a) on *nix with CMake & make
# By Nguyen Anh Quynh, Jorn Vernee, 2019
FLAGS="-DCMAKE_BUILD_TYPE=Release"
# Uncomment below line to compile in Diet mode
# FLAGS+=" -DCAPSTONE_BUILD_DIET=ON"
case $1 in
ARM)
ARCH=ARM
;;
ARM64)
ARCH=ARM64
;;
M68K)
ARCH=M68K
;;
MIPS)
ARCH=MIPS
;;
PowerPC)
ARCH=PPC
;;
Sparc)
ARCH=SPARC
;;
SystemZ)
ARCH=SYSZ
;;
XCore)
ARCH=XCORE
;;
x86)
ARCH=X86
;;
TMS320C64x)
ARCH=TMS320C64X
;;
M680x)
ARCH=M680X
;;
EVM)
ARCH=EVM
;;
MOS65XX)
ARCH=MOS65XX
;;
*)
;;
esac
if [ "x${ARCH}" = "x" ]; then
FLAGS+=" -DCAPSTONE_ARCHITECTURE_DEFAULT=ON"
else
FLAGS+=" -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_${ARCH}_SUPPORT=ON"
fi
cmake $FLAGS ..
make -j8
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/PatchLion_admin/capstone.git
git@gitee.com:PatchLion_admin/capstone.git
PatchLion_admin
capstone
capstone
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385