evas: Modify configure to branch by architectures for neon 15/190115/1
authorWonki Kim <wonki_.kim@samsung.com>
Thu, 27 Sep 2018 05:23:51 +0000 (14:23 +0900)
committerHermet Park <hermetpark@gmail.com>
Thu, 27 Sep 2018 05:40:02 +0000 (14:40 +0900)
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

Change-Id: I70920f8cbabefc1e27deb4c9521d43d07974e404

configure.ac
src/Makefile_Evas.am

index 1b24a5e..7e64550 100755 (executable)
@@ -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])
index d17618f..3d16c06 100755 (executable)
@@ -464,6 +464,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 \