mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
89 lines
1.9 KiB
Makefile
89 lines
1.9 KiB
Makefile
if BUILD_TESTS
|
|
|
|
TESTS = messenger_autotest crypto_test network_test assoc_test onion_test TCP_test tox_test
|
|
check_PROGRAMS = messenger_autotest crypto_test network_test assoc_test onion_test TCP_test tox_test
|
|
|
|
|
|
AUTOTEST_CFLAGS = \
|
|
$(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS) \
|
|
$(CHECK_CFLAGS)
|
|
|
|
AUTOTEST_LDADD = \
|
|
$(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(CHECK_LIBS)
|
|
|
|
|
|
if BUILD_AV
|
|
TESTS += toxav_basic_test
|
|
check_PROGRAMS += toxav_basic_test
|
|
AUTOTEST_LDADD += libtoxav.la
|
|
endif
|
|
|
|
messenger_autotest_SOURCES = ../auto_tests/messenger_test.c
|
|
|
|
messenger_autotest_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
messenger_autotest_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
crypto_test_SOURCES = ../auto_tests/crypto_test.c
|
|
|
|
crypto_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
crypto_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
network_test_SOURCES = ../auto_tests/network_test.c
|
|
|
|
network_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
network_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
assoc_test_SOURCES = ../auto_tests/assoc_test.c
|
|
|
|
assoc_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
assoc_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
onion_test_SOURCES = ../auto_tests/onion_test.c
|
|
|
|
onion_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
onion_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
TCP_test_SOURCES = ../auto_tests/TCP_test.c
|
|
|
|
TCP_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
TCP_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
tox_test_SOURCES = ../auto_tests/tox_test.c
|
|
|
|
tox_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
tox_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
if BUILD_AV
|
|
toxav_basic_test_SOURCES = ../auto_tests/toxav_basic_test.c
|
|
|
|
toxav_basic_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
toxav_basic_test_LDADD = $(AUTOTEST_LDADD)
|
|
endif
|
|
|
|
endif
|
|
|
|
EXTRA_DIST += $(top_srcdir)/auto_tests/friends_test.c
|
|
|