Skip to content

Commit

Permalink
rework the build_katran script for building and setting up katran
Browse files Browse the repository at this point in the history
Summary:
the central idea is to install all the dependencies such as folly, grpc, libbpf
etc on a local prefix (rather than at host level)

Reviewed By: lnicco

Differential Revision: D17595429

fbshipit-source-id: 84b1fbc21483865ed13ed9910e12718444368a2b
  • Loading branch information
udippant authored and facebook-github-bot committed Oct 2, 2019
1 parent 5a242ca commit 3184a59
Show file tree
Hide file tree
Showing 7 changed files with 339 additions and 186 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
_build/
6 changes: 2 additions & 4 deletions CMakeLists.txt
Expand Up @@ -9,6 +9,8 @@ set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH})

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# for modules vended by fbcode_builder and getdeps
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build/fbcode_builder/CMake)

# KATRAN_FBCODE_ROOT is where the top level katran/ directory resides, so
# an #include <katran/path/to/file> will resolve to
Expand All @@ -26,14 +28,10 @@ set(CMAKE_CXX_STANDARD 14)

# Dependencies
find_package(folly CONFIG REQUIRED)
find_package(Fizz REQUIRED)
find_package(Glog REQUIRED)
find_package(Gflags REQUIRED)
find_package(Threads)

SET(LIBFIZZ_LIBRARY ${FIZZ_LIBRARIES})
SET(LIBFIZZ_INCLUDE_DIR ${FIZZ_INCLUDE_DIR})

include_directories(".")
add_subdirectory(katran)

Expand Down

0 comments on commit 3184a59

Please sign in to comment.