mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'master' of https://github.com/nurupo/InsertProjectNameHere into nurupo-master
Conflicts: testing/CMakeLists.txt
This commit is contained in:
commit
b1726f55ed
|
@ -6,12 +6,12 @@ if(WIN32)
|
|||
endif()
|
||||
|
||||
set(core_sources
|
||||
DHT.c
|
||||
network.c
|
||||
Lossless_UDP.c
|
||||
net_crypto.c
|
||||
friend_requests.c
|
||||
LAN_discovery.c
|
||||
Messenger.c)
|
||||
DHT.c
|
||||
network.c
|
||||
Lossless_UDP.c
|
||||
net_crypto.c
|
||||
friend_requests.c
|
||||
LAN_discovery.c
|
||||
Messenger.c)
|
||||
|
||||
add_library(core ${core_sources})
|
||||
|
|
|
@ -169,7 +169,7 @@ void shutdown_networking()
|
|||
address should represent IPv4, IPv6 or a hostname
|
||||
on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i
|
||||
on failure returns -1 */
|
||||
int resolve_addr(char *address)
|
||||
int resolve_addr(const char *address)
|
||||
{
|
||||
struct addrinfo hints;
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
|
|
|
@ -125,7 +125,7 @@ void shutdown_networking();
|
|||
address should represent IPv4, IPv6 or a hostname
|
||||
on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i
|
||||
on failure returns -1 */
|
||||
int resolve_addr(char *address);
|
||||
int resolve_addr(const char *address);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -4,7 +4,9 @@ project(DHT_bootstrap_daemon C)
|
|||
set(exe_name DHT_bootstrap_daemon)
|
||||
|
||||
add_executable(${exe_name}
|
||||
DHT_bootstrap_daemon.c)
|
||||
DHT_bootstrap_daemon.c)
|
||||
|
||||
target_link_libraries(${exe_name}
|
||||
config)
|
||||
|
||||
target_link_libraries(${exe_name} config)
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -4,6 +4,7 @@ project(DHT_bootstrap C)
|
|||
set(exe_name DHT_bootstrap)
|
||||
|
||||
add_executable(${exe_name}
|
||||
DHT_bootstrap.c ../testing/misc_tools.c)
|
||||
DHT_bootstrap.c
|
||||
../testing/misc_tools.c)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -9,10 +9,11 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testclient.cmake)
|
|||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testserver.cmake)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Messenger_test.cmake)
|
||||
if(WIN32)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox_win32.cmake)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox_win32.cmake)
|
||||
endif()
|
||||
if(NOT WIN32)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/toxic.cmake)
|
||||
|
||||
if(NOT WIN32)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/toxic.cmake)
|
||||
add_subdirectory(other)
|
||||
endif()
|
||||
|
|
|
@ -4,6 +4,7 @@ project(DHT_cryptosendfiletest C)
|
|||
set(exe_name DHT_cryptosendfiletest)
|
||||
|
||||
add_executable(${exe_name}
|
||||
DHT_cryptosendfiletest.c misc_tools.c)
|
||||
DHT_cryptosendfiletest.c
|
||||
misc_tools.c)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -4,6 +4,6 @@ project(DHT_sendfiletest C)
|
|||
set(exe_name DHT_sendfiletest)
|
||||
|
||||
add_executable(${exe_name}
|
||||
DHT_sendfiletest.c)
|
||||
DHT_sendfiletest.c)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -4,6 +4,7 @@ project(DHT_test C)
|
|||
set(exe_name DHT_test)
|
||||
|
||||
add_executable(${exe_name}
|
||||
DHT_test.c misc_tools.c)
|
||||
DHT_test.c
|
||||
misc_tools.c)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -4,6 +4,6 @@ project(Lossless_UDP_testclient C)
|
|||
set(exe_name Lossless_UDP_testclient)
|
||||
|
||||
add_executable(${exe_name}
|
||||
Lossless_UDP_testclient.c)
|
||||
Lossless_UDP_testclient.c)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -4,6 +4,6 @@ project(Lossless_UDP_testserver C)
|
|||
set(exe_name Lossless_UDP_testserver)
|
||||
|
||||
add_executable(${exe_name}
|
||||
Lossless_UDP_testserver.c)
|
||||
Lossless_UDP_testserver.c)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -4,6 +4,6 @@ project(Messenger_test C)
|
|||
set(exe_name Messenger_test)
|
||||
|
||||
add_executable(${exe_name}
|
||||
Messenger_test.c misc_tools.c)
|
||||
Messenger_test.c misc_tools.c)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
|
@ -4,8 +4,9 @@ project(nTox C)
|
|||
set(exe_name nTox)
|
||||
|
||||
add_executable(${exe_name}
|
||||
nTox.c misc_tools.c)
|
||||
nTox.c misc_tools.c)
|
||||
|
||||
target_link_libraries(${exe_name} ncurses)
|
||||
target_link_libraries(${exe_name}
|
||||
ncurses)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
||||
|
|
13
testing/toxic/CMakeLists.txt
Normal file
13
testing/toxic/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
cmake_minimum_required(VERSION 2.6.0)
|
||||
project(toxic C)
|
||||
|
||||
set(exe_name toxic)
|
||||
|
||||
add_executable(${exe_name}
|
||||
toxic/main.c
|
||||
toxic/prompt.c)
|
||||
|
||||
target_link_libraries(${exe_name}
|
||||
curses)
|
||||
|
||||
linkCoreLibraries(${exe_name})
|
Loading…
Reference in New Issue
Block a user