mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
e4f66475d8
Add a protocol and the APIs to straightforwardly support user avatars in client applications. The protocol is designed to transfer avatars in background, between friends only, and minimize network load by providing a lightweight avatar notification for local cache validation. Strict safeguards are imposed to avoid damage from non-cooperative or malicious users and to limit network usage. The complete documentation is available in docs/Avatars.md and sample code is available in testing/test_avatars.c. Code and documentation are released under the GNU GPLv3 or later, as described in the file COPYING.
128 lines
3.5 KiB
Makefile
128 lines
3.5 KiB
Makefile
if BUILD_NTOX
|
|
|
|
bin_PROGRAMS += nTox
|
|
|
|
nTox_SOURCES = ../testing/nTox.h \
|
|
../testing/nTox.c
|
|
|
|
nTox_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS) \
|
|
$(NCURSES_CFLAGS)
|
|
|
|
nTox_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NAC_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(NCURSES_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
endif
|
|
|
|
|
|
if BUILD_TESTING
|
|
|
|
noinst_PROGRAMS += DHT_test \
|
|
Messenger_test \
|
|
dns3_test
|
|
|
|
DHT_test_SOURCES = ../testing/DHT_test.c
|
|
|
|
DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
DHT_test_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
|
|
|
|
Messenger_test_SOURCES = \
|
|
../testing/Messenger_test.c
|
|
|
|
Messenger_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
Messenger_test_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
|
|
|
|
|
|
dns3_test_SOURCES = \
|
|
../testing/dns3_test.c
|
|
|
|
dns3_test_CFLAGS = \
|
|
$(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
dns3_test_LDADD = \
|
|
$(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxdns.la \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
|
|
if !WIN32
|
|
|
|
noinst_PROGRAMS += tox_sync
|
|
|
|
tox_sync_SOURCES = ../testing/tox_sync.c
|
|
|
|
tox_sync_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
tox_sync_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS)
|
|
|
|
|
|
noinst_PROGRAMS += tox_shell
|
|
|
|
tox_shell_SOURCES = ../testing/tox_shell.c
|
|
|
|
tox_shell_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
tox_shell_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
-lutil
|
|
|
|
|
|
noinst_PROGRAMS += test_avatars
|
|
|
|
test_avatars_SOURCES = ../testing/test_avatars.c
|
|
|
|
test_avatars_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
test_avatars_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS)
|
|
|
|
endif
|
|
|
|
EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c
|
|
|
|
endif
|