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
3 # found in the LICENSE file.
7 'remoting_version.gypi',
8 'remoting_locales.gypi',
9 'remoting_options.gypi',
10 'remoting_webapp_files.gypi',
11 'app_remoting_webapp_files.gypi',
14 # GN version: See remoting/webapp/build_template.gni
19 # TODO(wez): Create proper resources for shared-stub and app-specific
21 '<(DEPTH)/remoting/remoting.gyp:remoting_resources',
25 '<@(remoting_webapp_locale_files)',
29 '../chrome/js_unittest_vars.gypi',
33 'ar_app_manifest_app':
34 '>(ar_app_path)/manifest.json.jinja2',
35 'ar_app_manifest_common':
36 'webapp/app_remoting/manifest_common.json.jinja2',
37 'ar_app_specific_files': [
38 '>(ar_app_path)/icon16.png',
39 '>(ar_app_path)/icon48.png',
40 '>(ar_app_path)/icon128.png',
41 '>(ar_app_path)/loading_splash.png',
44 '<@(ar_app_specific_files)',
45 '<@(ar_vendor_js_files)',
46 '<@(ar_vendor_html_files)',
48 'output_dir': '<(PRODUCT_DIR)/app_streaming/<@(ar_service_environment)/>(_target_name)',
49 'zip_path': '<(PRODUCT_DIR)/app_streaming/<@(ar_service_environment)/>(_target_name).zip',
50 'remoting_app_id': [],
51 'remoting_app_name': '>(_app_name)',
52 'remoting_app_description': '>(_app_description)',
54 'ar_webapp_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)_locales.txt',
57 ['ar_internal != 1', {
58 'ar_app_name': 'sample_app',
59 'ar_app_path': 'webapp/app_remoting/apps/>(ar_app_name)',
61 # This takes target names of the form 'ar_vvv_xxx_xxx' and extracts
62 # the vendor ('vvv') and the app name ('xxx_xxx').
63 'ar_app_vendor': '>!(python -c "import sys; print sys.argv[1].split(\'_\')[1]" >(_target_name))',
64 'ar_app_name': '>!(python -c "import sys; print \'_\'.join(sys.argv[1].split(\'_\')[2:])" >(_target_name))',
65 'ar_app_path': 'webapp/app_remoting/internal/apps/>(ar_app_vendor)/>(ar_app_name)',
73 'action_name': 'Build ">(ar_app_name)" locales listfile',
75 '<(remoting_localize_path)',
78 '<(ar_webapp_locales_listfile)',
81 'python', '<(remoting_localize_path)',
83 '"<(webapp_locale_dir)/@{json_suffix}/messages.json"',
85 '<(ar_webapp_locales_listfile)',
86 '<@(remoting_locales)',
90 'action_name': 'Build ">(ar_app_name)" application stub',
92 '<(DEPTH)/remoting/webapp/build-webapp.py',
93 '<(chrome_version_path)',
94 '<(remoting_version_path)',
95 '<@(ar_webapp_files)',
96 '<@(remoting_webapp_locale_files)',
97 '<(ar_app_manifest_app)',
98 '<(DEPTH)/remoting/<(ar_app_manifest_common)',
99 '<(ar_webapp_locales_listfile)',
106 'python', '<(DEPTH)/remoting/webapp/build-webapp.py',
111 '<(ar_app_manifest_app)', # Manifest template
112 'app_remoting', # Web app type
113 '<@(ar_webapp_files)',
114 '--locales_listfile',
115 '<(ar_webapp_locales_listfile)',
117 '<(DEPTH)/remoting/webapp/app_remoting',
118 '<@(remoting_app_id)',
120 '<(remoting_app_name)',
122 '<(remoting_app_description)',
123 '--app_capabilities',
124 '>@(_app_capabilities)',
125 '--service_environment',
126 '<@(ar_service_environment)',
130 '>@(_app_client_id)',
135 ['buildtype == "Dev"', {
136 # Normally, the app-id for the orchestrator is automatically extracted
137 # from the webapp's extension id, but that approach doesn't work for
138 # dev webapp builds (since they all share the same dev extension id).
139 # The --appid arg will create a webapp that registers the given app-id
140 # rather than using the extension id.
141 # This is only done for Dev apps because the app-id for Release apps
142 # *must* match the extension id.
144 'remoting_app_id': ['--appid', '>(_app_id)'],