diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/nmake.bat | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/nmake.bat')
-rw-r--r-- | capstone/nmake.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/capstone/nmake.bat b/capstone/nmake.bat new file mode 100644 index 000000000..ec2496edf --- /dev/null +++ b/capstone/nmake.bat @@ -0,0 +1,30 @@ +:: 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 not "%arch%"=="" set flags=%flags% and " -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_%arch%_SUPPORT=ON" + +cmake %flags% -G "NMake Makefiles" .. +nmake + |