mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-12-04 03:32:05 +00:00
21f7bc85f9
* Fix leaks * Remove unnecessary new lines * Add checks for actual buffer length before attempting reading it. * Xtensa: add xtensa support * Xtensa fixes - fix MCExpr - fix Xtensa_add_cs_detail - add `add_cs_detail` - add `MCExpr *MCOperand_getExpr(const MCOperand *MC)` `void printExpr(const MCExpr *E, SStream *O)` autosync fix - fix StreamOperation.py - replace `report_fatal_error` with `CS_ASSERT` - fix patch StreamOperation.py - replace `assert` with `CS_ASSERT` - fix AddCSDetail.py - fix QualifiedIdentifier * Xtensa fix * Xtensa fix .py * add Xtensa to the fuzzer * Xtensa `LITBASE`: add a basic implementation * Xtensa `LITBASE`: add a integration test * Xtensa: fix cs_v6_release_guide.md * Xtensa: fix `XTENSA_OP_GROUP_MEMOPERAND` * Xtensa: fix * Xtensa: fix Targets.py * Use isUint and isInt all over Xtensa * Add documentation about LITBASE functionality * Fix typo * Replace hard with Capstone assert * Xtensa: fix arch_config.json * Xtensa: fix --------- Co-authored-by: Rot127 <unisono@quyllur.org>
35 lines
1.1 KiB
Batchfile
35 lines
1.1 KiB
Batchfile
:: Capstone disassembler engine (www.capstone-engine.org)
|
|
:: Build Capstone libs (capstone.dll & capstone.lib) on Windows with CMake & Nmake
|
|
:: By Nguyen Anh Quynh, Jorn Vernee, 2017, 2019
|
|
|
|
@echo off
|
|
|
|
set flags="-DCMAKE_BUILD_TYPE=Release -DCAPSTONE_BUILD_STATIC_RUNTIME=ON"
|
|
|
|
if "%1"=="ARM" set %arch%=ARM
|
|
if "%1"=="ARM64" set %arch%=ARM64
|
|
if "%1"=="M68K" set %arch%=M68K
|
|
if "%1"=="MIPS" set %arch%=MIPS
|
|
if "%1"=="PowerPC" set %arch%=PPC
|
|
if "%1"=="Sparc" set %arch%=SPARC
|
|
if "%1"=="SystemZ" set %arch%=SYSZ
|
|
if "%1"=="XCore" set %arch%=XCORE
|
|
if "%1"=="x86" set %arch%=X86
|
|
if "%1"=="TMS320C64x" set %arch%=TMS320C64X
|
|
if "%1"=="M680x" set %arch%=M680X
|
|
if "%1"=="EVM" set %arch%=EVM
|
|
if "%1"=="MOS65XX" set %arch%=MOS65XX
|
|
if "%1"=="WASM" set %arch%=WASM
|
|
if "%1"=="BPF" set %arch%=BPF
|
|
if "%1"=="RISCV" set %arch%=RISCV
|
|
if "%1"=="ALPHA" set %arch%=ALPHA
|
|
if "%1"=="HPPA" set %arch%=HPPA
|
|
if "%1"=="LOONGARCH" set %arch%=LOONGARCH
|
|
if "%1"=="XTENSA" set %arch%=XTENSA
|
|
|
|
if not "%arch%"=="" set flags=%flags% and " -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_%arch%_SUPPORT=ON"
|
|
|
|
cmake %flags% -G "NMake Makefiles" ..
|
|
nmake
|
|
|