2019-08-07 19:58:12 +08:00
|
|
|
# Makefile for Tesseract unit tests
|
|
|
|
|
2018-10-12 17:29:45 +08:00
|
|
|
# Absolute path of directory 'langdata'.
|
2018-10-14 01:22:49 +08:00
|
|
|
LANGDATA_DIR=$(shell cd $(top_srcdir) && cd .. && pwd)/langdata_lstm
|
2018-10-12 17:29:45 +08:00
|
|
|
|
2018-03-14 04:15:44 +08:00
|
|
|
# Absolute path of directory 'tessdata' with traineddata files
|
|
|
|
# (must be on same level as top source directory).
|
|
|
|
TESSDATA_DIR=$(shell cd $(top_srcdir) && cd .. && pwd)/tessdata
|
2019-01-25 22:05:57 +08:00
|
|
|
TESSDATA_BEST_DIR=$(shell cd $(top_srcdir) && cd .. && pwd)/tessdata_best
|
2018-03-14 04:15:44 +08:00
|
|
|
|
|
|
|
# Absolute path of directory 'testing' with test images and ground truth texts
|
2018-06-06 20:20:14 +08:00
|
|
|
# (using submodule test).
|
|
|
|
TESTING_DIR=$(shell cd $(top_srcdir) && pwd)/test/testing
|
2019-01-20 22:05:29 +08:00
|
|
|
# Absolute path of directory 'testdata' with test unicharset etc.
|
|
|
|
# (using submodule test).
|
2019-01-19 00:41:29 +08:00
|
|
|
TESTDATA_DIR=$(shell cd $(top_srcdir) && pwd)/test/testdata
|
2018-03-14 04:15:44 +08:00
|
|
|
|
2019-01-21 18:47:10 +08:00
|
|
|
AM_CPPFLAGS += -DTESSBIN_DIR="\"$(abs_top_builddir)\""
|
2018-10-12 17:29:45 +08:00
|
|
|
AM_CPPFLAGS += -DLANGDATA_DIR="\"$(LANGDATA_DIR)\""
|
2018-03-14 04:15:44 +08:00
|
|
|
AM_CPPFLAGS += -DTESSDATA_DIR="\"$(TESSDATA_DIR)\""
|
2019-01-25 22:05:57 +08:00
|
|
|
AM_CPPFLAGS += -DTESSDATA_BEST_DIR="\"$(TESSDATA_BEST_DIR)\""
|
2018-03-14 04:15:44 +08:00
|
|
|
AM_CPPFLAGS += -DTESTING_DIR="\"$(TESTING_DIR)\""
|
2019-01-19 00:41:29 +08:00
|
|
|
AM_CPPFLAGS += -DTESTDATA_DIR="\"$(TESTDATA_DIR)\""
|
2018-03-04 21:43:28 +08:00
|
|
|
AM_CPPFLAGS += -DPANGO_ENABLE_ENGINE
|
2019-05-16 23:17:56 +08:00
|
|
|
if DISABLED_LEGACY_ENGINE
|
|
|
|
AM_CPPFLAGS += -DDISABLED_LEGACY_ENGINE
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # DISABLED_LEGACY_ENGINE
|
2019-10-29 03:23:58 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_builddir)/include
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/include
|
2018-04-26 03:33:14 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/arch
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/ccmain
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/ccstruct
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/ccutil
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/classify
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/cutil
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/dict
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/display
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/lstm
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/textord
|
2019-01-20 22:05:29 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/unittest/base
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/unittest/util
|
2018-08-27 17:44:46 +08:00
|
|
|
if ENABLE_TRAINING
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/training
|
2019-12-28 16:35:40 +08:00
|
|
|
AM_CPPFLAGS += $(pangocairo_CFLAGS)
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # ENABLE_TRAINING
|
2018-04-26 03:33:14 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/viewer
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/wordrec
|
2018-10-11 23:33:28 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/abseil
|
2019-06-29 17:43:12 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
AM_CPPFLAGS += -DINCLUDE_TENSORFLOW
|
2019-06-30 21:09:46 +08:00
|
|
|
AM_CPPFLAGS += -I/usr/include/tensorflow
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
2018-03-04 21:43:28 +08:00
|
|
|
|
2017-08-19 21:12:06 +08:00
|
|
|
# Build googletest:
|
2018-06-02 06:42:37 +08:00
|
|
|
check_LTLIBRARIES = libgtest.la libgtest_main.la libgmock.la libgmock_main.la
|
2017-08-19 21:12:06 +08:00
|
|
|
libgtest_la_SOURCES = ../googletest/googletest/src/gtest-all.cc
|
2017-09-17 00:47:04 +08:00
|
|
|
libgtest_la_CPPFLAGS = -I$(top_srcdir)/googletest/googletest/include -I$(top_srcdir)/googletest/googletest -pthread
|
2017-08-19 21:12:06 +08:00
|
|
|
libgtest_main_la_SOURCES = ../googletest/googletest/src/gtest_main.cc
|
|
|
|
## libgtest_main_la_LIBADD = libgtest.la
|
|
|
|
|
2018-10-11 23:33:28 +08:00
|
|
|
# Build Abseil (needed for some unit tests).
|
|
|
|
check_LTLIBRARIES += libabseil.la
|
|
|
|
libabseil_la_SOURCES =
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/base/internal/cycleclock.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/base/internal/raw_logging.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/base/internal/spinlock.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/base/internal/spinlock_wait.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/base/internal/sysinfo.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/base/internal/throw_delegate.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/base/internal/unscaledcycleclock.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/numeric/int128.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/ascii.cc
|
2018-10-12 15:31:08 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/charconv.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/charconv_bigint.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/charconv_parse.cc
|
2018-10-12 14:13:39 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/memutil.cc
|
2018-10-12 15:31:08 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/str_format/arg.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/str_format/bind.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/str_format/extension.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/str_format/float_conversion.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/str_format/output.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/internal/str_format/parser.cc
|
2019-03-08 22:46:38 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/match.cc
|
2018-10-12 15:31:08 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/numbers.cc
|
2018-10-11 23:33:28 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/str_cat.cc
|
2018-10-12 14:13:39 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/str_split.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/strings/string_view.cc
|
2018-10-11 23:33:28 +08:00
|
|
|
libabseil_la_SOURCES += ../abseil/absl/time/clock.cc
|
|
|
|
libabseil_la_SOURCES += ../abseil/absl/time/duration.cc
|
|
|
|
|
2018-06-02 06:42:37 +08:00
|
|
|
GMOCK_INCLUDES = -I$(top_srcdir)/googletest/googlemock/include \
|
|
|
|
-I$(top_srcdir)/googletest/googlemock \
|
|
|
|
-I$(top_srcdir)/googletest/googletest/include \
|
|
|
|
-I$(top_srcdir)/googletest/googletest
|
|
|
|
|
|
|
|
libgmock_la_SOURCES = ../googletest/googlemock/src/gmock-all.cc
|
|
|
|
libgmock_la_CPPFLAGS = $(GMOCK_INCLUDES) \
|
|
|
|
-pthread
|
|
|
|
libgmock_main_la_SOURCES = ../googletest/googlemock/src/gmock_main.cc
|
|
|
|
libgmock_main_la_CPPFLAGS = $(GMOCK_INCLUDES) \
|
|
|
|
-pthread
|
|
|
|
|
2017-08-19 21:12:06 +08:00
|
|
|
# Build unittests
|
2018-10-11 23:33:28 +08:00
|
|
|
ABSEIL_LIBS = libabseil.la
|
2019-01-11 23:45:13 +08:00
|
|
|
GTEST_LIBS = libgtest.la libgtest_main.la -lpthread
|
2018-06-02 06:42:37 +08:00
|
|
|
GMOCK_LIBS = libgmock.la libgmock_main.la
|
2019-08-07 19:58:12 +08:00
|
|
|
TESS_LIBS = $(GTEST_LIBS)
|
2019-11-26 17:57:28 +08:00
|
|
|
TESS_LIBS += $(top_builddir)/libtesseract.la $(libarchive_LIBS)
|
2019-05-24 23:08:48 +08:00
|
|
|
TESS_LIBS += $(TENSORFLOW_LIBS)
|
2018-08-27 17:44:46 +08:00
|
|
|
TRAINING_LIBS = $(top_builddir)/src/training/libtesseract_training.la
|
|
|
|
TRAINING_LIBS += $(top_builddir)/src/training/libtesseract_tessopt.la
|
2019-06-22 22:50:55 +08:00
|
|
|
TRAINING_LIBS += $(TESS_LIBS)
|
2018-06-02 06:42:37 +08:00
|
|
|
AM_CPPFLAGS += -isystem $(top_srcdir)/googletest/googletest/include \
|
|
|
|
-isystem $(top_srcdir)/googletest/googlemock/include
|
2017-08-19 21:12:06 +08:00
|
|
|
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS = apiexample_test
|
2019-08-07 19:58:12 +08:00
|
|
|
if ENABLE_TRAINING
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += applybox_test
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += baseapi_test
|
2019-07-01 02:06:30 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
check_PROGRAMS += baseapi_thread_test
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
2019-08-13 22:34:46 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += bitvector_test
|
2019-08-13 22:34:46 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # ENABLE_TRAINING
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += cleanapi_test
|
|
|
|
check_PROGRAMS += colpartition_test
|
2019-08-07 19:58:12 +08:00
|
|
|
if ENABLE_TRAINING
|
|
|
|
check_PROGRAMS += commandlineflags_test
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += dawg_test
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # ENABLE_TRAINING
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += denorm_test
|
2019-08-13 22:34:46 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-06-30 18:36:20 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
check_PROGRAMS += equationdetect_test
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
2019-08-13 22:34:46 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += fileio_test
|
|
|
|
check_PROGRAMS += heap_test
|
|
|
|
check_PROGRAMS += imagedata_test
|
2019-08-13 22:34:46 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += indexmapbidi_test
|
|
|
|
check_PROGRAMS += intfeaturemap_test
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += intsimdmatrix_test
|
|
|
|
check_PROGRAMS += lang_model_test
|
|
|
|
check_PROGRAMS += layout_test
|
2019-06-11 17:42:22 +08:00
|
|
|
check_PROGRAMS += ligature_table_test
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += linlsq_test
|
2019-08-07 19:58:12 +08:00
|
|
|
if ENABLE_TRAINING
|
|
|
|
check_PROGRAMS += lstm_recode_test
|
|
|
|
check_PROGRAMS += lstm_squashed_test
|
|
|
|
check_PROGRAMS += lstm_test
|
|
|
|
check_PROGRAMS += lstmtrainer_test
|
|
|
|
endif # ENABLE_TRAINING
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += loadlang_test
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += mastertrainer_test
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += matrix_test
|
2019-06-30 21:09:46 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
check_PROGRAMS += networkio_test
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
|
|
|
if ENABLE_TRAINING
|
|
|
|
check_PROGRAMS += normstrngs_test
|
|
|
|
endif # ENABLE_TRAINING
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += nthitem_test
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += osd_test
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-06-14 22:00:20 +08:00
|
|
|
check_PROGRAMS += pagesegmode_test
|
2019-08-07 19:58:12 +08:00
|
|
|
if ENABLE_TRAINING
|
|
|
|
if TENSORFLOW
|
|
|
|
check_PROGRAMS += pango_font_info_test
|
|
|
|
endif # TENSORFLOW
|
|
|
|
endif # ENABLE_TRAINING
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += paragraphs_test
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-18 23:06:02 +08:00
|
|
|
check_PROGRAMS += params_model_test
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += progress_test
|
|
|
|
check_PROGRAMS += qrsequence_test
|
|
|
|
check_PROGRAMS += recodebeam_test
|
|
|
|
check_PROGRAMS += rect_test
|
|
|
|
check_PROGRAMS += resultiterator_test
|
2019-06-14 22:50:58 +08:00
|
|
|
check_PROGRAMS += scanutils_test
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += shapetable_test
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += stats_test
|
2019-06-30 21:26:28 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
check_PROGRAMS += stridemap_test
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += stringrenderer_test
|
|
|
|
check_PROGRAMS += tablefind_test
|
|
|
|
check_PROGRAMS += tablerecog_test
|
|
|
|
check_PROGRAMS += tabvector_test
|
2019-07-10 22:05:50 +08:00
|
|
|
if TENSORFLOW
|
2019-06-24 18:52:06 +08:00
|
|
|
check_PROGRAMS += tatweel_test
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
2019-06-14 23:22:24 +08:00
|
|
|
check_PROGRAMS += textlineprojection_test
|
2019-04-19 17:11:40 +08:00
|
|
|
check_PROGRAMS += tfile_test
|
2018-08-27 17:44:46 +08:00
|
|
|
if ENABLE_TRAINING
|
2019-01-19 00:41:29 +08:00
|
|
|
check_PROGRAMS += unichar_test
|
2019-01-19 13:13:03 +08:00
|
|
|
check_PROGRAMS += unicharcompress_test
|
2019-01-24 15:01:19 +08:00
|
|
|
check_PROGRAMS += unicharset_test
|
2019-01-22 04:32:05 +08:00
|
|
|
check_PROGRAMS += validate_grapheme_test
|
2019-01-22 22:17:54 +08:00
|
|
|
check_PROGRAMS += validate_indic_test
|
2019-01-22 22:22:30 +08:00
|
|
|
check_PROGRAMS += validate_khmer_test
|
2019-01-22 22:24:09 +08:00
|
|
|
check_PROGRAMS += validate_myanmar_test
|
2018-08-27 17:44:46 +08:00
|
|
|
check_PROGRAMS += validator_test
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # ENABLE_TRAINING
|
2018-08-27 17:44:46 +08:00
|
|
|
|
2017-08-19 21:12:06 +08:00
|
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
|
2019-03-08 23:04:20 +08:00
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
all: tmp
|
|
|
|
|
|
|
|
tmp:
|
|
|
|
mkdir -p tmp
|
|
|
|
|
2018-08-25 16:28:22 +08:00
|
|
|
# List of source files needed to build the executable:
|
2018-03-04 21:43:28 +08:00
|
|
|
|
2017-09-08 22:06:19 +08:00
|
|
|
apiexample_test_SOURCES = apiexample_test.cc
|
2017-09-09 00:34:31 +08:00
|
|
|
apiexample_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
|
2019-08-07 19:58:12 +08:00
|
|
|
apiexample_test_LDADD = $(TESS_LIBS) $(LEPTONICA_LIBS)
|
2018-06-02 06:47:34 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2018-08-29 03:03:49 +08:00
|
|
|
applybox_test_SOURCES = applybox_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
applybox_test_LDADD = $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2018-08-29 03:03:49 +08:00
|
|
|
|
2018-10-11 23:33:28 +08:00
|
|
|
baseapi_test_SOURCES = baseapi_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
baseapi_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2018-10-11 23:33:28 +08:00
|
|
|
|
2019-07-01 02:06:30 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
baseapi_thread_test_SOURCES = baseapi_thread_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
baseapi_thread_test_LDADD = $(ABSEIL_LIBS)
|
2019-07-10 21:11:51 +08:00
|
|
|
baseapi_thread_test_LDADD += $(TESS_LIBS) $(LEPTONICA_LIBS)
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
2018-10-12 14:01:58 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2018-08-25 16:28:22 +08:00
|
|
|
bitvector_test_SOURCES = bitvector_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
bitvector_test_LDADD = $(TRAINING_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2018-08-25 16:28:22 +08:00
|
|
|
|
2018-08-25 17:07:32 +08:00
|
|
|
cleanapi_test_SOURCES = cleanapi_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
cleanapi_test_LDADD = $(TESS_LIBS)
|
2018-08-25 17:07:32 +08:00
|
|
|
|
2018-08-25 19:04:12 +08:00
|
|
|
colpartition_test_SOURCES = colpartition_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
colpartition_test_LDADD = $(TESS_LIBS)
|
2018-08-25 19:04:12 +08:00
|
|
|
|
2018-08-27 17:54:10 +08:00
|
|
|
commandlineflags_test_SOURCES = commandlineflags_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
commandlineflags_test_LDADD = $(TRAINING_LIBS) $(ICU_UC_LIBS)
|
2018-08-27 17:54:10 +08:00
|
|
|
|
2019-01-20 22:05:29 +08:00
|
|
|
dawg_test_SOURCES = dawg_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
dawg_test_LDADD = $(TRAINING_LIBS)
|
2019-01-20 22:05:29 +08:00
|
|
|
|
2019-01-21 15:05:54 +08:00
|
|
|
denorm_test_SOURCES = denorm_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
denorm_test_LDADD = $(TESS_LIBS)
|
2019-01-21 15:05:54 +08:00
|
|
|
|
2020-10-10 07:53:38 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-06-30 18:36:20 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
equationdetect_test_SOURCES = equationdetect_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
equationdetect_test_LDADD = $(TESS_LIBS) $(LEPTONICA_LIBS)
|
|
|
|
endif # TENSORFLOW
|
2020-10-10 07:53:38 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-06-30 18:36:20 +08:00
|
|
|
|
2018-10-12 14:13:39 +08:00
|
|
|
fileio_test_SOURCES = fileio_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
fileio_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS)
|
2018-10-12 14:13:39 +08:00
|
|
|
|
2018-08-26 00:07:56 +08:00
|
|
|
heap_test_SOURCES = heap_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
heap_test_LDADD = $(TESS_LIBS)
|
2018-08-26 00:07:56 +08:00
|
|
|
|
2018-10-12 15:31:08 +08:00
|
|
|
imagedata_test_SOURCES = imagedata_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
imagedata_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS)
|
2018-10-12 15:31:08 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2018-08-26 00:08:30 +08:00
|
|
|
indexmapbidi_test_SOURCES = indexmapbidi_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
indexmapbidi_test_LDADD = $(TRAINING_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2018-08-26 00:08:30 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2018-08-26 00:35:55 +08:00
|
|
|
intfeaturemap_test_SOURCES = intfeaturemap_test.cc
|
2019-08-12 22:00:50 +08:00
|
|
|
intfeaturemap_test_LDADD = $(TRAINING_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2018-08-26 00:35:55 +08:00
|
|
|
|
2017-09-08 22:06:19 +08:00
|
|
|
intsimdmatrix_test_SOURCES = intsimdmatrix_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
intsimdmatrix_test_LDADD = $(TESS_LIBS)
|
2019-01-13 04:30:45 +08:00
|
|
|
intsimdmatrix_test_CPPFLAGS = $(AM_CPPFLAGS)
|
Replace AVX_OPT, ..., AVX macros by HAVE_AVX, ... and clean related code
- Replace AVX_OPT, AVX2_OPT, FMA_OPT, SSE41_OPT
- Replace AVX, AVX2, FMA, SSE4_1
- Write new HAVE_AVX, HAVE_AVX2, HAVE_FMA, HAVE_SSE4_1 into config_auto.h
- Put related conditionals in Makefile.am in one place
This makes the code clearer and fixes a log message in
IntSimdMatrixTest.AVX2.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-11-29 00:28:06 +08:00
|
|
|
if HAVE_AVX2
|
|
|
|
intsimdmatrix_test_CPPFLAGS += -DHAVE_AVX2
|
2019-01-13 04:30:45 +08:00
|
|
|
endif
|
Replace AVX_OPT, ..., AVX macros by HAVE_AVX, ... and clean related code
- Replace AVX_OPT, AVX2_OPT, FMA_OPT, SSE41_OPT
- Replace AVX, AVX2, FMA, SSE4_1
- Write new HAVE_AVX, HAVE_AVX2, HAVE_FMA, HAVE_SSE4_1 into config_auto.h
- Put related conditionals in Makefile.am in one place
This makes the code clearer and fixes a log message in
IntSimdMatrixTest.AVX2.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-11-29 00:28:06 +08:00
|
|
|
if HAVE_SSE4_1
|
|
|
|
intsimdmatrix_test_CPPFLAGS += -DHAVE_SSE4_1
|
2019-01-13 04:30:45 +08:00
|
|
|
endif
|
2017-08-19 21:12:06 +08:00
|
|
|
|
2018-10-12 17:29:45 +08:00
|
|
|
lang_model_test_SOURCES = lang_model_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
lang_model_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2018-10-12 17:29:45 +08:00
|
|
|
|
2019-01-20 22:05:29 +08:00
|
|
|
layout_test_SOURCES = layout_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
layout_test_LDADD = $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2019-01-20 22:05:29 +08:00
|
|
|
|
2019-06-11 17:42:22 +08:00
|
|
|
ligature_table_test_SOURCES = ligature_table_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
ligature_table_test_LDADD = $(TRAINING_LIBS)
|
2019-06-11 17:42:22 +08:00
|
|
|
ligature_table_test_LDADD += $(ICU_I18N_LIBS) $(ICU_UC_LIBS) -lfontconfig
|
|
|
|
ligature_table_test_LDADD += -lpangocairo-1.0 -lpangoft2-1.0
|
|
|
|
ligature_table_test_LDADD += $(cairo_LIBS) $(pango_LIBS)
|
|
|
|
|
2018-08-26 21:23:42 +08:00
|
|
|
linlsq_test_SOURCES = linlsq_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
linlsq_test_LDADD = $(TESS_LIBS)
|
2018-08-26 21:23:42 +08:00
|
|
|
|
|
|
|
loadlang_test_SOURCES = loadlang_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
loadlang_test_LDADD = $(TESS_LIBS) $(LEPTONICA_LIBS)
|
2018-08-26 21:23:42 +08:00
|
|
|
|
2019-01-24 15:01:19 +08:00
|
|
|
lstm_recode_test_SOURCES = lstm_recode_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
lstm_recode_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS)
|
2019-01-24 15:01:19 +08:00
|
|
|
|
|
|
|
lstm_squashed_test_SOURCES = lstm_squashed_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
lstm_squashed_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS)
|
2019-01-24 15:01:19 +08:00
|
|
|
|
|
|
|
lstm_test_SOURCES = lstm_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
lstm_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS)
|
2019-01-24 15:01:19 +08:00
|
|
|
|
2019-01-25 22:05:57 +08:00
|
|
|
lstmtrainer_test_SOURCES = lstmtrainer_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
lstmtrainer_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2019-01-25 22:05:57 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2018-10-12 20:00:14 +08:00
|
|
|
mastertrainer_test_SOURCES = mastertrainer_test.cc
|
2019-08-12 22:00:50 +08:00
|
|
|
mastertrainer_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2018-10-12 20:00:14 +08:00
|
|
|
|
2017-08-19 21:12:06 +08:00
|
|
|
matrix_test_SOURCES = matrix_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
matrix_test_LDADD = $(TESS_LIBS)
|
2017-09-08 22:06:19 +08:00
|
|
|
|
2019-06-30 21:09:46 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
networkio_test_SOURCES = networkio_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
networkio_test_LDADD = $(TESS_LIBS)
|
|
|
|
endif # TENSORFLOW
|
2019-06-30 21:09:46 +08:00
|
|
|
|
2019-06-15 16:02:11 +08:00
|
|
|
normstrngs_test_SOURCES = normstrngs_test.cc
|
2019-06-29 17:43:12 +08:00
|
|
|
if TENSORFLOW
|
2019-06-24 18:51:05 +08:00
|
|
|
normstrngs_test_SOURCES += third_party/utf/rune.c util/utf8/unilib.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
|
|
|
normstrngs_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2019-06-15 16:02:11 +08:00
|
|
|
|
2018-08-27 00:22:43 +08:00
|
|
|
nthitem_test_SOURCES = nthitem_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
nthitem_test_LDADD = $(TESS_LIBS)
|
2018-08-27 00:22:43 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2018-08-30 17:28:04 +08:00
|
|
|
osd_test_SOURCES = osd_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
osd_test_LDADD = $(TESS_LIBS) $(LEPTONICA_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2018-08-30 17:28:04 +08:00
|
|
|
|
2019-06-14 22:00:20 +08:00
|
|
|
pagesegmode_test_SOURCES = pagesegmode_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
pagesegmode_test_LDADD = $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2019-06-14 22:00:20 +08:00
|
|
|
|
2019-06-29 17:43:12 +08:00
|
|
|
if TENSORFLOW
|
2018-08-30 17:28:04 +08:00
|
|
|
pango_font_info_test_SOURCES = pango_font_info_test.cc
|
|
|
|
pango_font_info_test_SOURCES += third_party/utf/rune.c
|
|
|
|
pango_font_info_test_SOURCES += util/utf8/unicodetext.cc util/utf8/unilib.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
pango_font_info_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2019-12-28 16:35:40 +08:00
|
|
|
pango_font_info_test_LDADD += $(ICU_I18N_LIBS)
|
|
|
|
pango_font_info_test_LDADD += $(pangocairo_LIBS)
|
|
|
|
pango_font_info_test_LDADD += $(pangoft2_LIBS)
|
2019-08-07 19:58:12 +08:00
|
|
|
endif # TENSORFLOW
|
2018-10-12 22:18:17 +08:00
|
|
|
|
|
|
|
paragraphs_test_SOURCES = paragraphs_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
paragraphs_test_LDADD = $(ABSEIL_LIBS) $(TESS_LIBS)
|
2018-10-12 22:18:17 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-04-18 23:06:02 +08:00
|
|
|
params_model_test_SOURCES = params_model_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
params_model_test_LDADD = $(TRAINING_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-04-18 23:06:02 +08:00
|
|
|
|
2018-08-26 21:23:42 +08:00
|
|
|
progress_test_SOURCES = progress_test.cc
|
|
|
|
progress_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
|
|
|
|
progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
|
2018-06-17 13:31:32 +08:00
|
|
|
|
2018-10-12 14:01:58 +08:00
|
|
|
qrsequence_test_SOURCES = qrsequence_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
qrsequence_test_LDADD = $(ABSEIL_LIBS) $(TESS_LIBS)
|
2018-10-12 14:01:58 +08:00
|
|
|
|
2019-01-25 22:05:57 +08:00
|
|
|
recodebeam_test_SOURCES = recodebeam_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
recodebeam_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2019-01-25 22:05:57 +08:00
|
|
|
|
2018-08-27 00:30:21 +08:00
|
|
|
rect_test_SOURCES = rect_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
rect_test_LDADD = $(TESS_LIBS)
|
2018-08-27 00:30:21 +08:00
|
|
|
|
2019-01-25 22:05:57 +08:00
|
|
|
resultiterator_test_SOURCES = resultiterator_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
resultiterator_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS)
|
|
|
|
resultiterator_test_LDADD += $(LEPTONICA_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2019-01-25 22:05:57 +08:00
|
|
|
|
2019-06-14 22:50:58 +08:00
|
|
|
scanutils_test_SOURCES = scanutils_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
scanutils_test_LDADD = $(TRAINING_LIBS)
|
2019-06-14 22:50:58 +08:00
|
|
|
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2019-01-24 01:03:18 +08:00
|
|
|
shapetable_test_SOURCES = shapetable_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
shapetable_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS)
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2019-01-23 14:13:57 +08:00
|
|
|
|
2018-08-27 00:45:57 +08:00
|
|
|
stats_test_SOURCES = stats_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
stats_test_LDADD = $(TESS_LIBS)
|
2018-08-27 00:45:57 +08:00
|
|
|
|
2019-06-30 21:26:28 +08:00
|
|
|
if TENSORFLOW
|
|
|
|
stridemap_test_SOURCES = stridemap_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
stridemap_test_LDADD = $(TESS_LIBS)
|
|
|
|
endif # TENSORFLOW
|
2019-06-30 21:26:28 +08:00
|
|
|
|
2019-01-24 01:03:18 +08:00
|
|
|
stringrenderer_test_SOURCES = stringrenderer_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
stringrenderer_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
|
|
|
stringrenderer_test_LDADD += $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
|
|
|
stringrenderer_test_LDADD += -lfontconfig -lpangocairo-1.0 -lpangoft2-1.0
|
|
|
|
stringrenderer_test_LDADD += $(cairo_LIBS) $(pango_LIBS)
|
2019-01-24 01:03:18 +08:00
|
|
|
|
2018-08-27 00:49:21 +08:00
|
|
|
tablefind_test_SOURCES = tablefind_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
tablefind_test_LDADD = $(TESS_LIBS)
|
2018-08-27 00:49:21 +08:00
|
|
|
|
2018-08-27 00:59:45 +08:00
|
|
|
tablerecog_test_SOURCES = tablerecog_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
tablerecog_test_LDADD = $(TESS_LIBS)
|
2018-08-27 00:59:45 +08:00
|
|
|
|
2018-08-27 01:02:01 +08:00
|
|
|
tabvector_test_SOURCES = tabvector_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
tabvector_test_LDADD = $(TESS_LIBS)
|
2018-08-27 01:02:01 +08:00
|
|
|
|
2019-07-10 22:05:50 +08:00
|
|
|
if TENSORFLOW
|
2019-06-24 18:52:06 +08:00
|
|
|
tatweel_test_SOURCES = tatweel_test.cc
|
|
|
|
tatweel_test_SOURCES += third_party/utf/rune.c
|
|
|
|
tatweel_test_SOURCES += util/utf8/unicodetext.cc util/utf8/unilib.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
tatweel_test_LDADD = $(TRAINING_LIBS)
|
|
|
|
endif # TENSORFLOW
|
2019-06-24 18:52:06 +08:00
|
|
|
|
2019-06-14 23:22:24 +08:00
|
|
|
textlineprojection_test_SOURCES = textlineprojection_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
textlineprojection_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
2019-06-14 23:22:24 +08:00
|
|
|
|
2018-08-27 01:04:54 +08:00
|
|
|
tfile_test_SOURCES = tfile_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
tfile_test_LDADD = $(TESS_LIBS)
|
2018-08-27 01:04:54 +08:00
|
|
|
|
2019-01-19 00:41:29 +08:00
|
|
|
unichar_test_SOURCES = unichar_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
unichar_test_LDADD = $(TRAINING_LIBS) $(ICU_UC_LIBS)
|
2019-01-19 00:41:29 +08:00
|
|
|
|
2019-01-19 13:13:03 +08:00
|
|
|
unicharcompress_test_SOURCES = unicharcompress_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
unicharcompress_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_UC_LIBS)
|
2019-01-19 13:13:03 +08:00
|
|
|
|
2019-01-19 00:41:29 +08:00
|
|
|
unicharset_test_SOURCES = unicharset_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
unicharset_test_LDADD = $(TRAINING_LIBS) $(ICU_UC_LIBS)
|
2019-01-19 00:41:29 +08:00
|
|
|
|
2019-01-22 04:32:05 +08:00
|
|
|
validate_grapheme_test_SOURCES = validate_grapheme_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
validate_grapheme_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2019-01-22 04:32:05 +08:00
|
|
|
|
2019-01-22 22:17:54 +08:00
|
|
|
validate_indic_test_SOURCES = validate_indic_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
validate_indic_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2019-01-22 22:17:54 +08:00
|
|
|
|
2019-01-22 22:22:30 +08:00
|
|
|
validate_khmer_test_SOURCES = validate_khmer_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
validate_khmer_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2019-01-22 22:22:30 +08:00
|
|
|
|
2019-01-22 22:24:09 +08:00
|
|
|
validate_myanmar_test_SOURCES = validate_myanmar_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
validate_myanmar_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2019-01-22 22:24:09 +08:00
|
|
|
|
2018-08-27 17:44:46 +08:00
|
|
|
validator_test_SOURCES = validator_test.cc
|
2019-08-07 19:58:12 +08:00
|
|
|
validator_test_LDADD = $(TRAINING_LIBS) $(ICU_UC_LIBS)
|
2017-08-19 21:12:06 +08:00
|
|
|
|
|
|
|
# for windows
|
|
|
|
if T_WIN
|
|
|
|
apiexample_test_LDADD += -lws2_32
|
2017-09-08 22:06:19 +08:00
|
|
|
intsimdmatrix_test_LDADD += -lws2_32
|
2017-08-19 21:12:06 +08:00
|
|
|
matrix_test_LDADD += -lws2_32
|
2020-10-10 07:20:51 +08:00
|
|
|
if !DISABLED_LEGACY_ENGINE
|
2018-03-04 21:52:27 +08:00
|
|
|
osd_test_LDADD += -lws2_32
|
2020-10-10 07:20:51 +08:00
|
|
|
endif # !DISABLED_LEGACY_ENGINE
|
2018-06-17 13:31:32 +08:00
|
|
|
loadlang_test_LDADD += -lws2_32
|
2017-08-19 21:12:06 +08:00
|
|
|
endif
|
2017-09-12 18:53:26 +08:00
|
|
|
|
2018-06-06 20:20:14 +08:00
|
|
|
EXTRA_apiexample_test_DEPENDENCIES = $(abs_top_builddir)/test/testing/phototest.tif
|
|
|
|
EXTRA_apiexample_test_DEPENDENCIES += $(abs_top_builddir)/test/testing/phototest.txt
|
2017-09-12 18:53:26 +08:00
|
|
|
|
2018-06-06 20:20:14 +08:00
|
|
|
$(abs_top_builddir)/test/testing/phototest.tif:
|
2018-06-09 20:14:37 +08:00
|
|
|
mkdir -p $(top_builddir)/test/testing
|
|
|
|
ln -s $(TESTING_DIR)/phototest.tif $(top_builddir)/test/testing/phototest.tif
|
2017-09-12 18:53:26 +08:00
|
|
|
|
2018-06-06 20:20:14 +08:00
|
|
|
$(abs_top_builddir)/test/testing/phototest.txt:
|
2018-06-09 20:14:37 +08:00
|
|
|
mkdir -p $(top_builddir)/test/testing
|
|
|
|
ln -s $(TESTING_DIR)/phototest.txt $(top_builddir)/test/testing/phototest.txt
|