mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-05 19:55:47 +03:00
add manifest for katran and its dependencies
Summary: Dependencies include libbpf and libelf Reviewed By: wez Differential Revision: D17363237 fbshipit-source-id: 4408f2fbabbbde170b57779422038b32e52c6f51
This commit is contained in:
committed by
Facebook Github Bot
parent
8e09390f9d
commit
aacf52e6f7
@@ -114,7 +114,7 @@ class MakeBuilder(BuilderBase):
|
|||||||
)
|
)
|
||||||
self._run_cmd(cmd, env=env)
|
self._run_cmd(cmd, env=env)
|
||||||
|
|
||||||
install_cmd = ["make", "install", "PREFIX=" + self.inst_dir]
|
install_cmd = ["make", "install"] + self.args + ["PREFIX=" + self.inst_dir]
|
||||||
self._run_cmd(install_cmd, env=env)
|
self._run_cmd(install_cmd, env=env)
|
||||||
|
|
||||||
|
|
||||||
|
35
build/fbcode_builder/manifests/katran
Normal file
35
build/fbcode_builder/manifests/katran
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
[manifest]
|
||||||
|
name = katran
|
||||||
|
fbsource_path = fbcode/katran
|
||||||
|
shipit_project = katran
|
||||||
|
shipit_fbcode_builder = true
|
||||||
|
|
||||||
|
[git]
|
||||||
|
repo_url = https://github.com/facebookincubator/katran.git
|
||||||
|
|
||||||
|
[build.not(os=linux)]
|
||||||
|
builder = nop
|
||||||
|
|
||||||
|
[build.os=linux]
|
||||||
|
builder = cmake
|
||||||
|
subdir = katran
|
||||||
|
|
||||||
|
[cmake.defines]
|
||||||
|
BUILD_TESTS = OFF
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
folly
|
||||||
|
fizz
|
||||||
|
libbpf
|
||||||
|
libmnl
|
||||||
|
zlib
|
||||||
|
googletest
|
||||||
|
|
||||||
|
|
||||||
|
[shipit.pathmap]
|
||||||
|
fbcode/katran/public_root = .
|
||||||
|
fbcode/katran = katran
|
||||||
|
|
||||||
|
[shipit.strip]
|
||||||
|
^fbcode/katran/facebook
|
||||||
|
^fbcode/katran/OSS_SYNC
|
20
build/fbcode_builder/manifests/libbpf
Normal file
20
build/fbcode_builder/manifests/libbpf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[manifest]
|
||||||
|
name = libbpf
|
||||||
|
|
||||||
|
[download]
|
||||||
|
url = https://github.com/libbpf/libbpf/archive/v0.0.4.tar.gz
|
||||||
|
sha256 = bb810e6d236437ebf51e57f49dd68738d5b944108470a99afc7070aa3be06349
|
||||||
|
|
||||||
|
# BPF only builds on linux, so make it a NOP on other platforms
|
||||||
|
[build.not(os=linux)]
|
||||||
|
builder = nop
|
||||||
|
|
||||||
|
[build.os=linux]
|
||||||
|
builder = make
|
||||||
|
subdir = libbpf-0.0.4/src
|
||||||
|
|
||||||
|
[make.args]
|
||||||
|
BUILD_STATIC_ONLY=y
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
libelf
|
14
build/fbcode_builder/manifests/libelf
Normal file
14
build/fbcode_builder/manifests/libelf
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[manifest]
|
||||||
|
name = libelf
|
||||||
|
|
||||||
|
[download]
|
||||||
|
url = https://ftp.osuosl.org/pub/blfs/conglomeration/libelf/libelf-0.8.13.tar.gz
|
||||||
|
sha256 = 591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d
|
||||||
|
|
||||||
|
# libelf only makes sense on linux, so make it a NOP on other platforms
|
||||||
|
[build.not(os=linux)]
|
||||||
|
builder = nop
|
||||||
|
|
||||||
|
[build.os=linux]
|
||||||
|
builder = autoconf
|
||||||
|
subdir = libelf-0.8.13
|
@@ -8,3 +8,8 @@ sha256 = c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
|
|||||||
[build.os=windows]
|
[build.os=windows]
|
||||||
builder = cmake
|
builder = cmake
|
||||||
subdir = zlib-1.2.11
|
subdir = zlib-1.2.11
|
||||||
|
|
||||||
|
# Every platform but windows ships with zlib, so just skip
|
||||||
|
# building on not(windows)
|
||||||
|
[build.not(os=windows)]
|
||||||
|
builder = nop
|
||||||
|
Reference in New Issue
Block a user