Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge libclient and libapi.
Browse files Browse the repository at this point in the history
  • Loading branch information
EinMByte committed Jan 31, 2016
1 parent 5e826da commit e0f9c73
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 34 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ message(STATUS "---------------------------------------")
include(GNUInstallDirs)

set(MAIN_NAME "${PROJECT_NAME}-main")
set(API_NAME "${PROJECT_NAME}-api")
set(CLIENT_NAME "${PROJECT_NAME}-client")
set(CORE_NAME "${PROJECT_NAME}-core")
set(TESTS_NAME "${PROJECT_NAME}-tests")
Expand Down
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ include_directories(
"client"
"core")

add_subdirectory(api)
add_subdirectory(client)
add_subdirectory(core)
add_subdirectory(tests)
Expand All @@ -15,7 +14,7 @@ if(WITH_BINARY)
add_executable(${MAIN_NAME} ${MAIN_SRC})
target_link_libraries(
${MAIN_NAME}
${CLIENT_NAME} ${API_NAME} ${CORE_NAME}
${CLIENT_NAME} ${CORE_NAME}
${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
if(NOT MSVC) # FIXME: incremental linker file name (.ilk) collision for dll & exe
set_target_properties(
Expand Down
18 changes: 0 additions & 18 deletions src/api/CMakeLists.txt

This file was deleted.

9 changes: 8 additions & 1 deletion src/client/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
set(CLIENT_SRC
"Datagram.cpp"
"I2PControl/I2PControl.cpp"
"I2PControl/I2PControlServer.cpp"
"I2PTunnel/HTTPProxy.cpp"
"I2PTunnel/I2PTunnel.cpp"
"I2PTunnel/SOCKS.cpp"
"Streaming.cpp"
"AddressBook.cpp"
"Destination.cpp"
"ClientContext.cpp"
Expand Down Expand Up @@ -28,7 +35,7 @@ endif()
if(WITH_LIBRARY)
add_library(${CLIENT_NAME} ${CLIENT_SRC})
target_link_libraries(
${CLIENT_NAME} ${API_NAME} ${CORE_NAME}
${CLIENT_NAME} ${CORE_NAME}
${Boost_LIBRARIES} ${CRYPTO++_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
install(
TARGETS ${CLIENT_NAME}
Expand Down
8 changes: 4 additions & 4 deletions src/client/ClientContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

#include "AddressBook.h"
#include "Destination.h"
#include "api/I2PControl/I2PControlServer.h"
#include "api/I2PTunnel/HTTPProxy.h"
#include "api/I2PTunnel/I2PTunnel.h"
#include "api/I2PTunnel/SOCKS.h"
#include "I2PControl/I2PControlServer.h"
#include "I2PTunnel/HTTPProxy.h"
#include "I2PTunnel/I2PTunnel.h"
#include "I2PTunnel/SOCKS.h"

namespace i2p {
namespace client {
Expand Down
2 changes: 1 addition & 1 deletion src/client/Daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "RouterContext.h"
#include "RouterInfo.h"
#include "Version.h"
#include "api/Streaming.h"
#include "Streaming.h"
#include "core/util/Log.h"
#include "transport/NTCPSession.h"
#include "transport/Transports.h"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/client/Destination.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#include "Identity.h"
#include "LeaseSet.h"
#include "NetworkDatabase.h"
#include "api/Datagram.h"
#include "api/Streaming.h"
#include "Datagram.h"
#include "Streaming.h"
#include "crypto/CryptoConst.h"
#include "tunnel/TunnelPool.h"

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include "I2PTunnel.h"
#include "Identity.h"
#include "api/Streaming.h"
#include "Streaming.h"
#include "client/ClientContext.h"
#include "client/Destination.h"
#include "util/HTTP.h"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <string>

#include "Identity.h"
#include "api/Streaming.h"
#include "Streaming.h"
#include "client/Destination.h"
#include "client/I2PService.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include <string>

#include "Identity.h"
#include "api/I2PTunnel/I2PTunnel.h"
#include "api/Streaming.h"
#include "I2PTunnel/I2PTunnel.h"
#include "Streaming.h"
#include "client/ClientContext.h"
#include "client/Destination.h"
#include "util/I2PEndian.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ add_subdirectory(crypto/ed25519)
if(WITH_LIBRARY)
add_library(${CORE_NAME} ${CORE_SRC} ${EDDSA_SRC})
target_link_libraries(
${CORE_NAME} ${API_NAME}
${CORE_NAME}
${Boost_LIBRARIES} ${CRYPTO++_LIBRARIES} ${OPENSSL_LIBRARIES}
${DL_LIB})
install(
Expand Down

0 comments on commit e0f9c73

Please sign in to comment.