d7b40c70fe
DisableCastChecking option was first added in I5dc633d5b. Since Issue 3389, that caused breakage of all Google products for many weeks, this option is added again in the development build to prevent such severe regressions in future. Because the generated javascript code is bigger with cast checks, this option is still added in release mode. Side effect of this change is that the plugins that expose GWT module are compiled without DisableCastChecking option in Gerrit tree mode. Standalone bucklets driven build mode is not affected by this change. Another side effect, that 'soyc' target for "compiler story" was duplicated and the corresponding release mode with DisableCastChecking is also provided with alias 'soyc_r'. TEST PLAN: $ buck build gerrit should pass only -XdisableClassMetadata option to GWT compiler. Whereas $ buck build release should pass both -XdisableClassMetadata -XdisableCastChecking options. Bug: Issue 3389 Change-Id: Ia99647357e7bff889137d4855e9c0059e6c6a4f3
42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
include_defs('//tools/build.defs')
|
|
|
|
gerrit_war(name = 'gerrit')
|
|
gerrit_war(name = 'headless', ui = None)
|
|
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', ui = 'ui_optdbg_r', 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__',
|
|
)
|