gradido login server, first config and code

This commit is contained in:
Dario 2019-09-20 11:17:00 +02:00
commit 866b4faedb
8 changed files with 70 additions and 0 deletions

6
.gitmodules vendored Normal file
View File

@ -0,0 +1,6 @@
[submodule "dependencies/tinf"]
path = dependencies/tinf
url = https://github.com/jibsen/tinf.git
[submodule "dependencies/iroha-ed25519"]
path = dependencies/iroha-ed25519
url = https://github.com/hyperledger/iroha-ed25519.git

38
CMakeLists.txt Normal file
View File

@ -0,0 +1,38 @@
cmake_minimum_required(VERSION 3.0)
project(Gradido_LoginServer C CXX)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin" )
add_definitions("-std=c++11")
include_directories(
"dependencies"
"dependencies/tinf/src/"
"dependencies/iroha-ed25519/include"
)
FILE(GLOB TINF "dependencies/tinf/src/*.c" "dependencies/tinf/src/*.h")
SET(LOCAL_SRCS ${TINF})
aux_source_directory("src/cpp" LOCAL_SRCS)
if(MSVC)
# src
source_group("tinf" FILES ${TINF})
endif(MSVC)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_executable(Gradido_LoginServer ${LOCAL_SRCS})
if(WIN32)
find_library(IROHA_ED25519 ed25519 PATHS "dependencies/iroha-ed25519/build/Debug" REQUIRED)
else(WIN32)
endif(WIN32)
target_link_libraries(Gradido_LoginServer ${CONAN_LIBS} ${IROHA_ED25519})

8
conanfile.txt Normal file
View File

@ -0,0 +1,8 @@
[requires]
Poco/1.9.4@pocoproject/stable
libsodium/1.0.18@bincrafters/stable
protobuf/3.9.1@bincrafters/stable
[generators]
cmake

1
dependencies/iroha-ed25519 vendored Submodule

@ -0,0 +1 @@
Subproject commit eb4c0fce900e2468b94bb9e9498af626bb66c039

1
dependencies/tinf vendored Submodule

@ -0,0 +1 @@
Subproject commit 9929246b87f0946b124cfa2a89894b8943b0b072

0
src/cpp/ServerConfig.cpp Normal file
View File

0
src/cpp/ServerConfig.h Normal file
View File

16
src/cpp/main.cpp Normal file
View File

@ -0,0 +1,16 @@
#include <stdio.h>
#include <sodium.h>
int main(int argc, char* argv[]) {
printf("hallo Welt\n");
if (sodium_init() < 0) {
/* panic! the library couldn't be initialized, it is not safe to use */
}
else {
printf("sodium initalized\n");
}
return 42;
}