sapling/build/fbcode_builder/specs/fizz.py
Luca Niccolini 49e3719cd0 fizz, mvfst, wangle, proxygen: add gmock as fbcode_build dependency
Summary: they were all transitively pulling it from folly

Reviewed By: mjoras

Differential Revision: D23683292

fbshipit-source-id: 2085a580584891b3fd0960c14505c0f675a11bd5
2020-09-14 22:04:48 -07:00

32 lines
942 B
Python

#!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import specs.gmock as gmock
import specs.fmt as fmt
import specs.folly as folly
import specs.sodium as sodium
def fbcode_builder_spec(builder):
builder.add_option(
"fizz/fizz/build:cmake_defines",
{
# Fizz's build is kind of broken, in the sense that both `mvfst`
# and `proxygen` depend on files that are only installed with
# `BUILD_TESTS` enabled, e.g. `fizz/crypto/test/TestUtil.h`.
"BUILD_TESTS": "ON"
},
)
return {
"depends_on": [gmock, fmt, folly, sodium],
"steps": [
builder.fb_github_cmake_install(
"fizz/fizz/build", github_org="facebookincubator"
)
],
}