Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffolding jdwp for new JDWP debugger project #62

Merged
merged 21 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[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

[project]
ignore = .git
Empty file added .buckroot
Empty file.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "prelude"]
path = prelude
url = https://github.com/facebook/buck2-prelude.git
Empty file added projects/buck2/REDME
Empty file.
5 changes: 5 additions & 0 deletions projects/jdwp/.pyre_configuration
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"targets": [
"//projects/jdwp/..."
]
}
14 changes: 14 additions & 0 deletions projects/jdwp/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

python_binary(
name = "main",
main = "main.py",
deps = [],
)


python_library(
name = "lib",
srcs = [],
visibility = ["PUBLIC"],
)
7 changes: 7 additions & 0 deletions projects/jdwp/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

def main():
return None

if __name__ == "__main__":
main()
6 changes: 6 additions & 0 deletions projects/jdwp/tests/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

python_test(
name = "tests",
srcs = glob(["*.py"]),
)
19 changes: 19 additions & 0 deletions toolchains/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain", "system_python_toolchain")
load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain")

system_cxx_toolchain(
name = "cxx",
visibility = ["PUBLIC"],
)

system_python_toolchain(
name = "python",
visibility = ["PUBLIC"],
)

system_python_bootstrap_toolchain(
name = "python_bootstrap",
visibility = ["PUBLIC"],
)