evas: Modify configure to branch by architectures for neon

Summary:
neon code is only needed to be included for the arm architecture.
so that this code modify automake configure files to support it.

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7096
This commit is contained in:
Wonki Kim 2018-09-27 14:23:51 +09:00 committed by Hermet Park
parent d2defeea7c
commit 2e8f00c1ff
2 changed files with 8 additions and 0 deletions

View File

@ -657,6 +657,7 @@ case $host_cpu in
AC_DEFINE([BUILD_NEON], [1], [Build NEON Code])
AC_DEFINE([BUILD_NEON_INTRINSICS], [1], [Build NEON Intrinsics])
build_cpu_neon="yes"
build_cpu_neon_intrinsics="yes"
],[
AC_MSG_RESULT([no])
build_cpu_neon="no"
@ -666,6 +667,7 @@ case $host_cpu in
esac
AM_CONDITIONAL([BUILD_NEON], [test "${build_cpu_neon}" = "yes"])
AM_CONDITIONAL([BUILD_NEON_INTRINSICS], [test "${build_cpu_neon_intrinsics}" = "yes"])
AC_SUBST([ALTIVEC_CFLAGS])
AC_SUBST([SSE3_CFLAGS])

View File

@ -461,6 +461,12 @@ lib/evas/common/evas_font_ot.h \
lib/evas/common/evas_font_draw.h \
lib/evas/common/evas_common_generic_cache.c
if BUILD_NEON
if !BUILD_NEON_INTRINSICS
lib_evas_libevas_la_SOURCES += \
lib/evas/common/evas_op_copy/op_copy_neon.S
endif
endif
lib_evas_libevas_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-I$(top_srcdir)/src/lib/evas/canvas \