-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbshipit-source-id: 4e3cfdee46b216ce5ea85d0955be6804976a8a8b
- Loading branch information
1 parent
ea68bc5
commit 1609ce2
Showing
130 changed files
with
1,952 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# We currently expect end users to run reindeer vendor themselves | ||
# so mark these things as to ignore | ||
/third-party/rust/.cargo/ | ||
/third-party/rust/BUCK | ||
/third-party/rust/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,5 @@ | ||
load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain") | ||
load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain") | ||
load("@prelude//toolchains:ocaml.bzl", "system_ocaml_toolchain") | ||
load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain", "system_python_toolchain") | ||
load("@prelude//toolchains:rust.bzl", "system_rust_toolchain") | ||
load("@prelude//toolchains:demo.bzl", "system_demo_toolchains") | ||
|
||
system_cxx_toolchain( | ||
name = "cxx", | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
system_genrule_toolchain( | ||
name = "genrule", | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
system_ocaml_toolchain( | ||
name = "ocaml", | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
system_python_toolchain( | ||
name = "python", | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
system_python_bootstrap_toolchain( | ||
name = "python_bootstrap", | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
system_rust_toolchain( | ||
name = "rust", | ||
default_edition = "2021", | ||
visibility = ["PUBLIC"], | ||
) | ||
# All the default toolchains, suitable for a quick demo or early prototyping. | ||
# Most real projects should copy/paste the implementation to configure them. | ||
system_demo_toolchains() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Open Source Shim | ||
|
||
These files are a shim that allow us to build Buck2 with Buck2 outside Meta in | ||
the open source world. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
load( | ||
"//:shims.bzl", | ||
_rust_binary = "rust_binary", | ||
) | ||
|
||
buck_rust_binary = _rust_binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
load( | ||
"//:shims.bzl", | ||
_rust_protobuf_library = "rust_protobuf_library", | ||
) | ||
|
||
rust_protobuf_library = _rust_protobuf_library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
def get_ldflags(*args): | ||
_unused = args # @unused | ||
return [] | ||
|
||
def get_strip_mode(*args): | ||
_unused = args # @unused | ||
return "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
def _set_clang_version(_version, _overwrite = False): | ||
pass | ||
|
||
package_local_utils = struct( | ||
set_clang_version = _set_clang_version, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
def _get_cxx_platform_for_base_path(_base_path): | ||
return struct(target_platform = None) | ||
|
||
platform_utils = struct(get_cxx_platform_for_base_path = _get_cxx_platform_for_base_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
def python_binary(srcs = [], **kwargs): | ||
_unused = srcs # @unused | ||
|
||
# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." | ||
native.python_binary(**kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
load("//:shims.bzl", _rust_unittest = "rust_unittest") | ||
|
||
rust_unittest = _rust_unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
def grpc_library(**kwargs): | ||
_unused = kwargs # @unused | ||
pass |
Oops, something went wrong.