mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-08 18:02:05 +03:00
Summary: The future is now. Reviewed By: xavierd Differential Revision: D33714537 fbshipit-source-id: 8d282bbe7391c4b72b70dab54a5c252060fba457
46 lines
1.6 KiB
Python
46 lines
1.6 KiB
Python
#!/usr/bin/env python
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
import specs.fbthrift as fbthrift
|
|
import specs.fmt as fmt
|
|
import specs.folly as folly
|
|
import specs.gmock as gmock
|
|
import specs.sodium as sodium
|
|
from shell_quoting import ShellQuoted
|
|
|
|
|
|
def fbcode_builder_spec(builder):
|
|
builder.add_option("zeromq/libzmq:git_hash", "v4.2.2")
|
|
return {
|
|
"depends_on": [fmt, folly, fbthrift, gmock, sodium],
|
|
"steps": [
|
|
builder.github_project_workdir("zeromq/libzmq", "."),
|
|
builder.step(
|
|
"Build and install zeromq/libzmq",
|
|
[
|
|
builder.run(ShellQuoted("./autogen.sh")),
|
|
builder.configure(),
|
|
builder.make_and_install(),
|
|
],
|
|
),
|
|
builder.fb_github_project_workdir("fbzmq/_build", "facebook"),
|
|
builder.step(
|
|
"Build and install fbzmq/",
|
|
[
|
|
builder.cmake_configure("fbzmq/_build"),
|
|
# we need the pythonpath to find the thrift compiler
|
|
builder.run(
|
|
ShellQuoted(
|
|
'PYTHONPATH="$PYTHONPATH:"{p}/lib/python2.7/site-packages '
|
|
"make -j {n}"
|
|
).format(
|
|
p=builder.option("prefix"),
|
|
n=builder.option("make_parallelism"),
|
|
)
|
|
),
|
|
builder.run(ShellQuoted("make install")),
|
|
],
|
|
),
|
|
],
|
|
}
|