| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 # | 4 # |
| 5 # File in charge of Closure compiling remoting's webapp. | 5 # File in charge of Closure compiling remoting's webapp. |
| 6 | 6 |
| 7 { | 7 { |
| 8 'variables': { | 8 'targets': [ |
| 9 'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp', | |
| 10 'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp', | |
| 11 'success_stamp_ut': '<(PRODUCT_DIR)/<(_target_name)_ut_jscompile.stamp', | |
| 12 'externs': [ | |
| 13 '<(DEPTH)/third_party/closure_compiler/externs/chrome_extensions.js', | |
| 14 '<@(remoting_webapp_js_externs_files)', | |
| 15 ], | |
| 16 'compiler_flags': [ | |
| 17 '--strict', | |
| 18 '--no-single-file', | |
| 19 '--externs', | |
| 20 '<(externs)', | |
| 21 ], | |
| 22 }, | |
| 23 'actions': [ | |
| 24 { | 9 { |
| 25 'action_name': 'Verify remoting webapp', | 10 'target_name': 'verify_remoting_webapp', |
| 26 'inputs': [ | 11 'inputs': [ |
| 27 'remoting_webapp_compile.gypi', | 12 'remoting_webapp_compile.gypi', |
| 28 'remoting_webapp_files.gypi', | 13 'remoting_webapp_files.gypi', |
| 29 '<@(remoting_webapp_crd_js_files)', | |
| 30 '<@(remoting_webapp_js_externs_files)', | |
| 31 '<@(remoting_webapp_js_proto_files)', | |
| 32 ], | 14 ], |
| 33 'outputs': [ | 15 'variables': { |
| 34 '<(success_stamp)', | 16 'source_files': [ |
| 35 ], | 17 '<@(remoting_webapp_crd_js_files)', |
| 36 'action': [ | 18 '<@(remoting_webapp_js_proto_files)', |
| 37 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', | 19 ], |
| 38 '<@(compiler_flags)', | 20 'externs': ['<@(remoting_webapp_js_externs_files)'], |
| 39 '--success-stamp', '<(success_stamp)', | 21 'out_file': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp', |
| 40 '<@(remoting_webapp_crd_js_files)', | 22 }, |
| 41 '<@(remoting_webapp_js_proto_files)', | 23 'includes': ['compile_js.gypi'], |
| 42 ], | |
| 43 }, | 24 }, |
| 44 { | 25 { |
| 45 'action_name': 'Verify remoting webapp with browsertests', | 26 'target_name': 'verify_remoting_webapp_with_browsertests', |
| 46 'inputs': [ | 27 'inputs': [ |
| 47 'remoting_webapp_compile.gypi', | 28 'remoting_webapp_compile.gypi', |
| 48 'remoting_webapp_files.gypi', | 29 'remoting_webapp_files.gypi', |
| 49 '<@(remoting_webapp_crd_js_files)', | |
| 50 '<@(remoting_webapp_browsertest_all_js_files)', | |
| 51 '<@(remoting_webapp_browsertest_js_proto_files)', | |
| 52 ], | 30 ], |
| 53 'outputs': [ | 31 'variables': { |
| 54 '<(success_stamp_bt)', | 32 'source_files': [ |
| 55 ], | 33 '<@(remoting_webapp_crd_js_files)', |
| 56 'action': [ | 34 '<@(remoting_webapp_browsertest_all_js_files)', |
| 57 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', | 35 '<@(remoting_webapp_browsertest_js_proto_files)', |
| 58 '<@(compiler_flags)', | 36 ], |
| 59 '--success-stamp', '<(success_stamp_bt)', | 37 'externs': ['<@(remoting_webapp_js_externs_files)'], |
| 60 '<@(remoting_webapp_crd_js_files)', | 38 'out_file': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp', |
| 61 '<@(remoting_webapp_browsertest_all_js_files)', | 39 }, |
| 62 '<@(remoting_webapp_browsertest_js_proto_files)', | 40 'includes': ['compile_js.gypi'], |
| 63 ], | |
| 64 }, | 41 }, |
| 65 { | 42 { |
| 66 'action_name': 'Verify remoting webapp unittests', | 43 'target_name': 'verify_remoting_webapp_unittests', |
| 67 'inputs': [ | 44 'inputs': [ |
| 68 'remoting_webapp_compile.gypi', | 45 'remoting_webapp_compile.gypi', |
| 69 'remoting_webapp_files.gypi', | 46 'remoting_webapp_files.gypi', |
| 70 '<@(remoting_webapp_crd_js_files)', | |
| 71 '<@(remoting_webapp_unittests_all_js_files)', | |
| 72 '<@(remoting_webapp_unittests_js_proto_files)', | |
| 73 ], | 47 ], |
| 74 'outputs': [ | 48 'variables': { |
| 75 '<(success_stamp_ut)', | 49 'source_files': [ |
| 76 ], | 50 '<@(remoting_webapp_crd_js_files)', |
| 77 'action': [ | 51 '<@(remoting_webapp_unittests_all_js_files)', |
| 78 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', | 52 '<@(remoting_webapp_unittests_js_proto_files)', |
| 79 '<@(compiler_flags)', | 53 ], |
| 80 '--success-stamp', '<(success_stamp_ut)', | 54 'externs': ['<@(remoting_webapp_js_externs_files)'], |
| 81 '<@(remoting_webapp_crd_js_files)', | 55 'out_file': '<(PRODUCT_DIR)/<(_target_name)_ut_jscompile.stamp', |
| 82 '<@(remoting_webapp_unittests_all_js_files)', | 56 }, |
| 83 '<@(remoting_webapp_unittests_js_proto_files)', | 57 'includes': ['compile_js.gypi'], |
| 84 ], | |
| 85 }, | 58 }, |
| 86 ], | 59 ], |
| 87 'includes': ['remoting_webapp_files.gypi'], | 60 'includes': ['remoting_webapp_files.gypi'], |
| 88 } | 61 } |
| OLD | NEW |