externalise buck file

This commit is contained in:
Jake Hillion 2023-10-05 23:25:56 -06:00
parent f4a1bd3d99
commit e09338360b
8 changed files with 49 additions and 0 deletions

1
.buck/prelude Submodule

@ -0,0 +1 @@
Subproject commit e6ee46050e74f339433eaecb127bf1dde2cb3426

3
.buck/shim/BUCK Normal file
View File

@ -0,0 +1,3 @@
load("@prelude//toolchains:demo.bzl", "system_demo_toolchains")
system_demo_toolchains()

3
.buck/shim/README.md Normal file
View File

@ -0,0 +1,3 @@
# Open Source Shim
These files are a shim that allow us to build Object Introspection with Buck2 outside Meta in the open source world.

17
.buckconfig Normal file
View File

@ -0,0 +1,17 @@
[repositories]
root = .
prelude = .buck/prelude
shim = .buck/shim
[repository_aliases]
config = prelude
ovr_config = prelude
toolchains = shim
fbcode = shim
fbcode_macros = shim
fbsource = shim
buck = shim
[parser]
target_platform_detector_spec = target:root//...->prelude//platforms:default target:shim//...->prelude//platforms:default

3
.gitignore vendored
View File

@ -14,6 +14,9 @@ PADDING
failed
website/node_modules
## Buck
buck-out/
## Vim
*.swp
*.swo

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "extern/drgn"]
path = extern/drgn
url = https://github.com/JakeHillion/drgn.git
[submodule ".buck/buck2-prelude"]
path = .buck/prelude
url = https://github.com/facebook/buck2-prelude

6
BUCK Normal file
View File

@ -0,0 +1,6 @@
load("@fbcode_macros//build_defs:native_rules.bzl", "alias")
alias(
name = "oid",
actual = "//oi:oid",
)

13
oi/BUCK Normal file
View File

@ -0,0 +1,13 @@
cxx_binary(
name = "oid",
srcs = [
"OID.cpp",
"OIDebugger.cpp",
],
headers = [
"OIDebugger.h",
"Syscall.h",
"TrapInfo.h",
],
)