eb430c447c
Since [1] Buck implicitly adds :foo and :bar in $(exe :foo) and $(location :bar) macros to the dependency list of genrule(). The code base was adjusted to reflect this enhancement in Ie3a9de0b2. In I996b8d2a1 the unneeded dependencies were partially re-added in CM integration code. Re-remove it again. [1] https://github.com/facebook/buck/issues/128 Change-Id: I8d0aaa5c9f7586f04f169f8362709b1fc7b04dcc
19 lines
363 B
Plaintext
19 lines
363 B
Plaintext
def js_minify(
|
|
name,
|
|
out,
|
|
compiler_args = [],
|
|
srcs = [],
|
|
generated = []):
|
|
cmd = ['$(exe :js_minifier) --js_output_file $OUT'] + compiler_args
|
|
if srcs:
|
|
cmd.append('$SRCS')
|
|
if generated:
|
|
cmd.extend(['$(location %s)' % n for n in generated])
|
|
|
|
genrule(
|
|
name = name,
|
|
cmd = ' '.join(cmd),
|
|
srcs = srcs,
|
|
out = out,
|
|
)
|