
Latest version of buck is faster than the prior version used by Gerrit. No-op updates when loading a debug version of the UI now take only 1.804s on my laptop (previously 7s) and a draft UI compile is only 24.659s (previously 39s). The slow acceptance tests must now be excluded with `--exclude slow`. Buck changed the meaning of the -e option to be --emulator, which is unfortunately useful only for Android application developers. genrule() now needs to use $(exe) to reference the binary to run, offers $(location) to make it easier to find files in the build tree. The empty srcs array is no longer required for genrule(). Buck has determined it is sufficiently powerful with $(location) and deps that requiring srcs is unnecessary. Supporting .src.zip files in the srcs array of java_library() means Gerrit no longer needs to run a separate genrule() to extract files produced by ANTLR, or call javac inside of the BuckPrologCompiler support glue. Change-Id: Ib03042921a081b867a7aad0423bd45523e42917a
48 lines
835 B
Python
48 lines
835 B
Python
python_binary(
|
|
name = 'download_all',
|
|
main = 'download_all.py',
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
python_binary(
|
|
name = 'download_file',
|
|
main = 'download_file.py',
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
python_binary(
|
|
name = 'pack_war',
|
|
main = 'pack_war.py',
|
|
deps = [':util'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
python_binary(
|
|
name = 'maven_deploy',
|
|
main = 'maven_deploy.py',
|
|
deps = [':util'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
python_library(
|
|
name = 'util',
|
|
srcs = ['util.py'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
def shquote(s):
|
|
return s.replace("'", "'\\''")
|
|
|
|
def os_path():
|
|
from os import environ
|
|
return environ.get('PATH')
|
|
|
|
genrule(
|
|
name = 'buck.properties',
|
|
cmd = 'echo buck=`which buck`>$OUT;' +
|
|
("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())),
|
|
deps = [],
|
|
out = 'buck.properties',
|
|
visibility = ['PUBLIC'],
|
|
)
|