Chromium Code Reviews| 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_version.gypi', | 7 'remoting_version.gypi', |
| 8 'remoting_locales.gypi', | 8 'remoting_locales.gypi', |
| 9 'remoting_webapp_files.gypi', | 9 'remoting_webapp_files.gypi', |
| 10 'app_remoting_webapp_files.gypi', | 10 'app_remoting_webapp_files.gypi', |
| 11 ], | 11 ], |
| 12 | 12 |
| 13 'variables': { | 13 'variables': { |
| 14 'chromium_code': 1, | 14 'chromium_code': 1, |
| 15 | 15 |
| 16 'run_jscompile%': 0, | 16 'run_jscompile%': 0, |
| 17 | 17 |
| 18 # This variable is used to define the target environment for the app | 18 # This variable is used to define the target environment for the app |
| 19 # being built. The allowed values are dev, test, staging, and prod. | 19 # being built. The allowed values are dev, test, staging, and prod. |
| 20 'ar_service_environment%': 'dev', | 20 'ar_service_environment%': 'dev', |
|
garykac
2015/01/28 16:48:23
FYI: original def for ar_service_environment
weitao
2015/01/28 17:47:25
Can conditions be embedded in the variables sectio
garykac
2015/01/28 18:25:55
Done.
| |
| 21 }, # end of variables | 21 }, # end of variables |
| 22 | 22 |
| 23 'target_defaults': { | 23 'target_defaults': { |
| 24 'type': 'none', | 24 'type': 'none', |
| 25 | 25 |
| 26 'dependencies': [ | 26 'dependencies': [ |
| 27 # TODO(wez): Create proper resources for shared-stub and app-specific | 27 # TODO(wez): Create proper resources for shared-stub and app-specific |
| 28 # stubs. | 28 # stubs. |
| 29 '<(DEPTH)/remoting/remoting.gyp:remoting_resources', | 29 '<(DEPTH)/remoting/remoting.gyp:remoting_resources', |
| 30 ], | 30 ], |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 'action_name': 'Build ">(ar_app_name)" application stub', | 83 'action_name': 'Build ">(ar_app_name)" application stub', |
| 84 'inputs': [ | 84 'inputs': [ |
| 85 '<(DEPTH)/remoting/webapp/build-webapp.py', | 85 '<(DEPTH)/remoting/webapp/build-webapp.py', |
| 86 '<(chrome_version_path)', | 86 '<(chrome_version_path)', |
| 87 '<(remoting_version_path)', | 87 '<(remoting_version_path)', |
| 88 '<@(ar_webapp_files)', | 88 '<@(ar_webapp_files)', |
| 89 '<@(remoting_webapp_locale_files)', | 89 '<@(remoting_webapp_locale_files)', |
| 90 '<@(ar_generated_html_files)', | 90 '<@(ar_generated_html_files)', |
| 91 '<(ar_app_manifest_app)', | 91 '<(ar_app_manifest_app)', |
| 92 '<(DEPTH)/remoting/<(ar_app_manifest_common)', | 92 '<(DEPTH)/remoting/<(ar_app_manifest_common)', |
| 93 ], | 93 ], |
| 94 'outputs': [ | 94 'outputs': [ |
| 95 '<(output_dir)', | 95 '<(output_dir)', |
| 96 '<(zip_path)', | 96 '<(zip_path)', |
| 97 ], | 97 ], |
| 98 'action': [ | 98 'action': [ |
| 99 'python', '<(DEPTH)/remoting/webapp/build-webapp.py', | 99 'python', '<(DEPTH)/remoting/webapp/build-webapp.py', |
| 100 '<(buildtype)', | 100 '<(buildtype)', |
| 101 '<(version_full)', | 101 '<(version_full)', |
| 102 '<(output_dir)', | 102 '<(output_dir)', |
| 103 '<(zip_path)', | 103 '<(zip_path)', |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 165 # Normally, the app-id for the orchestrator is automatically extracted | 165 # Normally, the app-id for the orchestrator is automatically extracted |
| 166 # from the webapp's extension id, but that approach doesn't work for | 166 # from the webapp's extension id, but that approach doesn't work for |
| 167 # dev webapp builds (since they all share the same dev extension id). | 167 # dev webapp builds (since they all share the same dev extension id). |
| 168 # The --appid arg will create a webapp that registers the given app-id | 168 # The --appid arg will create a webapp that registers the given app-id |
| 169 # rather than using the extension id. | 169 # rather than using the extension id. |
| 170 # This is only done for Dev apps because the app-id for Release apps | 170 # This is only done for Dev apps because the app-id for Release apps |
| 171 # *must* match the extension id. | 171 # *must* match the extension id. |
| 172 'variables': { | 172 'variables': { |
| 173 'remoting_app_id': ['--appid', '>(_app_id)'], | 173 'remoting_app_id': ['--appid', '>(_app_id)'], |
| 174 }, | 174 }, |
| 175 }, { # buildtype != 'Dev' | |
| 176 'variables': { | |
| 177 'ar_service_environment': 'prod', | |
| 178 }, | |
| 175 }], | 179 }], |
| 176 ], # conditions | 180 ], # conditions |
| 177 }, # target_defaults | 181 }, # target_defaults |
| 178 } | 182 } |
| OLD | NEW |