Home | History | Annotate | Download | only in remoting
      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.
      4 #
      5 # File included in remoting_webapp_* targets in remoting_client.gypi
      6 
      7 {
      8   'type': 'none',
      9   'variables': {
     10     'extra_files%': [],
     11     'generated_html_files': [
     12       '<(SHARED_INTERMEDIATE_DIR)/main.html',
     13       '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
     14       '<(SHARED_INTERMEDIATE_DIR)/background.html',
     15     ],
     16   },
     17   'dependencies': [
     18     'remoting_resources',
     19     'remoting_webapp_html',
     20   ],
     21   'conditions': [
     22     ['run_jscompile != 0', {
     23       'variables': {
     24         'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
     25       },
     26       'actions': [
     27         {
     28           'action_name': 'Verify remoting webapp',
     29           'inputs': [
     30             '<@(remoting_webapp_all_js_files)',
     31             '<@(remoting_webapp_js_proto_files)',
     32           ],
     33           'outputs': [
     34             '<(success_stamp)',
     35           ],
     36           'action': [
     37             'python', 'tools/jscompile.py',
     38             '<@(remoting_webapp_all_js_files)',
     39             '<@(remoting_webapp_js_proto_files)',
     40             '--success-stamp', '<(success_stamp)'
     41           ],
     42         },
     43       ],  # actions
     44     }],
     45   ],
     46   'actions': [
     47     {
     48       'action_name': 'Build Remoting WebApp',
     49       'inputs': [
     50         'webapp/build-webapp.py',
     51         'webapp/manifest.json.jinja2',
     52         '<(chrome_version_path)',
     53         '<(remoting_version_path)',
     54         '<@(generated_html_files)',
     55         '<@(remoting_webapp_files)',
     56         '<@(remoting_webapp_locale_files)',
     57         '<@(extra_files)',
     58       ],
     59       'outputs': [
     60         '<(output_dir)',
     61         '<(zip_path)',
     62       ],
     63       'action': [
     64         'python', 'webapp/build-webapp.py',
     65         '<(buildtype)',
     66         '<(version_full)',
     67         '<(output_dir)',
     68         '<(zip_path)',
     69         'webapp/manifest.json.jinja2',
     70         '<(webapp_type)',
     71         '<@(generated_html_files)',
     72         '<@(remoting_webapp_files)',
     73         '<@(extra_files)',
     74         '--locales', '<@(remoting_webapp_locale_files)',
     75       ],
     76     },
     77   ],
     78 }
     79