1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

opensource/fbcode_builder/getdeps.py: support cargo dependencies in cargo builds

Summary:
With this change the getdeps' CargoBuilder will support depencies between cargo builds.

The way how it works is documented in the code and required few assumptions about how a cargo project has to be defined in order to support this.

This change also adds the "mononoke" manifest and few Cargo.toml files to the mononoke project to prove that this new feature works.

Reviewed By: farnz

Differential Revision: D19468912

fbshipit-source-id: f299733cbbc2ec7bca399c898ec8d710334d0fa9
This commit is contained in:
Lukas Piatkowski
2020-01-20 22:59:09 -08:00
committed by Facebook Github Bot
parent 67bbf4af6f
commit 04a188eabe
4 changed files with 214 additions and 6 deletions

View File

@@ -415,7 +415,7 @@ class BuildCmd(ProjectCmdBase):
os.unlink(built_marker)
src_dir = fetcher.get_src_dir()
builder = m.create_builder(
loader.build_opts, src_dir, build_dir, inst_dir, ctx
loader.build_opts, src_dir, build_dir, inst_dir, ctx, loader
)
builder.build(install_dirs, reconfigure=reconfigure)
@@ -544,7 +544,7 @@ class TestCmd(ProjectCmdBase):
ctx = loader.ctx_gen.get_context(m.name)
build_dir = loader.get_project_build_dir(m)
builder = m.create_builder(
loader.build_opts, src_dir, build_dir, inst_dir, ctx
loader.build_opts, src_dir, build_dir, inst_dir, ctx, loader
)
builder.run_tests(
install_dirs,