blob: afc1815ed8980d5c2a61bf32807dc2e84342f84d [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001python_binary(
Brian O'Connor1f165982016-04-06 21:36:09 -07002 name = 'onos-app-writer',
3 main = 'onos_app.py',
4 deps = [],
5 visibility = ['PUBLIC'],
6)
7
8python_binary(
9 name = 'onos-app-oar',
10 main = 'onos_oar.py',
11 deps = [],
12 visibility = ['PUBLIC'],
13)
14
Brian O'Connor0167bd42016-04-29 17:09:10 -070015python_binary(
16 name = 'onos-stage',
17 main = 'onos_stage.py',
18 deps = [],
19 visibility = ['PUBLIC'],
20)
21
22python_binary(
23 name = 'onos-feature',
24 main = 'onos_feature.py',
25 deps = [],
26 visibility = ['PUBLIC'],
27)
Brian O'Connor1f165982016-04-06 21:36:09 -070028
Ray Milkeyf80bbb22016-03-11 10:16:22 -080029def shquote(s):
30 return s.replace("'", "'\\''")
31
32def os_path():
33 from os import environ
34 return environ.get('PATH')
35
36genrule(
37 name = 'buck',
38 cmd = 'echo buck=`which buck`>$OUT;' +
39 ("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())),
40 out = 'buck.properties',
41 visibility = ['PUBLIC'],
42)
43