Port of the c-toxcore Tox library

Port of the C reference implementation of the Tox chat protocol.
Includes a native DHT bootstrap node, see run/tox_dht_bootstrap.

https://tox.chat/
This commit is contained in:
Emery Hemingway
2019-01-10 06:58:52 +01:00
committed by Norman Feske
parent a09355d77d
commit c042419226
8 changed files with 530 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
TOXCORE_PORT_DIR := $(call select_from_ports,c-toxcore)
INC_DIR += $(TOXCORE_PORT_DIR)/include
INC_DIR += $(call select_from_repositories,include/toxcore)

17
lib/mk/c-toxcore.mk Normal file
View File

@@ -0,0 +1,17 @@
include $(REP_DIR)/lib/import/import-c-toxcore.mk
TOXCORE_SRC_DIR = $(TOXCORE_PORT_DIR)/src/lib/c-toxcore
CC_C_OPT += -std=c99 -D_XOPEN_SOURCE
INC_DIR += $(TOXCORE_SRC_DIR)/toxcore
TOXCORE_SRC_C := $(notdir $(wildcard $(TOXCORE_SRC_DIR)/toxcore/*.c))
SRC_C += $(filter-out $(TOXCORE_SRC_FILTER),$(TOXCORE_SRC_C))
LIBS := libsodium libc
vpath %.c $(TOXCORE_SRC_DIR)/toxcore
SHARED_LIB = yes