mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-06 20:54:04 +00:00
lottie/render: add support for arm backend build.
Change-Id: I2cd319c4f599ead2e33056b037828d417d47753b
This commit is contained in:
parent
23557dff62
commit
7465055289
@ -32,9 +32,19 @@ lottie player library (devel)
|
||||
export CFLAGS+=" -fvisibility=hidden -fPIC -Wall -O2"
|
||||
export LDFLAGS+=" "
|
||||
|
||||
%ifarch %{arm}
|
||||
export CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
|
||||
%endif
|
||||
|
||||
|
||||
%ifarch %{arm}
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
||||
-DARCH="arm"
|
||||
%else
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_INSTALL_DIR:PATH=%{_libdir}
|
||||
%endif
|
||||
|
||||
|
||||
make %{?jobs:-j%jobs}
|
||||
|
@ -10,6 +10,7 @@ target_sources(lottie-player
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vcompositionfunctions.cpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vdrawhelper.cpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vdrawhelper_sse2.cpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vdrawhelper_neon.cpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vregion.cpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vrle.cpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vpath.cpp"
|
||||
@ -23,6 +24,14 @@ target_sources(lottie-player
|
||||
"${CMAKE_CURRENT_LIST_DIR}/vdrawable.cpp"
|
||||
)
|
||||
|
||||
IF("${ARCH}" STREQUAL "arm")
|
||||
#SET(CMAKE_ASM_FLAGS "${CFLAGS} -x assembler-with-cpp")
|
||||
#target_sources(lottie-player
|
||||
# PRIVATE
|
||||
# "${CMAKE_CURRENT_LIST_DIR}/pixman-arm-neon-asm.S"
|
||||
# )
|
||||
ENDIF("${ARCH}" STREQUAL "arm")
|
||||
|
||||
target_include_directories(lottie-player
|
||||
PRIVATE
|
||||
"${CMAKE_CURRENT_LIST_DIR}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user