From 78e347aa29a6fdf246f158532a23390160060aaa Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Wed, 26 Apr 2023 16:10:36 -0500 Subject: [PATCH] initialize buck2 (without prelude) --- .buckconfig | 14 ++++++++++++++ .buckroot | 0 .gitignore | 1 + BUCK | 7 +++++++ toolchains/BUCK | 6 ++++++ 5 files changed, 28 insertions(+) create mode 100644 .buckconfig create mode 100644 .buckroot create mode 100644 BUCK create mode 100644 toolchains/BUCK diff --git a/.buckconfig b/.buckconfig new file mode 100644 index 00000000..b80bc62d --- /dev/null +++ b/.buckconfig @@ -0,0 +1,14 @@ +[repositories] +root = . +prelude = prelude +toolchains = toolchains +none = none + +[repository_aliases] +config = prelude +fbcode = none +fbsource = none +buck = none + +[parser] +target_platform_detector_spec = target:root//...->prelude//platforms:default diff --git a/.buckroot b/.buckroot new file mode 100644 index 00000000..e69de29b diff --git a/.gitignore b/.gitignore index 23f7911d..24e36789 100644 --- a/.gitignore +++ b/.gitignore @@ -242,3 +242,4 @@ documentation.json /_build /log +/buck-out diff --git a/BUCK b/BUCK new file mode 100644 index 00000000..1cb6b382 --- /dev/null +++ b/BUCK @@ -0,0 +1,7 @@ +# A list of available rules and their signatures can be found here: https://buck2.build/docs/api/rules/ + +genrule( + name = "hello_world", + out = "out.txt", + cmd = "echo BUILT BY BUCK2> $OUT", +) diff --git a/toolchains/BUCK b/toolchains/BUCK new file mode 100644 index 00000000..0cac578c --- /dev/null +++ b/toolchains/BUCK @@ -0,0 +1,6 @@ +load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain") + +system_genrule_toolchain( + name = "genrule", + visibility = ["PUBLIC"], +)