2018-12-06 15:11:31 +01:00
|
|
|
DEFS = @DEFS@ \
|
|
|
|
-DSRCDIR=\"$(srcdir)\" \
|
|
|
|
-DPSL_FILE=\"$(PSL_FILE)\" \
|
|
|
|
-DPSL_TESTFILE=\"$(PSL_TESTFILE)\" \
|
|
|
|
-DPSL_DAFSA=\"psl.dafsa\" \
|
|
|
|
-DPSL_ASCII_DAFSA=\"psl_ascii.dafsa\"
|
2014-03-24 20:41:46 +01:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
2014-05-31 18:56:07 +02:00
|
|
|
LDADD = ../src/libpsl.la
|
2017-06-16 16:51:33 +02:00
|
|
|
AM_LDFLAGS = -no-install
|
2014-03-20 17:17:24 +01:00
|
|
|
|
2014-04-17 13:09:29 +02:00
|
|
|
# ./configure'd with '--disable-builtin'
|
|
|
|
# Do not call test-is-public-builtin here: it does not make sense.
|
|
|
|
# Do not call test-registrable-domain here: it would fail due to missing punycode entries in PSL file.
|
|
|
|
PSL_TESTS = test-is-public test-is-public-all test-is-cookie-domain-acceptable
|
|
|
|
|
2014-06-27 17:13:30 +02:00
|
|
|
if BUILTIN_GENERATOR_LIBICU
|
|
|
|
PSL_TESTS += test-is-public-builtin test-registrable-domain
|
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILTIN_GENERATOR_LIBIDN2
|
|
|
|
PSL_TESTS += test-is-public-builtin test-registrable-domain
|
2014-04-17 13:09:29 +02:00
|
|
|
endif
|
|
|
|
|
2014-06-29 22:56:33 +02:00
|
|
|
if BUILTIN_GENERATOR_LIBIDN
|
|
|
|
PSL_TESTS += test-is-public-builtin test-registrable-domain
|
|
|
|
endif
|
|
|
|
|
2014-03-20 17:17:24 +01:00
|
|
|
check_PROGRAMS = $(PSL_TESTS)
|
|
|
|
|
|
|
|
TESTS_ENVIRONMENT = TESTS_VALGRIND="@VALGRIND_ENVIRONMENT@"
|
|
|
|
TESTS = $(PSL_TESTS)
|
2016-09-26 15:15:34 +02:00
|
|
|
|
2016-11-05 11:17:11 +01:00
|
|
|
# dafsa.psl and dafsa_ascii.psl must be created before any test is executed
|
2016-09-26 15:15:34 +02:00
|
|
|
# check-local target works in parallel to the tests, so the test suite will likely fail
|
2016-11-05 11:17:11 +01:00
|
|
|
BUILT_SOURCES = psl.dafsa psl_ascii.dafsa
|
2019-04-17 15:25:48 +02:00
|
|
|
psl.dafsa: $(PSL_FILE)
|
2019-07-11 18:47:11 +02:00
|
|
|
$(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary "$(PSL_FILE)" psl.dafsa
|
2019-04-17 15:25:48 +02:00
|
|
|
psl_ascii.dafsa: $(PSL_FILE)
|
2019-07-11 18:47:11 +02:00
|
|
|
$(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary --encoding=ascii "$(PSL_FILE)" psl_ascii.dafsa
|
2016-09-26 15:15:34 +02:00
|
|
|
|
|
|
|
clean-local:
|
2016-11-05 11:17:11 +01:00
|
|
|
rm -f psl.dafsa psl_ascii.dafsa
|
2019-04-17 12:05:00 +02:00
|
|
|
|
|
|
|
EXTRA_DIST = meson.build
|