sapling/DEFS
Michael Bolin 3f2f22d8fa Normalize build targets to always start with //.
Summary:
We can use `//` exclusively because we always build Eden with Buck and never
fbbuild, our legacy build system for fbcode.

This revision was initially created by running:

```
find eden -name TARGETS | xargs sed -i -e 's#@/#//#g'
```

And then manually updating the `DEFS` file now that we no longer need
some normalization code for an outdated pattern.

But then I got annoyed by other inconsistencies, so I went through and
alpha-sorted some lists, replaced all double quotes with single quotes,
and fixed indents to be two spaces.

Reviewed By: simpkins

Differential Revision: D4356724

fbshipit-source-id: ab07a48f12fa937c257213d12331efdf09e42da6
2016-12-21 16:28:02 -08:00

76 lines
1.4 KiB
Plaintext

# Copyright (c) 2016, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# This file creates an adapter between some internal Facebook-isms and the
# public version of Buck. Over time, this adapter should be unnecesary.
def cpp_library(
name,
srcs=None,
headers=None,
deps=None,
external_deps=None,
):
# TODO: Handle external_deps.
cxx_library(
name=name,
srcs=srcs,
headers=headers,
deps=deps,
visibility=[
'PUBLIC',
],
)
def cpp_binary(
name,
output_subdir=None,
srcs=None,
deps=None,
):
# TODO: Handle output_subdir.
cxx_binary(
name=name,
srcs=srcs,
deps=deps,
)
def cpp_unittest(
name,
srcs=None,
deps=None,
external_deps=None,
):
# TODO: Handle external_deps.
cxx_test(
name=name,
srcs=srcs,
deps=deps,
)
original_python_binary = python_binary
def python_binary(
name,
srcs=None,
gen_srcs=None,
main_module=None,
deps=None,
):
# TODO: Handle gen_srcs.
original_python_binary(
name=name,
srcs=srcs,
main_module=main_module,
deps=deps,
visibility=[
'PUBLIC',
],
)