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"], +)