2017-06-02 03:41:11 +03:00
|
|
|
include_defs("//eden/DEFS")
|
2016-05-13 02:07:33 +03:00
|
|
|
|
|
|
|
python_binary(
|
2017-06-02 03:41:11 +03:00
|
|
|
name = "cli",
|
|
|
|
srcs = ["main.py"],
|
|
|
|
main_module = "eden/cli/main",
|
|
|
|
deps = [
|
2017-07-08 04:32:42 +03:00
|
|
|
"@/eden/cli:debug",
|
2017-06-02 03:41:11 +03:00
|
|
|
"@/eden/cli:lib",
|
|
|
|
"@/eden/fs/service:py-client",
|
|
|
|
],
|
2016-05-13 02:07:33 +03:00
|
|
|
)
|
|
|
|
|
2016-08-05 22:49:21 +03:00
|
|
|
python_library(
|
2017-06-02 03:41:11 +03:00
|
|
|
name = "lib",
|
|
|
|
srcs = [
|
|
|
|
"cmd_util.py",
|
|
|
|
"config.py",
|
|
|
|
"configinterpolator.py",
|
2017-06-15 20:53:16 +03:00
|
|
|
"rage.py",
|
2017-06-02 03:41:11 +03:00
|
|
|
"util.py",
|
|
|
|
],
|
2016-08-05 22:49:21 +03:00
|
|
|
)
|
|
|
|
|
2017-07-08 04:32:42 +03:00
|
|
|
python_library(
|
|
|
|
name = "debug",
|
|
|
|
srcs = [
|
|
|
|
"debug.py",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":lib",
|
|
|
|
"@/eden/fs/inodes:serialization-py",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-01-24 10:52:39 +03:00
|
|
|
python_unittest(
|
2017-06-02 03:41:11 +03:00
|
|
|
name = "test",
|
|
|
|
srcs = glob(["test/*.py"]),
|
|
|
|
deps = [":lib"],
|
2017-01-24 10:52:39 +03:00
|
|
|
)
|
|
|
|
|
2016-06-16 03:07:34 +03:00
|
|
|
for build_target, suffix in get_daemon_versions():
|
2017-05-02 20:49:43 +03:00
|
|
|
# The :all rule is a convenience to ensure that the CLI, daemon, and Thrift
|
|
|
|
# Python client for the Hg extension are built.
|
2017-01-24 06:29:39 +03:00
|
|
|
buck_genrule(
|
2016-06-16 03:07:34 +03:00
|
|
|
name = 'all%s' % suffix,
|
|
|
|
srcs = [
|
|
|
|
':cli',
|
2017-01-16 22:39:33 +03:00
|
|
|
build_target.replace('@/', '//'),
|
2017-05-02 20:49:43 +03:00
|
|
|
'//eden/fs/service:thrift-EdenService-pyremote',
|
2016-06-16 03:07:34 +03:00
|
|
|
],
|
|
|
|
out = 'eden%s-stamp' % suffix,
|
|
|
|
cmd = 'touch $OUT',
|
|
|
|
)
|