#!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.

import specs.fizz as fizz
import specs.fmt as fmt
import specs.folly as folly
import specs.gmock as gmock
import specs.sodium as sodium


def fbcode_builder_spec(builder):
    # Projects that **depend** on wangle need not spend time on tests.
    builder.add_option(
        "wangle/wangle/build:cmake_defines",
        {
            # This is set to ON in the wangle `fbcode_builder_config.py`
            "BUILD_TESTS": "OFF"
        },
    )
    return {
        "depends_on": [gmock, fmt, folly, fizz, sodium],
        "steps": [builder.fb_github_cmake_install("wangle/wangle/build")],
    }
