forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework how remoting JS compilation GYP works.
There was an unfortunate bug that swallowed Java stacks. Issues were discovered when Java stacks started surfacing: https://codereview.chromium.org/476453002/ So change the way remoting is built. It doesn't need to be built on all bots by default: they have undefined Java versions and likely weren't working before (and shouldn't differ). Instead, run when run_jscompile=1 is defined in GYP: export GYP_DEFINES=run_jscompile=1 && build/gyp_chromium # or add in ~/.gyp/includes.gypi or $SRC/../chromium.gyp_env # or build/gyp_chromium -Drun_jscompile=1 and on the Closure Compilation Linux FYI bot: http://build.chromium.org/p/chromium.fyi/builders/Closure%20Compilation%20Linux This also fixes some GYP inputs problems (if I changed compile_js.gypi or other things in remoting/ ninja wouldn't rebuild anything). R=jamiewalch@chromium.org BUG=none TEST=green bots, remoting runs on Closure Compliation Linux FYI bot Review URL: https://codereview.chromium.org/1037613002 Cr-Commit-Position: refs/heads/master@{#322193}
- Loading branch information
Showing
5 changed files
with
87 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Copyright 2015 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
# | ||
# File in charge of Closure compiling remoting's webapp. | ||
|
||
{ | ||
'variables': { | ||
'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp', | ||
'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp', | ||
'success_stamp_ut': '<(PRODUCT_DIR)/<(_target_name)_ut_jscompile.stamp', | ||
}, | ||
'actions': [ | ||
{ | ||
'action_name': 'Verify remoting webapp', | ||
'inputs': [ | ||
'remoting_webapp_compile.gypi', | ||
'remoting_webapp_files.gypi', | ||
'<@(remoting_webapp_crd_js_files)', | ||
'<@(remoting_webapp_js_proto_files)', | ||
], | ||
'outputs': [ | ||
'<(success_stamp)', | ||
], | ||
'action': [ | ||
'python', '<(DEPTH)/third_party/closure_compiler/checker.py', | ||
'--strict', | ||
'--no-single-file', | ||
'--success-stamp', '<(success_stamp)', | ||
'<@(remoting_webapp_crd_js_files)', | ||
'<@(remoting_webapp_js_proto_files)', | ||
], | ||
}, | ||
{ | ||
'action_name': 'Verify remoting webapp with browsertests', | ||
'inputs': [ | ||
'remoting_webapp_compile.gypi', | ||
'remoting_webapp_files.gypi', | ||
'<@(remoting_webapp_crd_js_files)', | ||
'<@(remoting_webapp_browsertest_all_js_files)', | ||
'<@(remoting_webapp_browsertest_js_proto_files)', | ||
], | ||
'outputs': [ | ||
'<(success_stamp_bt)', | ||
], | ||
'action': [ | ||
'python', '<(DEPTH)/third_party/closure_compiler/checker.py', | ||
'--strict', | ||
'--no-single-file', | ||
'--success-stamp', '<(success_stamp_bt)', | ||
'<@(remoting_webapp_crd_js_files)', | ||
'<@(remoting_webapp_browsertest_all_js_files)', | ||
'<@(remoting_webapp_browsertest_js_proto_files)', | ||
], | ||
}, | ||
{ | ||
'action_name': 'Verify remoting webapp unittests', | ||
'inputs': [ | ||
'remoting_webapp_compile.gypi', | ||
'remoting_webapp_files.gypi', | ||
'<@(remoting_webapp_crd_js_files)', | ||
'<@(remoting_webapp_unittests_all_js_files)', | ||
'<@(remoting_webapp_unittests_js_proto_files)', | ||
], | ||
'outputs': [ | ||
'<(success_stamp_ut)', | ||
], | ||
'action': [ | ||
'python', '<(DEPTH)/third_party/closure_compiler/checker.py', | ||
'--strict', | ||
'--no-single-file', | ||
'--success-stamp', '<(success_stamp_ut)', | ||
'<@(remoting_webapp_crd_js_files)', | ||
'<@(remoting_webapp_unittests_all_js_files)', | ||
'<@(remoting_webapp_unittests_js_proto_files)', | ||
], | ||
}, | ||
], | ||
'includes': ['remoting_webapp_files.gypi'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters