proxygen
fbthrift.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # Copyright (c) Facebook, Inc. and its affiliates.
3 from __future__ import absolute_import
4 from __future__ import division
5 from __future__ import print_function
6 from __future__ import unicode_literals
7 
8 import specs.folly as folly
9 import specs.fizz as fizz
10 import specs.sodium as sodium
11 import specs.wangle as wangle
12 import specs.zstd as zstd
13 
14 from shell_quoting import ShellQuoted
15 
16 
17 def fbcode_builder_spec(builder):
18  # This API should change rarely, so build the latest tag instead of master.
19  builder.add_option(
20  'no1msd/mstch:git_hash',
21  ShellQuoted('$(git describe --abbrev=0 --tags)')
22  )
23  builder.add_option(
24  'rsocket/rsocket-cpp/yarpl/build:cmake_defines', {'BUILD_TESTS': 'OFF'}
25  )
26  builder.add_option('krb5/krb5:git_hash', 'krb5-1.16.1-final')
27  return {
28  'depends_on': [folly, fizz, sodium, wangle, zstd],
29  'steps': [
30  # This isn't a separete spec, since only fbthrift uses mstch.
31  builder.github_project_workdir('no1msd/mstch', 'build'),
32  builder.cmake_install('no1msd/mstch'),
33  builder.github_project_workdir('krb5/krb5', 'src'),
34  builder.autoconf_install('krb5/krb5'),
35  builder.github_project_workdir(
36  'rsocket/rsocket-cpp', 'yarpl/build'
37  ),
38  builder.step('configuration for yarpl', [
39  builder.cmake_configure('rsocket/rsocket-cpp/yarpl/build'),
40  ]),
41  builder.cmake_install('rsocket/rsocket-cpp/yarpl'),
42  builder.fb_github_cmake_install('fbthrift/thrift'),
43  ],
44  }
def fbcode_builder_spec(builder)
Definition: fbthrift.py:17