Merge pull request #364 from bmiklautz/enablerfxneon

build: Added option WITH_NEON
This commit is contained in:
Marc-André Moreau 2012-01-24 11:22:41 -08:00
commit e0cda2610f
3 changed files with 10 additions and 0 deletions

View File

@ -23,3 +23,4 @@ option(WITH_SSE2_TARGET "Allow compiler to generate SSE2 instructions." OFF)
option(WITH_DEBUG_REDIR "Redirection debug messages" OFF)
option(WITH_DEBUG_CLIPRDR "Print clipboard redirection debug messages" OFF)
option(WITH_DEBUG_WND "Print window order debug messages" OFF)
option(WITH_NEON "Enable NEON optimization for rfx decoder" OFF)

View File

@ -37,6 +37,7 @@
#cmakedefine WITH_PROFILER
#cmakedefine WITH_SSE2
#cmakedefine WITH_SSE2_TARGET
#cmakedefine WITH_NEON
#cmakedefine WITH_DEBUG_X11
#cmakedefine WITH_DEBUG_X11_CLIPRDR
#cmakedefine WITH_DEBUG_X11_LOCAL_MOVESIZE

View File

@ -49,6 +49,14 @@ if(WITH_SSE2)
set_property(SOURCE rfx_sse2.c PROPERTY COMPILE_FLAGS "-msse2")
endif()
if(WITH_NEON)
set(FREERDP_CODEC_SRCS ${FREERDP_CODEC_SRCS}
rfx_neon.c
rfx_neon.h
)
set_property(SOURCE rfx_neon.c PROPERTY COMPILE_FLAGS "-mfpu=neon -mfloat-abi=softfp")
endif()
add_library(freerdp-codec ${FREERDP_CODEC_SRCS})
set_target_properties(freerdp-codec PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")