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:
committed by
Norman Feske
parent
a09355d77d
commit
c042419226
4
lib/import/import-c-toxcore.mk
Normal file
4
lib/import/import-c-toxcore.mk
Normal 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
17
lib/mk/c-toxcore.mk
Normal 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
|
||||
Reference in New Issue
Block a user