cmake: support X86_REDUCE mode

This commit is contained in:
Nguyen Anh Quynh 2014-05-28 15:58:35 +08:00
parent b70e121ce3
commit 31ec542111

View File

@ -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 ()