OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../remoting/remoting_locales.gypi', | 7 '../remoting/remoting_locales.gypi', |
8 '../remoting/app_remoting_webapp_build.gypi', | 8 '../remoting/app_remoting_webapp_build.gypi', |
9 ], | 9 ], |
Theresa
2015/06/12 20:36:50
will fix whitespace
Theresa
2015/06/12 22:12:15
Done.
| |
10 | |
11 'target_defaults': { | 10 'target_defaults': { |
12 'variables': { | 11 'variables': { |
13 'ar_internal': 0, | 12 'ar_internal': 0, |
14 'compiler_flags': [ | |
15 '--strict', | |
16 '--no-single-file', | |
17 '--externs', | |
18 '../third_party/closure_compiler/externs/chrome_extensions.js', | |
19 ], | |
20 }, | 13 }, |
21 | |
22 'conditions': [ | |
23 ['run_jscompile != 0', { | |
24 'actions': [ | |
25 { | |
26 'action_name': 'Verify >(ar_app_name) main.html', | |
27 'variables': { | |
28 'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_main_jscompile.st amp', | |
29 }, | |
30 'inputs': [ | |
31 '<@(ar_main_js_files)', | |
32 '<@(remoting_webapp_js_proto_files)', | |
33 # Include zip as input so that this action is run after the build. | |
34 '<(zip_path)', | |
35 ], | |
36 'outputs': [ | |
37 '<(success_stamp)', | |
38 ], | |
39 'action': [ | |
40 'python', '../third_party/closure_compiler/compile.py', | |
41 '<@(compiler_flags)', | |
42 '--success-stamp', '<(success_stamp)', | |
43 '<@(ar_main_js_files)', | |
44 '<@(remoting_webapp_js_proto_files)', | |
45 ], | |
46 }, | |
47 { | |
48 'action_name': 'Verify >(ar_app_name) background.js', | |
49 'variables': { | |
50 'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_background_jscomp ile.stamp', | |
51 }, | |
52 'inputs': [ | |
53 '<@(ar_background_js_files)', | |
54 '<@(remoting_webapp_js_proto_files)', | |
55 # Include zip as input so that this action is run after the build. | |
56 '<(zip_path)', | |
57 ], | |
58 'outputs': [ | |
59 '<(success_stamp)', | |
60 ], | |
61 'action': [ | |
62 'python', '../third_party/closure_compiler/compile.py', | |
63 '<@(compiler_flags)', | |
64 '--success-stamp', '<(success_stamp)', | |
65 '<@(ar_background_js_files)', | |
66 '<@(remoting_webapp_js_proto_files)', | |
67 ], | |
68 }, | |
69 { | |
70 'action_name': 'Verify >(ar_app_name) feedback_consent.html', | |
71 'variables': { | |
72 'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_feedback_consent_ jscompile.stamp', | |
73 }, | |
74 'inputs': [ | |
75 '<@(ar_feedback_consent_html_all_js_files)', | |
76 '<@(remoting_webapp_js_proto_files)', | |
77 # Include zip as input so that this action is run after the build. | |
78 '<(zip_path)', | |
79 ], | |
80 'outputs': [ | |
81 '<(success_stamp)', | |
82 ], | |
83 'action': [ | |
84 'python', '../third_party/closure_compiler/compile.py', | |
85 '<@(compiler_flags)', | |
86 '--success-stamp', '<(success_stamp)', | |
87 '<@(ar_feedback_consent_html_all_js_files)', | |
88 '<@(remoting_webapp_js_proto_files)', | |
89 ], | |
90 }, | |
91 ], # actions | |
92 }], | |
93 ], # conditions | |
94 }, | 14 }, |
95 | |
96 'targets': [ | 15 'targets': [ |
97 { | 16 { |
98 # GN version: //remoting/webapp:ar_sample_app | 17 # GN version: //remoting/webapp:ar_sample_app |
99 # Sample AppRemoting app. | 18 # Sample AppRemoting app. |
100 'target_name': 'ar_sample_app', | 19 'target_name': 'ar_sample_app', |
20 'type': 'none', | |
garykac
2015/06/16 00:32:42
This change shouldn't be needed since it comes fro
Theresa
2015/06/16 17:49:45
Done.
| |
101 'app_key': 'Sample_App', | 21 'app_key': 'Sample_App', |
102 'app_id': 'ljacajndfccfgnfohlgkdphmbnpkjflk', | 22 'app_id': 'ljacajndfccfgnfohlgkdphmbnpkjflk', |
103 'app_client_id': 'sample_client_id', | 23 'app_client_id': 'sample_client_id', |
104 'app_name': 'App Remoting Client', | 24 'app_name': 'App Remoting Client', |
105 'app_description': 'App Remoting client', | 25 'app_description': 'App Remoting client', |
106 'app_capabilities': ['GOOGLE_DRIVE'], | 26 'app_capabilities': ['GOOGLE_DRIVE'], |
107 'manifest_key': 'remotingdevbuild', | 27 'manifest_key': 'remotingdevbuild', |
28 'conditions': [ | |
garykac
2015/06/16 00:32:42
This needs to be in 'target_defaults' (where it wa
Theresa
2015/06/16 17:49:45
Moved to target_defaults.
Yes, please send instru
| |
29 ['run_jscompile != 0', { | |
30 'dependencies': [ | |
31 'app_remoting_webapp_compile.gypi:*' | |
garykac
2015/06/16 00:32:42
Note that use of the '*' has been deprecated in GY
Theresa
2015/06/16 17:49:45
Done.
| |
32 ], | |
33 }], | |
34 ], # conditions | |
35 # 'inputs': [ | |
36 # # Include zip as input so that this action is run after the build. | |
37 # '<(zip_path)', | |
Theresa
2015/06/12 20:36:50
ninja is not at all happy with this variable. It c
garykac
2015/06/16 00:32:42
No. But the previous code was working when it was
Theresa
2015/06/16 17:49:45
It works now that it's back in target_defaults. Wo
| |
38 # ], | |
108 }, | 39 }, |
109 ], # end of targets | 40 ], # end of targets |
110 } | 41 } |
OLD | NEW |