2017-09-08 22:06:19 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/ccstruct -I$(top_srcdir)/ccutil -I$(top_srcdir)/viewer -DUSE_STD_NAMESPACE
|
2016-11-08 07:38:07 +08:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
SUBDIRS =
|
|
|
|
AM_CXXFLAGS =
|
|
|
|
|
|
|
|
if VISIBILITY
|
|
|
|
AM_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
|
|
|
AM_CPPFLAGS += -DTESS_EXPORTS
|
|
|
|
endif
|
|
|
|
|
2017-09-08 22:06:19 +08:00
|
|
|
include_HEADERS = dotproductavx.h dotproductsse.h intsimdmatrix.h intsimdmatrixavx2.h intsimdmatrixsse.h simddetect.h
|
2016-11-08 07:38:07 +08:00
|
|
|
|
2016-12-27 20:25:08 +08:00
|
|
|
noinst_HEADERS =
|
2016-11-08 07:38:07 +08:00
|
|
|
|
2017-09-08 22:06:19 +08:00
|
|
|
noinst_LTLIBRARIES = libtesseract_avx.la libtesseract_avx2.la libtesseract_sse.la
|
2016-12-27 20:25:08 +08:00
|
|
|
noinst_LTLIBRARIES += libtesseract_arch.la
|
2016-12-23 17:20:08 +08:00
|
|
|
|
|
|
|
if AVX_OPT
|
2016-11-08 07:38:07 +08:00
|
|
|
libtesseract_avx_la_CXXFLAGS = -mavx
|
2016-12-23 17:20:08 +08:00
|
|
|
endif
|
2017-09-08 22:06:19 +08:00
|
|
|
if AVX2_OPT
|
|
|
|
libtesseract_avx2_la_CXXFLAGS = -mavx2
|
|
|
|
endif
|
2016-12-23 17:20:08 +08:00
|
|
|
if SSE41_OPT
|
2016-11-08 07:38:07 +08:00
|
|
|
libtesseract_sse_la_CXXFLAGS = -msse4.1
|
2016-12-23 17:20:08 +08:00
|
|
|
endif
|
2016-11-08 07:38:07 +08:00
|
|
|
|
2017-09-08 22:06:19 +08:00
|
|
|
libtesseract_arch_la_SOURCES = intsimdmatrix.cpp simddetect.cpp
|
2016-12-27 20:25:08 +08:00
|
|
|
|
2016-11-08 07:38:07 +08:00
|
|
|
libtesseract_avx_la_SOURCES = dotproductavx.cpp
|
|
|
|
|
2017-09-08 22:06:19 +08:00
|
|
|
libtesseract_avx2_la_SOURCES = intsimdmatrixavx2.cpp
|
|
|
|
|
|
|
|
libtesseract_sse_la_SOURCES = dotproductsse.cpp intsimdmatrixsse.cpp
|
2016-11-08 07:38:07 +08:00
|
|
|
|