add ENABLE_ASM cmake option
Add the ENABLE_ASM flag for cmake which turns ON or OFF the ENABLE_ASM_CORE, ENABLE_ASM_SCALERS and the ENABLE_MMX options at once.
This commit is contained in:
parent
eb7dab6272
commit
fef71439fc
|
@ -22,22 +22,24 @@ option( ENABLE_WX "Build the wxWidgets port" ON )
|
||||||
option( ENABLE_DEBUGGER "Enable the debugger" ON )
|
option( ENABLE_DEBUGGER "Enable the debugger" ON )
|
||||||
option( ENABLE_NLS "Enable translations" ON )
|
option( ENABLE_NLS "Enable translations" ON )
|
||||||
|
|
||||||
SET(ASM_CORE_DEFAULT OFF)
|
SET(ASM_DEFAULT OFF)
|
||||||
SET(ASM_SCALERS_DEFAULT OFF)
|
|
||||||
SET(MMX_DEFAULT OFF)
|
|
||||||
|
|
||||||
# turn asm on by default on 32bit x86
|
# turn asm on by default on 32bit x86
|
||||||
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86|[aA][mM][dD]64|[xX]64")
|
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86|[aA][mM][dD]64|[xX]64")
|
||||||
IF(CMAKE_C_SIZEOF_DATA_PTR EQUAL 4) # 32 bit
|
IF(CMAKE_C_SIZEOF_DATA_PTR EQUAL 4) # 32 bit
|
||||||
SET(ASM_CORE_DEFAULT ON)
|
SET(ASM_DEFAULT ON)
|
||||||
SET(ASM_SCALERS_DEFAULT ON)
|
|
||||||
SET(MMX_DEFAULT ON)
|
|
||||||
SET(X86_32 ON)
|
SET(X86_32 ON)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(AMD64 ON)
|
SET(AMD64 ON)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
OPTION(ENABLE_ASM "Enable x86 ASM related options" ${ASM_DEFAULT})
|
||||||
|
|
||||||
|
SET(ASM_CORE_DEFAULT ${ENABLE_ASM})
|
||||||
|
SET(ASM_SCALERS_DEFAULT ${ENABLE_ASM})
|
||||||
|
SET(MMX_DEFAULT ${ENABLE_ASM})
|
||||||
|
|
||||||
option( ENABLE_ASM_CORE "Enable x86 ASM CPU cores" ${ASM_CORE_DEFAULT})
|
option( ENABLE_ASM_CORE "Enable x86 ASM CPU cores" ${ASM_CORE_DEFAULT})
|
||||||
option( ENABLE_ASM_SCALERS "Enable x86 ASM graphic filters" ${ASM_SCALERS_DEFAULT})
|
option( ENABLE_ASM_SCALERS "Enable x86 ASM graphic filters" ${ASM_SCALERS_DEFAULT})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue