Merge pull request #622 from jin-eld/no-tox-sync-on-windows

Do not build tox_sync on win32
This commit is contained in:
irungentoo 2013-10-16 09:10:57 -07:00
commit 31b371e617
2 changed files with 10 additions and 8 deletions

View File

@ -587,6 +587,7 @@ AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
AM_CONDITIONAL(BUILD_NTOX, test "x$BUILD_NTOX" = "xyes")
AM_CONDITIONAL(BUILD_AV, test "x$BUILD_AV" = "xyes")
AM_CONDITIONAL(BUILD_TESTING, test "x$BUILD_TESTING" = "xyes")
AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
AC_CONFIG_FILES([Makefile
build/Makefile

View File

@ -25,8 +25,7 @@ noinst_PROGRAMS += DHT_test \
Lossless_UDP_testclient \
Lossless_UDP_testserver \
Messenger_test \
crypto_speed_test \
tox_sync
crypto_speed_test
DHT_test_SOURCES = ../testing/DHT_test.c
@ -102,20 +101,22 @@ crypto_speed_test_LDADD = \
$(NACL_LIBS) \
$(WINSOCK2_LIBS)
tox_sync_SOURCES = \
../testing/tox_sync.c
if !WIN32
tox_sync_CFLAGS = \
$(LIBSODIUM_CFLAGS) \
noinst_PROGRAMS += tox_sync
tox_sync_SOURCES = ../testing/tox_sync.c
tox_sync_CFLAGS = $(LIBSODIUM_CFLAGS) \
$(NACL_CFLAGS)
tox_sync_LDADD = \
$(LIBSODIUM_LDFLAGS) \
tox_sync_LDADD = $(LIBSODIUM_LDFLAGS) \
$(NACL_LDFLAGS) \
libtoxcore.la \
$(LIBSODIUM_LIBS) \
$(NACL_LIBS) \
$(WINSOCK2_LIBS)
endif
EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c