06e069cfcc
Migrate gwt build tool chain to built in gwt_binary() rule [1]. [1] https://github.com/facebook/buck/issues/109 Change-Id: I1f13f4d29864bc7e7278f8a2b2e39c882acf44aa
41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
include_defs('//tools/build.defs')
|
|
|
|
gerrit_war(name = 'gerrit')
|
|
gerrit_war(name = 'chrome', ui = 'ui_chrome')
|
|
gerrit_war(name = 'firefox', ui = 'ui_firefox')
|
|
gerrit_war(name = 'safari', ui = 'ui_safari')
|
|
gerrit_war(name = 'withdocs', docs = True)
|
|
gerrit_war(name = 'release', docs = True, context = ['//plugins:core'], visibility = ['//tools/maven:'])
|
|
|
|
API_DEPS = [
|
|
'//gerrit-extension-api:extension-api',
|
|
'//gerrit-extension-api:extension-api-src',
|
|
'//gerrit-extension-api:extension-api-javadoc',
|
|
'//gerrit-plugin-api:plugin-api',
|
|
'//gerrit-plugin-api:plugin-api-src',
|
|
'//gerrit-plugin-api:plugin-api-javadoc',
|
|
'//gerrit-plugin-gwtui:gwtui-api',
|
|
'//gerrit-plugin-gwtui:gwtui-api-src',
|
|
'//gerrit-plugin-gwtui:gwtui-api-javadoc',
|
|
]
|
|
|
|
genrule(
|
|
name = 'api',
|
|
cmd = ';'.join(
|
|
['cd $TMP'] +
|
|
['ln -s $(location %s) .' % n for n in API_DEPS] +
|
|
['zip -q0 $OUT *']),
|
|
deps = API_DEPS,
|
|
out = 'api.zip',
|
|
)
|
|
|
|
genrule(
|
|
name = 'all',
|
|
cmd = 'echo done >$OUT',
|
|
deps = [
|
|
':api',
|
|
':release',
|
|
],
|
|
out = '__fake.all__',
|
|
)
|