| 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', |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 '<@(ar_shared_resource_files)', | 64 '<@(ar_shared_resource_files)', |
| 65 '<@(ar_all_js_files)', | 65 '<@(ar_all_js_files)', |
| 66 '<@(ar_generated_html_files)', | 66 '<@(ar_generated_html_files)', |
| 67 ], | 67 ], |
| 68 'output_dir': '<(PRODUCT_DIR)/app_streaming/<@(ar_service_environment)/>(_
target_name)', | 68 'output_dir': '<(PRODUCT_DIR)/app_streaming/<@(ar_service_environment)/>(_
target_name)', |
| 69 'zip_path': '<(PRODUCT_DIR)/app_streaming/<@(ar_service_environment)/>(_ta
rget_name).zip', | 69 'zip_path': '<(PRODUCT_DIR)/app_streaming/<@(ar_service_environment)/>(_ta
rget_name).zip', |
| 70 'remoting_app_id': [], | 70 'remoting_app_id': [], |
| 71 'remoting_app_name': '>(_app_name)', | 71 'remoting_app_name': '>(_app_name)', |
| 72 'remoting_app_description': '>(_app_description)', | 72 'remoting_app_description': '>(_app_description)', |
| 73 | 73 |
| 74 'ar_webapp_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)_
locales.txt', |
| 75 |
| 74 'conditions': [ | 76 'conditions': [ |
| 75 ['ar_internal != 1', { | 77 ['ar_internal != 1', { |
| 76 'ar_app_name': 'sample_app', | 78 'ar_app_name': 'sample_app', |
| 77 'ar_app_path': 'webapp/app_remoting/apps/>(ar_app_name)', | 79 'ar_app_path': 'webapp/app_remoting/apps/>(ar_app_name)', |
| 78 }, { | 80 }, { |
| 79 # This takes target names of the form 'ar_vvv_xxx_xxx' and extracts | 81 # This takes target names of the form 'ar_vvv_xxx_xxx' and extracts |
| 80 # the vendor ('vvv') and the app name ('xxx_xxx'). | 82 # the vendor ('vvv') and the app name ('xxx_xxx'). |
| 81 'ar_app_vendor': '>!(python -c "import sys; print sys.argv[1].split(\'
_\')[1]" >(_target_name))', | 83 'ar_app_vendor': '>!(python -c "import sys; print sys.argv[1].split(\'
_\')[1]" >(_target_name))', |
| 82 'ar_app_name': '>!(python -c "import sys; print \'_\'.join(sys.argv[1]
.split(\'_\')[2:])" >(_target_name))', | 84 'ar_app_name': '>!(python -c "import sys; print \'_\'.join(sys.argv[1]
.split(\'_\')[2:])" >(_target_name))', |
| 83 'ar_app_path': 'webapp/app_remoting/internal/apps/>(ar_app_vendor)/>(a
r_app_name)', | 85 'ar_app_path': 'webapp/app_remoting/internal/apps/>(ar_app_vendor)/>(a
r_app_name)', |
| 84 }], | 86 }], |
| 85 ], # conditions | 87 ], # conditions |
| 86 | 88 |
| 87 }, # variables | 89 }, # variables |
| 88 | 90 |
| 89 'actions': [ | 91 'actions': [ |
| 90 { | 92 { |
| 93 'action_name': 'Build ">(ar_app_name)" locales listfile', |
| 94 'inputs': [ |
| 95 '<(remoting_localize_path)', |
| 96 ], |
| 97 'outputs': [ |
| 98 '<(ar_webapp_locales_listfile)', |
| 99 ], |
| 100 'action': [ |
| 101 'python', '<(remoting_localize_path)', |
| 102 '--locale_output', |
| 103 '"<(webapp_locale_dir)/@{json_suffix}/messages.json"', |
| 104 '--locales_listfile', |
| 105 '<(ar_webapp_locales_listfile)', |
| 106 '<@(remoting_locales)', |
| 107 ], |
| 108 }, |
| 109 { |
| 91 'action_name': 'Build ">(ar_app_name)" application stub', | 110 'action_name': 'Build ">(ar_app_name)" application stub', |
| 92 'inputs': [ | 111 'inputs': [ |
| 93 '<(DEPTH)/remoting/webapp/build-webapp.py', | 112 '<(DEPTH)/remoting/webapp/build-webapp.py', |
| 94 '<(chrome_version_path)', | 113 '<(chrome_version_path)', |
| 95 '<(remoting_version_path)', | 114 '<(remoting_version_path)', |
| 96 '<@(ar_webapp_files)', | 115 '<@(ar_webapp_files)', |
| 97 '<@(remoting_webapp_locale_files)', | 116 '<@(remoting_webapp_locale_files)', |
| 98 '<@(ar_generated_html_files)', | 117 '<@(ar_generated_html_files)', |
| 99 '<(ar_app_manifest_app)', | 118 '<(ar_app_manifest_app)', |
| 100 '<(DEPTH)/remoting/<(ar_app_manifest_common)', | 119 '<(DEPTH)/remoting/<(ar_app_manifest_common)', |
| 120 '<(ar_webapp_locales_listfile)', |
| 101 ], | 121 ], |
| 102 'outputs': [ | 122 'outputs': [ |
| 103 '<(output_dir)', | 123 '<(output_dir)', |
| 104 '<(zip_path)', | 124 '<(zip_path)', |
| 105 ], | 125 ], |
| 106 'action': [ | 126 'action': [ |
| 107 'python', '<(DEPTH)/remoting/webapp/build-webapp.py', | 127 'python', '<(DEPTH)/remoting/webapp/build-webapp.py', |
| 108 '<(buildtype)', | 128 '<(buildtype)', |
| 109 '<(version_full)', | 129 '<(version_full)', |
| 110 '<(output_dir)', | 130 '<(output_dir)', |
| 111 '<(zip_path)', | 131 '<(zip_path)', |
| 112 '<(ar_app_manifest_app)', # Manifest template | 132 '<(ar_app_manifest_app)', # Manifest template |
| 113 'app_remoting', # Web app type | 133 'app_remoting', # Web app type |
| 114 '<@(ar_webapp_files)', | 134 '<@(ar_webapp_files)', |
| 115 '<@(ar_generated_html_files)', | 135 '<@(ar_generated_html_files)', |
| 116 '--locales', | 136 '--locales_listfile', |
| 117 '<@(remoting_webapp_locale_files)', | 137 '<(ar_webapp_locales_listfile)', |
| 118 '--jinja_paths', | 138 '--jinja_paths', |
| 119 '<(DEPTH)/remoting/webapp/app_remoting', | 139 '<(DEPTH)/remoting/webapp/app_remoting', |
| 120 '<@(remoting_app_id)', | 140 '<@(remoting_app_id)', |
| 121 '--app_name', | 141 '--app_name', |
| 122 '<(remoting_app_name)', | 142 '<(remoting_app_name)', |
| 123 '--app_description', | 143 '--app_description', |
| 124 '<(remoting_app_description)', | 144 '<(remoting_app_description)', |
| 125 '--app_capabilities', | 145 '--app_capabilities', |
| 126 '>@(_app_capabilities)', | 146 '>@(_app_capabilities)', |
| 127 '--service_environment', | 147 '--service_environment', |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 # rather than using the extension id. | 199 # rather than using the extension id. |
| 180 # This is only done for Dev apps because the app-id for Release apps | 200 # This is only done for Dev apps because the app-id for Release apps |
| 181 # *must* match the extension id. | 201 # *must* match the extension id. |
| 182 'variables': { | 202 'variables': { |
| 183 'remoting_app_id': ['--appid', '>(_app_id)'], | 203 'remoting_app_id': ['--appid', '>(_app_id)'], |
| 184 }, | 204 }, |
| 185 }], | 205 }], |
| 186 ], # conditions | 206 ], # conditions |
| 187 }, # target_defaults | 207 }, # target_defaults |
| 188 } | 208 } |
| OLD | NEW |