mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-16 02:02:14 +03:00
Summary: fbthrift generate errorneous code when cpp type IOBuf pointer is used. Let's use IOBuf object instead as it is cheap to copy construct and underlying buffer is anyway shared when objects are copied. Reviewed By: plapukhov Differential Revision: D8130040 fbshipit-source-id: 3c109a85951054fed890707f56170b46cfefc917
46 lines
1.7 KiB
Python
46 lines
1.7 KiB
Python
#!/usr/bin/env python
|
|
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
import specs.fbthrift as fbthrift
|
|
import specs.folly as folly
|
|
import specs.gmock as gmock
|
|
|
|
from shell_quoting import ShellQuoted
|
|
|
|
|
|
def fbcode_builder_spec(builder):
|
|
builder.add_option('jedisct1/libsodium:git_hash', 'stable')
|
|
builder.add_option('zeromq/libzmq:git_hash', 'v4.2.5')
|
|
return {
|
|
'depends_on': [folly, fbthrift, gmock],
|
|
'steps': [
|
|
builder.github_project_workdir('jedisct1/libsodium', '.'),
|
|
builder.step('Build and install jedisct1/libsodium', [
|
|
builder.run(ShellQuoted('./autogen.sh')),
|
|
builder.configure(),
|
|
builder.make_and_install(),
|
|
]),
|
|
|
|
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/fbzmq/build', 'facebook'),
|
|
builder.step('Build and install fbzmq/fbzmq/build', [
|
|
builder.cmake_configure('fbzmq/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')),
|
|
]),
|
|
],
|
|
}
|