[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 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 | { |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 8 | # GN version: //remoting/client/plugin |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 9 | 'target_name': 'remoting_client_plugin', |
| 10 | 'type': 'static_library', |
| 11 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 12 | 'defines': [ |
| 13 | 'HAVE_STDINT_H', # Required by on2_integer.h |
| 14 | ], |
| 15 | 'dependencies': [ |
| 16 | '../net/net.gyp:net', |
| 17 | '../ppapi/ppapi.gyp:ppapi_cpp_objects', |
[email protected] | 0116711 | 2014-08-05 19:53:20 | [diff] [blame] | 18 | '../ppapi/ppapi.gyp:ppapi_internal_module', |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 19 | '../third_party/webrtc/modules/modules.gyp:desktop_capture', |
| 20 | '../ui/events/events.gyp:dom4_keycode_converter', |
| 21 | 'remoting_base', |
| 22 | 'remoting_client', |
| 23 | 'remoting_protocol', |
| 24 | ], |
| 25 | 'sources': [ |
[email protected] | 563c444d | 2014-02-20 17:07:04 | [diff] [blame] | 26 | '<@(remoting_client_plugin_sources)', |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 27 | 'client/plugin/pepper_entrypoints.cc', |
| 28 | 'client/plugin/pepper_entrypoints.h', |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 29 | ], |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 30 | }, # end of target 'remoting_client_plugin' |
| 31 | |
| 32 | { |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 33 | # GN version: //remoting/client |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 34 | 'target_name': 'remoting_client', |
| 35 | 'type': 'static_library', |
| 36 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
[email protected] | 33030585 | 2014-05-09 20:48:58 | [diff] [blame] | 37 | 'defines': [ |
| 38 | 'VERSION=<(version_full)', |
| 39 | ], |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 40 | 'dependencies': [ |
| 41 | 'remoting_base', |
| 42 | 'remoting_protocol', |
| 43 | '../third_party/libyuv/libyuv.gyp:libyuv', |
| 44 | '../third_party/webrtc/modules/modules.gyp:desktop_capture', |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 45 | ], |
| 46 | 'sources': [ |
[email protected] | 563c444d | 2014-02-20 17:07:04 | [diff] [blame] | 47 | '<@(remoting_client_sources)', |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 48 | ], |
| 49 | }, # end of target 'remoting_client' |
| 50 | |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 51 | { |
| 52 | 'target_name': 'remoting_webapp_html', |
| 53 | 'type': 'none', |
| 54 | 'actions': [ |
| 55 | { |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 56 | # GN version: //remoting/webapp:html |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 57 | 'action_name': 'Build Remoting Webapp main.html', |
| 58 | 'inputs': [ |
| 59 | 'webapp/build-html.py', |
| 60 | '<(remoting_webapp_template_main)', |
| 61 | '<@(remoting_webapp_template_files)', |
| 62 | ], |
| 63 | 'outputs': [ |
| 64 | '<(SHARED_INTERMEDIATE_DIR)/main.html', |
| 65 | ], |
| 66 | 'action': [ |
| 67 | 'python', 'webapp/build-html.py', |
| 68 | '<(SHARED_INTERMEDIATE_DIR)/main.html', |
| 69 | '<(remoting_webapp_template_main)', |
garykac | c24f902 | 2015-01-17 00:22:35 | [diff] [blame] | 70 | '--template-dir', '<(DEPTH)/remoting', |
| 71 | '--templates', '<@(remoting_webapp_template_files)', |
garykac | 7b15ac05 | 2014-12-02 03:12:37 | [diff] [blame] | 72 | '--js', |
garykac | 9547d1f | 2015-03-06 19:42:55 | [diff] [blame] | 73 | '<@(remoting_webapp_crd_main_html_all_js_files)', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 74 | ], |
| 75 | }, |
| 76 | { |
| 77 | 'action_name': 'Build Remoting Webapp wcs_sandbox.html', |
| 78 | 'inputs': [ |
| 79 | 'webapp/build-html.py', |
| 80 | '<(remoting_webapp_template_wcs_sandbox)', |
| 81 | ], |
| 82 | 'outputs': [ |
| 83 | '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html', |
| 84 | ], |
| 85 | 'action': [ |
| 86 | 'python', 'webapp/build-html.py', |
| 87 | '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html', |
| 88 | '<(remoting_webapp_template_wcs_sandbox)', |
garykac | 9547d1f | 2015-03-06 19:42:55 | [diff] [blame] | 89 | '--js', '<@(remoting_webapp_wcs_sandbox_html_all_js_files)', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 90 | ], |
| 91 | }, |
[email protected] | f34acc69 | 2014-08-12 22:47:14 | [diff] [blame] | 92 | { |
| 93 | 'action_name': 'Build Remoting Webapp background.html', |
| 94 | 'inputs': [ |
| 95 | 'webapp/build-html.py', |
| 96 | '<(remoting_webapp_template_background)', |
| 97 | ], |
| 98 | 'outputs': [ |
| 99 | '<(SHARED_INTERMEDIATE_DIR)/background.html', |
| 100 | ], |
| 101 | 'action': [ |
| 102 | 'python', 'webapp/build-html.py', |
| 103 | '<(SHARED_INTERMEDIATE_DIR)/background.html', |
| 104 | '<(remoting_webapp_template_background)', |
garykac | 9547d1f | 2015-03-06 19:42:55 | [diff] [blame] | 105 | '--js', '<@(remoting_webapp_background_html_all_js_files)', |
[email protected] | f34acc69 | 2014-08-12 22:47:14 | [diff] [blame] | 106 | ], |
| 107 | }, |
garykac | 9547d1f | 2015-03-06 19:42:55 | [diff] [blame] | 108 | { |
| 109 | 'action_name': 'Build Remoting Webapp message_window.html', |
| 110 | 'inputs': [ |
| 111 | 'webapp/build-html.py', |
| 112 | '<(remoting_webapp_template_message_window)', |
| 113 | ], |
| 114 | 'outputs': [ |
| 115 | '<(SHARED_INTERMEDIATE_DIR)/message_window.html', |
| 116 | ], |
| 117 | 'action': [ |
| 118 | 'python', 'webapp/build-html.py', |
| 119 | '<(SHARED_INTERMEDIATE_DIR)/message_window.html', |
| 120 | '<(remoting_webapp_template_message_window)', |
| 121 | '--js', '<@(remoting_webapp_message_window_html_all_js_files)', |
| 122 | ], |
| 123 | }, |
| 124 | ], # end of actions |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 125 | }, # end of target 'remoting_webapp_html' |
| 126 | |
| 127 | { |
| 128 | 'target_name': 'remoting_webapp', |
| 129 | 'type': 'none', |
| 130 | 'dependencies': [ |
| 131 | 'remoting_webapp_v1', |
[email protected] | 40a7c0a | 2014-03-01 05:00:54 | [diff] [blame] | 132 | 'remoting_webapp_v2', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 133 | ], |
sergeyu | ac752bf | 2015-01-23 19:09:10 | [diff] [blame] | 134 | 'conditions': [ |
| 135 | ['disable_nacl==0 and disable_nacl_untrusted==0', { |
| 136 | 'dependencies': [ |
| 137 | 'remoting_webapp_v2_pnacl', |
| 138 | ], |
| 139 | }] |
| 140 | ], |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 141 | }, # end of target 'remoting_webapp' |
| 142 | |
| 143 | { |
| 144 | 'target_name': 'remoting_webapp_v1', |
| 145 | 'type': 'none', |
| 146 | 'variables': { |
[email protected] | 40a7c0a | 2014-03-01 05:00:54 | [diff] [blame] | 147 | 'webapp_type': 'v1', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 148 | 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
| 149 | 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
| 150 | }, |
| 151 | 'includes': [ 'remoting_webapp.gypi', ], |
| 152 | }, # end of target 'remoting_webapp_v1' |
| 153 | |
[email protected] | 40a7c0a | 2014-03-01 05:00:54 | [diff] [blame] | 154 | { |
| 155 | 'target_name': 'remoting_webapp_v2', |
| 156 | 'type': 'none', |
| 157 | 'variables': { |
[email protected] | 40a7c0a | 2014-03-01 05:00:54 | [diff] [blame] | 158 | 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2', |
| 159 | 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip', |
sergeyu | ac752bf | 2015-01-23 19:09:10 | [diff] [blame] | 160 | 'webapp_type': 'v2', |
[email protected] | 40a7c0a | 2014-03-01 05:00:54 | [diff] [blame] | 161 | }, |
sergeyu | ac752bf | 2015-01-23 19:09:10 | [diff] [blame] | 162 | 'includes': [ 'remoting_webapp.gypi', ], |
| 163 | }, # end of target 'remoting_webapp_v2' |
| 164 | ], # end of targets |
| 165 | |
| 166 | 'conditions': [ |
| 167 | ['disable_nacl==0 and disable_nacl_untrusted==0', { |
| 168 | 'targets': [ |
| 169 | { |
| 170 | 'target_name': 'remoting_webapp_v2_pnacl', |
| 171 | 'type': 'none', |
[email protected] | f89ee43 | 2014-06-21 01:08:47 | [diff] [blame] | 172 | 'variables': { |
sergeyu | ac752bf | 2015-01-23 19:09:10 | [diff] [blame] | 173 | 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2_pnacl', |
| 174 | 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2_pnacl.zip', |
[email protected] | f89ee43 | 2014-06-21 01:08:47 | [diff] [blame] | 175 | 'webapp_type': 'v2_pnacl', |
| 176 | 'extra_files': [ |
sergeyu | a0f6662 | 2015-02-05 21:00:27 | [diff] [blame] | 177 | 'webapp/crd/remoting_client_pnacl.nmf.jinja2', |
[email protected] | f89ee43 | 2014-06-21 01:08:47 | [diff] [blame] | 178 | '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe', |
| 179 | ], |
| 180 | }, |
sergeyu | ac752bf | 2015-01-23 19:09:10 | [diff] [blame] | 181 | 'dependencies': [ |
| 182 | 'remoting_nacl.gyp:remoting_client_plugin_nacl', |
| 183 | ], |
sergeyu | a0f6662 | 2015-02-05 21:00:27 | [diff] [blame] | 184 | 'conditions': [ |
| 185 | ['buildtype == "Dev"', { |
| 186 | 'variables': { |
| 187 | 'extra_files': [ |
| 188 | '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe.debug', |
| 189 | ], |
| 190 | }, |
| 191 | }], |
| 192 | ], |
sergeyu | ac752bf | 2015-01-23 19:09:10 | [diff] [blame] | 193 | 'includes': [ 'remoting_webapp.gypi', ], |
| 194 | }, # end of target 'remoting_webapp_v2_pnacl' |
[email protected] | f89ee43 | 2014-06-21 01:08:47 | [diff] [blame] | 195 | ], |
sergeyu | ac752bf | 2015-01-23 19:09:10 | [diff] [blame] | 196 | }], |
| 197 | ], |
[email protected] | c5b34a81 | 2014-01-29 22:41:45 | [diff] [blame] | 198 | } |