From 806528bd0e7b2e91c1861a571ae9a26847748967 Mon Sep 17 00:00:00 2001 From: dangleptr <37216992+dangleptr@users.noreply.github.com> Date: Sat, 1 Jun 2019 14:10:48 +0800 Subject: [PATCH] Clean up dependency on proxygen libs (#488) * Clean up dependency on proxygen libs * Address comments --- CMakeLists.txt | 2 -- src/daemons/CMakeLists.txt | 3 +++ src/executor/CMakeLists.txt | 6 ++++-- src/executor/test/CMakeLists.txt | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ad69216f74..abdc4c8982c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,8 +277,6 @@ macro(nebula_link_libraries target) target_link_libraries( ${target} ${ARGN} - proxygenhttpserver - proxygenlib folly glog gflags diff --git a/src/daemons/CMakeLists.txt b/src/daemons/CMakeLists.txt index 418846cf56c..b601b86ab53 100644 --- a/src/daemons/CMakeLists.txt +++ b/src/daemons/CMakeLists.txt @@ -2,6 +2,7 @@ add_executable( nebula-graphd GraphDaemon.cpp $ + $ $ $ $ @@ -38,6 +39,7 @@ add_executable( nebula-storaged StorageDaemon.cpp $ + $ $ $ $ @@ -69,6 +71,7 @@ add_executable( nebula-metad MetaDaemon.cpp $ + $ $ $ $ diff --git a/src/executor/CMakeLists.txt b/src/executor/CMakeLists.txt index 10d040de7b2..77d98a992d1 100644 --- a/src/executor/CMakeLists.txt +++ b/src/executor/CMakeLists.txt @@ -2,7 +2,6 @@ add_library( graph_obj OBJECT GraphFlags.cpp GraphService.cpp - GraphHttpHandler.cpp ClientSession.cpp SessionManager.cpp ExecutionEngine.cpp @@ -40,12 +39,15 @@ add_dependencies( base_obj parser_obj graph_thrift_obj - ws_obj meta_thrift_obj meta_client schema_obj stats_obj ) +add_library( + graph_http_obj OBJECT + GraphHttpHandler.cpp +) add_subdirectory(test) diff --git a/src/executor/test/CMakeLists.txt b/src/executor/test/CMakeLists.txt index f621c1f5eb1..046d833d1ca 100644 --- a/src/executor/test/CMakeLists.txt +++ b/src/executor/test/CMakeLists.txt @@ -125,6 +125,7 @@ add_executable( TestBase.cpp GraphHttpHandlerTest.cpp $ + $ $ $ $