Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: remoting/app_remoting_webapp.gyp

Issue 1152583011: Refactor compile_js.gypi to support script_args and closure_args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ],
10
11 'target_defaults': { 10 'target_defaults': {
12 'variables': { 11 'variables': {
13 'ar_internal': 0, 12 'ar_internal': 0,
14 'compiler_flags': [ 13 },
15 '--strict', 14 'conditions': [
16 '--no-single-file', 15 ['run_jscompile != 0', {
17 '--externs', 16 'dependencies': [
18 '../third_party/closure_compiler/externs/chrome_extensions.js', 17 'app_remoting_webapp_compile.gypi:verify_main.html',
18 'app_remoting_webapp_compile.gypi:verify_background.js',
19 'app_remoting_webapp_compile.gypi:verify_feedback_consent.html',
20 ],
21 'inputs': [
22 # Include zip as input so that this action is run after the build.
23 '<(zip_path)',
19 ], 24 ],
20 },
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 }], 25 }],
93 ], # conditions 26 ], # conditions
94 }, 27 },
95
96 'targets': [ 28 'targets': [
97 { 29 {
98 # GN version: //remoting/webapp:ar_sample_app 30 # GN version: //remoting/webapp:ar_sample_app
99 # Sample AppRemoting app. 31 # Sample AppRemoting app.
100 'target_name': 'ar_sample_app', 32 'target_name': 'ar_sample_app',
101 'app_key': 'Sample_App', 33 'app_key': 'Sample_App',
102 'app_id': 'ljacajndfccfgnfohlgkdphmbnpkjflk', 34 'app_id': 'ljacajndfccfgnfohlgkdphmbnpkjflk',
103 'app_client_id': 'sample_client_id', 35 'app_client_id': 'sample_client_id',
104 'app_name': 'App Remoting Client', 36 'app_name': 'App Remoting Client',
105 'app_description': 'App Remoting client', 37 'app_description': 'App Remoting client',
106 'app_capabilities': ['GOOGLE_DRIVE'], 38 'app_capabilities': ['GOOGLE_DRIVE'],
107 'manifest_key': 'remotingdevbuild', 39 'manifest_key': 'remotingdevbuild',
108 }, 40 },
109 ], # end of targets 41 ], # end of targets
110 } 42 }
OLDNEW
« no previous file with comments | « components/resources/enhanced_bookmarks/enhanced_bookmarks.gypi ('k') | remoting/app_remoting_webapp_compile.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698