mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-01-23 23:05:16 +00:00
cmake: support X86_REDUCE mode
This commit is contained in:
parent
b70e121ce3
commit
31ec542111
@ -14,6 +14,7 @@ option(ARM64_SUPPORT "ARM64 support" ON)
|
||||
option(MIPS_SUPPORT "MIPS support" ON)
|
||||
option(PPC_SUPPORT "PowerPC support" ON)
|
||||
option(X86_SUPPORT "X86 support" ON)
|
||||
option(X86_REDUCE "X86 with reduce instruction sets to minimize library" ON)
|
||||
option(SPARC_SUPPORT "Sparc support" ON)
|
||||
option(SYSZ_SUPPORT "SystemZ support" ON)
|
||||
option(XCORE_SUPPORT "XCore support" ON)
|
||||
@ -139,6 +140,10 @@ if (BUILD_DIET)
|
||||
add_definitions(-DCAPSTONE_DIET)
|
||||
endif ()
|
||||
|
||||
if (X86_REDUCE)
|
||||
add_definitions(-DCAPSTONE_X86_REDUCE)
|
||||
endif ()
|
||||
|
||||
if (BUILD_STATIC)
|
||||
add_library(libcapstone STATIC ${SOURCES})
|
||||
else ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user