dont use assembly on 32bit x86 android
This commit is contained in:
parent
44b2445a46
commit
ecb3238763
1 changed files with 10 additions and 6 deletions
|
@ -27,19 +27,23 @@ if(Y262_TARGET_ARCH MATCHES "intelx86")
|
||||||
set(YASM_ARGS -f elf64 -m amd64 -DARCH_X86_64 -DPIC)
|
set(YASM_ARGS -f elf64 -m amd64 -DARCH_X86_64 -DPIC)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(WIN32)
|
if(ANDROID)
|
||||||
|
set(Y262_TARGET_ARCH "unknown")
|
||||||
|
elseif(WIN32)
|
||||||
set(YASM_ARGS -f win32 --prefix=_)
|
set(YASM_ARGS -f win32 --prefix=_)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
set(YASM_ARGS -f macho32 --prefix=_)
|
set(YASM_ARGS -f macho32 --prefix=_)
|
||||||
else()
|
else()
|
||||||
set(YASM_ARGS -f elf32)
|
set(YASM_ARGS -f elf32 -DPIC)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(OUTPUT pixelop_x86.o COMMAND ${YASM_EXE}
|
if (NOT (CMAKE_SIZEOF_VOID_P LESS 8 AND NOT ANDROID))
|
||||||
ARGS ${YASM_ARGS} -o ${CMAKE_CURRENT_BINARY_DIR}/pixelop_x86.o ${CMAKE_CURRENT_SOURCE_DIR}/pixelop_x86.asm)
|
add_custom_command(OUTPUT pixelop_x86.o COMMAND ${YASM_EXE}
|
||||||
add_custom_command(OUTPUT transform_x86.o COMMAND ${YASM_EXE}
|
ARGS ${YASM_ARGS} -o ${CMAKE_CURRENT_BINARY_DIR}/pixelop_x86.o ${CMAKE_CURRENT_SOURCE_DIR}/pixelop_x86.asm)
|
||||||
ARGS ${YASM_ARGS} -o ${CMAKE_CURRENT_BINARY_DIR}/transform_x86.o ${CMAKE_CURRENT_SOURCE_DIR}/transform_x86.asm)
|
add_custom_command(OUTPUT transform_x86.o COMMAND ${YASM_EXE}
|
||||||
|
ARGS ${YASM_ARGS} -o ${CMAKE_CURRENT_BINARY_DIR}/transform_x86.o ${CMAKE_CURRENT_SOURCE_DIR}/transform_x86.asm)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(liby262_sources_basic
|
set(liby262_sources_basic
|
||||||
|
|
Loading…
Reference in a new issue