Skip to content

Commit

Permalink
implemented message handling using dispatcher
Browse files Browse the repository at this point in the history
implemented deploying services from libraries
statically linked service groups
added codegeneration tool
  • Loading branch information
loentar committed Dec 29, 2015
1 parent 92c3726 commit 0a05c60
Show file tree
Hide file tree
Showing 105 changed files with 10,196 additions and 476 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tmp
*.creator.user
*.creator.user*
16 changes: 15 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,29 @@ project (ngrest)

include(CheckCXXCompilerFlag)

check_cxx_compiler_flag(-std=gnu++11 HAS_CXX11)
if (HAS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
endif()

check_cxx_compiler_flag(-Wl,--no-undefined HAS_NO_UNDEFINED)
if (HAS_NO_UNDEFINED)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
endif()

check_cxx_compiler_flag(-pedantic HAS_PEDANTIC)
if (HAS_PEDANTIC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-undefined")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic")
endif()

check_cxx_compiler_flag(-Wall HAS_WALL)
if (HAS_WALL)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()

if (CMAKE_BUILD_TYPE MATCHES "DEBUG")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
endif()

set(PROJECT_DEPLOY_DIR ${PROJECT_BINARY_DIR}/deploy)
set(PROJECT_INCLUDE_DIR ${PROJECT_DEPLOY_DIR}/include)
Expand All @@ -23,5 +36,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_DEPLOY_DIR}/bin)
include_directories("${PROJECT_INCLUDE_DIR}")

add_subdirectory(core)
add_subdirectory(tools)
add_subdirectory(tests)

1 change: 1 addition & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ project (core)
add_subdirectory(utils)
add_subdirectory(common)
add_subdirectory(json)
add_subdirectory(xml)
add_subdirectory(engine)
add_subdirectory(server)
#add_subdirectory(transport)
2 changes: 0 additions & 2 deletions core/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ file(COPY ${NGRESTCOMMON_HEADERS} DESTINATION ${PROJECT_INCLUDE_DIR}/ngrest/comm
add_library(ngrestcommon SHARED ${NGRESTCOMMON_SOURCES})

target_link_libraries(ngrestcommon ngrestutils)

target_compile_features(ngrestcommon PRIVATE cxx_range_for)
2 changes: 0 additions & 2 deletions core/common/src/Message.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ struct Response

Node* node;

// char* body = nullptr;
// uint64_t bodySize = 0;
MemPool poolBody;
};

Expand Down
2 changes: 0 additions & 2 deletions core/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ file(COPY ${NGRESTENGINE_HEADERS} DESTINATION ${PROJECT_INCLUDE_DIR}/ngrest/engi
add_library(ngrestengine SHARED ${NGRESTENGINE_SOURCES})

target_link_libraries(ngrestengine ngrestutils ngrestcommon ngrestjson)

target_compile_features(ngrestengine PRIVATE cxx_range_for)
Loading

0 comments on commit 0a05c60

Please sign in to comment.