diff --git a/build/fbcode_builder/getdeps/builder.py b/build/fbcode_builder/getdeps/builder.py index 126c9f906..206d7ee9d 100644 --- a/build/fbcode_builder/getdeps/builder.py +++ b/build/fbcode_builder/getdeps/builder.py @@ -114,7 +114,7 @@ class MakeBuilder(BuilderBase): ) 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) diff --git a/build/fbcode_builder/manifests/katran b/build/fbcode_builder/manifests/katran new file mode 100644 index 000000000..4718105dd --- /dev/null +++ b/build/fbcode_builder/manifests/katran @@ -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 diff --git a/build/fbcode_builder/manifests/libbpf b/build/fbcode_builder/manifests/libbpf new file mode 100644 index 000000000..087fc51bc --- /dev/null +++ b/build/fbcode_builder/manifests/libbpf @@ -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 diff --git a/build/fbcode_builder/manifests/libelf b/build/fbcode_builder/manifests/libelf new file mode 100644 index 000000000..4ad23d4c1 --- /dev/null +++ b/build/fbcode_builder/manifests/libelf @@ -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 diff --git a/build/fbcode_builder/manifests/zlib b/build/fbcode_builder/manifests/zlib index fbd6664ef..2105aea24 100644 --- a/build/fbcode_builder/manifests/zlib +++ b/build/fbcode_builder/manifests/zlib @@ -8,3 +8,8 @@ sha256 = c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1 [build.os=windows] builder = cmake 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