capstone/cmake.sh
Rot127 af1ed2fb3d
Some checks failed
Run Test / ${{ matrix.config.name }} (map[arch:x64 build-system:cmake diet-build:OFF enable-asan:OFF name:ubuntu-22.04 x64 cmake os:ubuntu-22.04]) (push) Failing after 0s
Run Test / ${{ matrix.config.name }} (map[arch:x64 build-system:make diet-build:OFF enable-asan:OFF name:ubuntu-22.04 x64 make os:ubuntu-22.04]) (push) Failing after 0s
RELEASE BUILD - PyPI 📦 Distribution / Build wheels on ${{ matrix.os }} (ubuntu-latest) (push) Failing after 0s
RELEASE BUILD - PyPI 📦 Distribution / Make SDist (push) Failing after 0s
Run Test / ${{ matrix.config.name }} (map[arch:x64 build-system:cmake diet-build:OFF enable-asan:ON name:ubuntu-24.04 x64 ASAN os:ubuntu-24.04]) (push) Has been cancelled
Run Test / ${{ matrix.config.name }} (map[arch:x64 name:windows x64 MSVC 64bit os:windows-latest platform:windows python-arch:x64 python-version:3.9]) (push) Has been cancelled
Auto-Sync / check (push) Has been cancelled
Run clang-tidy / clang-tidy (push) Has been cancelled
RELEASE BUILD - PyPI 📦 Distribution / Build wheels on ${{ matrix.os }} (macos-latest) (push) Has been cancelled
RELEASE BUILD - PyPI 📦 Distribution / Build wheels on ${{ matrix.os }} (windows-latest) (push) Has been cancelled
Python Package CI / build (macOS-14, 3.12) (push) Has been cancelled
Python Package CI / build (macOS-14, 3.8) (push) Has been cancelled
Python Package CI / build (ubuntu-24.04, 3.12) (push) Has been cancelled
Python Package CI / build (ubuntu-24.04, 3.8) (push) Has been cancelled
Python Package CI / build (windows-2022, 3.12) (push) Has been cancelled
Python Package CI / build (windows-2022, 3.8) (push) Has been cancelled
RELEASE BUILD - PyPI 📦 Distribution / publish (push) Has been cancelled
SystemZ Auto-Sync refactor (#2462)
2024-09-14 16:57:54 +08:00

82 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
;;
*)
;;
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