
Packs fonts the same way bower_components are packed, with a 'fonts' folder inside fonts.zip. Also removes deprecated OpenSans fonts from build files. Bug: Issue 4893 Change-Id: I7fc11d6e689c7d5b1d68d09e94ee7aaba91ded9b
35 lines
744 B
Python
35 lines
744 B
Python
include_defs('//lib/js.defs')
|
|
|
|
bower_components(
|
|
name = 'polygerrit_components',
|
|
deps = [
|
|
'//lib/js:es6-promise',
|
|
'//lib/js:fetch',
|
|
'//lib/js:highlightjs',
|
|
'//lib/js:iron-autogrow-textarea',
|
|
'//lib/js:iron-dropdown',
|
|
'//lib/js:iron-input',
|
|
'//lib/js:iron-overlay-behavior',
|
|
'//lib/js:iron-selector',
|
|
'//lib/js:moment',
|
|
'//lib/js:page',
|
|
'//lib/js:polymer',
|
|
'//lib/js:promise-polyfill',
|
|
],
|
|
)
|
|
|
|
genrule(
|
|
name = 'fonts',
|
|
cmd = ' && '.join([
|
|
'cd $TMP',
|
|
'mkdir fonts',
|
|
'for file in $SRCS; do echo `pwd` > /tmp/log.log; unzip -qd fonts/ $file; done',
|
|
'zip -qr $OUT fonts',
|
|
]),
|
|
srcs = [
|
|
'//lib/fonts:sourcecodepro',
|
|
],
|
|
out = 'fonts.zip',
|
|
visibility = ['PUBLIC'],
|
|
)
|