mirror of
https://github.com/capstone-engine/capstone.git
synced 2026-10-12 02:11:43 +00:00
* Add ARC files * Added ARC files for successful compilation * Refactor ARC files * Add ARC c/cs tests * Add ARC python test/bindings * Add ARC to CI/CD * Avoid omitting parameter names * Update cs files * Fix ARC bugs * Update ARC python bindings * Refactor and update ARC test files * Add detail flag to arc test * Fix ARC test problems * Fix ARCMapping compile error * Replace __CHAR_BIT__ to CHAR_BIT * Add credits and ARC info * Update ARC to match the latest next * Python formatting * Remove asserts on 'Unknown condition code passed' * Add ARC to some more documentation * Add ARC to Targets constants * Add ARC support to llvm-tblgen * Replace asserts & add Expr handling * Check DecodeGPR32RegisterClass return value * Fix fieldFromInstruction patch * Refactor ARC * Reformat python files * Fix incorrect import * Update inc files and insn names * Update python files * Disable AArch64 Linux wheel build due to https://github.com/capstone-engine/capstone/issues/2615. --------- Co-authored-by: R33v0LT <[email protected]>
85 lines
1.2 KiB
Bash
Executable File
85 lines
1.2 KiB
Bash
Executable File
#!/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
|
|
|
|
CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release"
|
|
# Uncomment below line to compile in Diet mode
|
|
# CMAKE_FLAGS+=" -DCAPSTONE_BUILD_DIET=ON"
|
|
|
|
case $1 in
|
|
ARM)
|
|
ARCH=ARM
|
|
;;
|
|
ARM64)
|
|
ARCH=AARCH64
|
|
;;
|
|
AARCH64)
|
|
ARCH=AARCH64
|
|
;;
|
|
M68K)
|
|
ARCH=M68K
|
|
;;
|
|
MIPS)
|
|
ARCH=MIPS
|
|
;;
|
|
PowerPC)
|
|
ARCH=PPC
|
|
;;
|
|
Sparc)
|
|
ARCH=SPARC
|
|
;;
|
|
SystemZ)
|
|
ARCH=SYSTEMZ
|
|
;;
|
|
XCore)
|
|
ARCH=XCORE
|
|
;;
|
|
x86)
|
|
ARCH=X86
|
|
;;
|
|
TMS320C64x)
|
|
ARCH=TMS320C64X
|
|
;;
|
|
M680x)
|
|
ARCH=M680X
|
|
;;
|
|
EVM)
|
|
ARCH=EVM
|
|
;;
|
|
MOS65XX)
|
|
ARCH=MOS65XX
|
|
;;
|
|
WASM)
|
|
ARCH=WASM
|
|
;;
|
|
BPF)
|
|
ARCH=BPF
|
|
;;
|
|
RISCV)
|
|
ARCH=RISCV
|
|
;;
|
|
HPPA)
|
|
ARCH=HPPA
|
|
;;
|
|
LOONGARCH)
|
|
ARCH=LOONGARCH
|
|
;;
|
|
ARC)
|
|
ARCH=ARC
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
if [ -z "${ARCH}" ]; then
|
|
CMAKE_FLAGS="${CMAKE_FLAGS} -DCAPSTONE_ARCHITECTURE_DEFAULT=ON"
|
|
else
|
|
CMAKE_FLAGS="${CMAKE_FLAGS} -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_${ARCH}_SUPPORT=ON"
|
|
fi
|
|
|
|
cmake ${CMAKE_FLAGS} ..
|
|
|
|
make -j8
|