2016-05-13 02:07:33 +03:00
|
|
|
include_defs('//eden/DEFS')
|
|
|
|
|
|
|
|
python_binary(
|
|
|
|
name = 'cli',
|
2016-08-05 22:49:21 +03:00
|
|
|
srcs = ['main.py'],
|
2016-05-13 02:07:33 +03:00
|
|
|
main_module = 'eden/fs/cli/main',
|
|
|
|
deps = [
|
2017-01-16 22:39:33 +03:00
|
|
|
'@/eden/fs/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(
|
|
|
|
name = 'lib',
|
|
|
|
srcs = [
|
2017-04-04 01:47:53 +03:00
|
|
|
'cmd_util.py',
|
2016-08-05 22:49:21 +03:00
|
|
|
'config.py',
|
2017-01-24 10:52:39 +03:00
|
|
|
'configinterpolator.py',
|
2017-04-04 01:47:53 +03:00
|
|
|
'debug.py',
|
2016-08-05 22:49:21 +03:00
|
|
|
'util.py',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-01-24 10:52:39 +03:00
|
|
|
python_unittest(
|
|
|
|
name = 'test',
|
|
|
|
srcs = glob(['test/*.py']),
|
|
|
|
deps = [':lib']
|
|
|
|
)
|
|
|
|
|
2016-06-16 03:07:34 +03:00
|
|
|
for build_target, suffix in get_daemon_versions():
|
|
|
|
# The :all rule is a convenience to ensure that both the CLI and the daemon
|
|
|
|
# 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('@/', '//'),
|
2016-06-16 03:07:34 +03:00
|
|
|
],
|
|
|
|
out = 'eden%s-stamp' % suffix,
|
|
|
|
cmd = 'touch $OUT',
|
|
|
|
)
|