From 0f31b948bad858bda8e5d21e845827c648c512ec Mon Sep 17 00:00:00 2001 From: Lu Qiuwen Date: Mon, 22 Oct 2018 15:33:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0test-addr=E7=9A=84MESA=5Fhand?= =?UTF-8?q?le=5Flogger=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/CMakeLists.txt | 5 +++-- platform/src/proxy.cpp | 2 -- plugin/protocol/http/include/internal/http_common.h | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index df8c7c7..f9ce851 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,11 +1,12 @@ add_library(common src/tfe_utils.cpp src/tfe_types.cpp src/tfe_future.cpp src/tfe_http.cpp src/tfe_plugin.cpp src/tfe_rpc.cpp) target_include_directories(common PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) -target_link_libraries(common MESA_handle_logger libevent-static libevent-static-openssl libevent-static-pthreads) +target_link_libraries(common PUBLIC libevent-static libevent-static-openssl libevent-static-pthreads) +target_link_libraries(common PUBLIC MESA_handle_logger) ### UNITTEST CASE add_executable(test-addr test/test_addr.cpp src/tfe_types.cpp src/tfe_utils.cpp) target_include_directories(test-addr PRIVATE include) -target_link_libraries(test-addr gtest) +target_link_libraries(test-addr PRIVATE gtest MESA_handle_logger) include(GoogleTest) gtest_discover_tests(test-addr) diff --git a/platform/src/proxy.cpp b/platform/src/proxy.cpp index c1fa512..7234d44 100644 --- a/platform/src/proxy.cpp +++ b/platform/src/proxy.cpp @@ -285,8 +285,6 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - - future_promise_library_init(); tango_cache_global_init(); diff --git a/plugin/protocol/http/include/internal/http_common.h b/plugin/protocol/http/include/internal/http_common.h index ccc0b0b..85b5673 100644 --- a/plugin/protocol/http/include/internal/http_common.h +++ b/plugin/protocol/http/include/internal/http_common.h @@ -11,6 +11,7 @@ extern "C" struct http_plugin { + }; TAILQ_HEAD(hs_private_list, http_session_private);