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 {
      6   'targets': [
      7     {
      8       'target_name': 'remoting_client_plugin',
      9       'type': 'static_library',
     10       'variables': { 'enable_wexit_time_destructors': 1, },
     11       'defines': [
     12         'HAVE_STDINT_H',  # Required by on2_integer.h
     13       ],
     14       'dependencies': [
     15         '../net/net.gyp:net',
     16         '../ppapi/ppapi.gyp:ppapi_cpp_objects',
     17         '../third_party/webrtc/modules/modules.gyp:desktop_capture',
     18         '../ui/events/events.gyp:dom4_keycode_converter',
     19         'remoting_base',
     20         'remoting_client',
     21         'remoting_protocol',
     22       ],
     23       'sources': [
     24         '<@(remoting_client_plugin_sources)',
     25         'client/plugin/pepper_entrypoints.cc',
     26         'client/plugin/pepper_entrypoints.h',
     27       ],
     28     },  # end of target 'remoting_client_plugin'
     29 
     30     {
     31       'target_name': 'remoting_client',
     32       'type': 'static_library',
     33       'variables': { 'enable_wexit_time_destructors': 1, },
     34       'defines': [
     35         'VERSION=<(version_full)',
     36       ],
     37       'dependencies': [
     38         'remoting_base',
     39         'remoting_protocol',
     40         '../third_party/libyuv/libyuv.gyp:libyuv',
     41         '../third_party/webrtc/modules/modules.gyp:desktop_capture',
     42         '../third_party/libwebm/libwebm.gyp:libwebm',
     43       ],
     44       'sources': [
     45         '<@(remoting_client_sources)',
     46       ],
     47     },  # end of target 'remoting_client'
     48 
     49     {
     50       'target_name': 'remoting_webapp_html',
     51       'type': 'none',
     52       'actions': [
     53         {
     54           'action_name': 'Build Remoting Webapp main.html',
     55           'inputs': [
     56             'webapp/build-html.py',
     57             '<(remoting_webapp_template_main)',
     58             '<@(remoting_webapp_template_files)',
     59           ],
     60           'outputs': [
     61             '<(SHARED_INTERMEDIATE_DIR)/main.html',
     62           ],
     63           'action': [
     64             'python', 'webapp/build-html.py',
     65             '<(SHARED_INTERMEDIATE_DIR)/main.html',
     66             '<(remoting_webapp_template_main)',
     67             '--template', '<@(remoting_webapp_template_files)',
     68             '--js', '<@(remoting_webapp_main_html_js_files)',
     69           ],
     70         },
     71         {
     72           'action_name': 'Build Remoting Webapp wcs_sandbox.html',
     73           'inputs': [
     74             'webapp/build-html.py',
     75             '<(remoting_webapp_template_wcs_sandbox)',
     76           ],
     77           'outputs': [
     78             '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
     79           ],
     80           'action': [
     81             'python', 'webapp/build-html.py',
     82             '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
     83             '<(remoting_webapp_template_wcs_sandbox)',
     84             '--js', '<@(remoting_webapp_wcs_sandbox_html_js_files)',
     85           ],
     86         },
     87       ],
     88     },  # end of target 'remoting_webapp_html'
     89 
     90     {
     91       'target_name': 'remoting_webapp',
     92       'type': 'none',
     93       'dependencies': [
     94         'remoting_webapp_v1',
     95         'remoting_webapp_v2',
     96       ],
     97     },  # end of target 'remoting_webapp'
     98 
     99     {
    100       'target_name': 'remoting_webapp_v1',
    101       'type': 'none',
    102       'variables': {
    103         'webapp_type': 'v1',
    104         'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp',
    105         'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip',
    106       },
    107       'includes': [ 'remoting_webapp.gypi', ],
    108     },  # end of target 'remoting_webapp_v1'
    109 
    110     {
    111       'target_name': 'remoting_webapp_v2',
    112       'type': 'none',
    113       'variables': {
    114         'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2',
    115         'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip',
    116         'extra_files': [ 'webapp/background.js' ],
    117       },
    118       'conditions': [
    119         ['disable_nacl==0 and disable_nacl_untrusted==0', {
    120           'dependencies': [
    121             'remoting_nacl.gyp:remoting_client_plugin_nacl',
    122           ],
    123           'variables': {
    124             'webapp_type': 'v2_pnacl',
    125             'extra_files': [
    126               'webapp/remoting_client_pnacl.nmf',
    127               '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe',
    128             ],
    129           },
    130         }, {
    131           'variables': {
    132             'webapp_type': 'v2',
    133           },
    134         }],
    135       ],
    136       'includes': [ 'remoting_webapp.gypi', ],
    137     },  # end of target 'remoting_webapp_v2'
    138   ],  # end of targets
    139 }
    140