Skip to content

Commit

Permalink
Scaffolding jdwp for new JDWP debugger project (#62)
Browse files Browse the repository at this point in the history
* add buck2

* remove su

* update makefile

* initialize buck2

* add buck2 to root

* add buck2 to root

* Revert "merge auck2"

This reverts commit 8d22386, reversing
changes made to 238cfb0.

* merge buck2

* add placeholder targets

* update pyre configuration

* delete file

* remove buck2  and prelude with version conflicts

* update placeholder targets

* add a temp main py file

* update tests target

* update python toolchains

* add copyright

---------

Co-authored-by: Michael A. Wekesa <Michael A. Wekesa>
  • Loading branch information
wekesa360 authored Oct 13, 2023
1 parent 35f3021 commit 5d87f3b
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 0 deletions.
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"],
)

0 comments on commit 5d87f3b

Please sign in to comment.