| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 6 'variables': { |
| 7 # TODO(dmaclach): can we pick this up some other way? Right now it's | 7 # TODO(dmaclach): can we pick this up some other way? Right now it's |
| 8 # duplicated from chrome.gyp | 8 # duplicated from chrome.gyp |
| 9 'chromium_code': 1, | 9 'chromium_code': 1, |
| 10 # Use consistent strings across all platforms. Note that the plugin name | 10 # Use consistent strings across all platforms. Note that the plugin name |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 'host_plugin_extension': 'arm.so', | 42 'host_plugin_extension': 'arm.so', |
| 43 'host_plugin_prefix': 'lib', | 43 'host_plugin_prefix': 'lib', |
| 44 }], | 44 }], |
| 45 ['OS=="win"', { | 45 ['OS=="win"', { |
| 46 'host_plugin_extension': 'dll', | 46 'host_plugin_extension': 'dll', |
| 47 'host_plugin_prefix': '', | 47 'host_plugin_prefix': '', |
| 48 }], | 48 }], |
| 49 ['branding=="Chrome"', { | 49 ['branding=="Chrome"', { |
| 50 # Must match host/plugin/constants.h | 50 # Must match host/plugin/constants.h |
| 51 'host_plugin_name': 'Chrome Remote Desktop Host', | 51 'host_plugin_name': 'Chrome Remote Desktop Host', |
| 52 'remoting_it2me_locale_files': [ | 52 'remoting_webapp_locale_files': [ |
| 53 'webapp/me2mom/_locales.official/ar/messages.json', | 53 'webapp/_locales.official/ar/messages.json', |
| 54 'webapp/me2mom/_locales.official/bg/messages.json', | 54 'webapp/_locales.official/bg/messages.json', |
| 55 'webapp/me2mom/_locales.official/ca/messages.json', | 55 'webapp/_locales.official/ca/messages.json', |
| 56 'webapp/me2mom/_locales.official/cs/messages.json', | 56 'webapp/_locales.official/cs/messages.json', |
| 57 'webapp/me2mom/_locales.official/da/messages.json', | 57 'webapp/_locales.official/da/messages.json', |
| 58 'webapp/me2mom/_locales.official/de/messages.json', | 58 'webapp/_locales.official/de/messages.json', |
| 59 'webapp/me2mom/_locales.official/el/messages.json', | 59 'webapp/_locales.official/el/messages.json', |
| 60 'webapp/me2mom/_locales.official/en/messages.json', | 60 'webapp/_locales.official/en/messages.json', |
| 61 'webapp/me2mom/_locales.official/en_GB/messages.json', | 61 'webapp/_locales.official/en_GB/messages.json', |
| 62 'webapp/me2mom/_locales.official/es/messages.json', | 62 'webapp/_locales.official/es/messages.json', |
| 63 'webapp/me2mom/_locales.official/es_419/messages.json', | 63 'webapp/_locales.official/es_419/messages.json', |
| 64 'webapp/me2mom/_locales.official/et/messages.json', | 64 'webapp/_locales.official/et/messages.json', |
| 65 'webapp/me2mom/_locales.official/fi/messages.json', | 65 'webapp/_locales.official/fi/messages.json', |
| 66 'webapp/me2mom/_locales.official/fil/messages.json', | 66 'webapp/_locales.official/fil/messages.json', |
| 67 'webapp/me2mom/_locales.official/fr/messages.json', | 67 'webapp/_locales.official/fr/messages.json', |
| 68 'webapp/me2mom/_locales.official/he/messages.json', | 68 'webapp/_locales.official/he/messages.json', |
| 69 'webapp/me2mom/_locales.official/hi/messages.json', | 69 'webapp/_locales.official/hi/messages.json', |
| 70 'webapp/me2mom/_locales.official/hr/messages.json', | 70 'webapp/_locales.official/hr/messages.json', |
| 71 'webapp/me2mom/_locales.official/hu/messages.json', | 71 'webapp/_locales.official/hu/messages.json', |
| 72 'webapp/me2mom/_locales.official/id/messages.json', | 72 'webapp/_locales.official/id/messages.json', |
| 73 'webapp/me2mom/_locales.official/it/messages.json', | 73 'webapp/_locales.official/it/messages.json', |
| 74 'webapp/me2mom/_locales.official/ja/messages.json', | 74 'webapp/_locales.official/ja/messages.json', |
| 75 'webapp/me2mom/_locales.official/ko/messages.json', | 75 'webapp/_locales.official/ko/messages.json', |
| 76 'webapp/me2mom/_locales.official/lt/messages.json', | 76 'webapp/_locales.official/lt/messages.json', |
| 77 'webapp/me2mom/_locales.official/lv/messages.json', | 77 'webapp/_locales.official/lv/messages.json', |
| 78 'webapp/me2mom/_locales.official/nb/messages.json', | 78 'webapp/_locales.official/nb/messages.json', |
| 79 'webapp/me2mom/_locales.official/nl/messages.json', | 79 'webapp/_locales.official/nl/messages.json', |
| 80 'webapp/me2mom/_locales.official/pl/messages.json', | 80 'webapp/_locales.official/pl/messages.json', |
| 81 'webapp/me2mom/_locales.official/pt_BR/messages.json', | 81 'webapp/_locales.official/pt_BR/messages.json', |
| 82 'webapp/me2mom/_locales.official/pt_PT/messages.json', | 82 'webapp/_locales.official/pt_PT/messages.json', |
| 83 'webapp/me2mom/_locales.official/ro/messages.json', | 83 'webapp/_locales.official/ro/messages.json', |
| 84 'webapp/me2mom/_locales.official/ru/messages.json', | 84 'webapp/_locales.official/ru/messages.json', |
| 85 'webapp/me2mom/_locales.official/sk/messages.json', | 85 'webapp/_locales.official/sk/messages.json', |
| 86 'webapp/me2mom/_locales.official/sl/messages.json', | 86 'webapp/_locales.official/sl/messages.json', |
| 87 'webapp/me2mom/_locales.official/sr/messages.json', | 87 'webapp/_locales.official/sr/messages.json', |
| 88 'webapp/me2mom/_locales.official/sv/messages.json', | 88 'webapp/_locales.official/sv/messages.json', |
| 89 'webapp/me2mom/_locales.official/th/messages.json', | 89 'webapp/_locales.official/th/messages.json', |
| 90 'webapp/me2mom/_locales.official/tr/messages.json', | 90 'webapp/_locales.official/tr/messages.json', |
| 91 'webapp/me2mom/_locales.official/uk/messages.json', | 91 'webapp/_locales.official/uk/messages.json', |
| 92 'webapp/me2mom/_locales.official/vi/messages.json', | 92 'webapp/_locales.official/vi/messages.json', |
| 93 'webapp/me2mom/_locales.official/zh_CN/messages.json', | 93 'webapp/_locales.official/zh_CN/messages.json', |
| 94 'webapp/me2mom/_locales.official/zh_TW/messages.json', | 94 'webapp/_locales.official/zh_TW/messages.json', |
| 95 ], | 95 ], |
| 96 }, { # else: branding!="Chrome" | 96 }, { # else: branding!="Chrome" |
| 97 # Must match host/plugin/constants.h | 97 # Must match host/plugin/constants.h |
| 98 'host_plugin_name': 'Chromoting Host', | 98 'host_plugin_name': 'Chromoting Host', |
| 99 'remoting_it2me_locale_files': [ | 99 'remoting_webapp_locale_files': [ |
| 100 'webapp/me2mom/_locales/en/messages.json', | 100 'webapp/_locales/en/messages.json', |
| 101 ], | 101 ], |
| 102 }], | 102 }], |
| 103 ], | 103 ], |
| 104 'remoting_it2me_files': [ | 104 'remoting_webapp_files': [ |
| 105 'resources/icon_cross.png', | 105 'resources/icon_cross.png', |
| 106 'resources/icon_host.png', | 106 'resources/icon_host.png', |
| 107 'resources/icon_pencil.png', | 107 'resources/icon_pencil.png', |
| 108 'resources/icon_warning.png', | 108 'resources/icon_warning.png', |
| 109 'webapp/me2mom/choice.css', | 109 'webapp/choice.css', |
| 110 'webapp/me2mom/choice.html', | 110 'webapp/choice.html', |
| 111 'webapp/me2mom/client_screen.js', | 111 'webapp/client_screen.js', |
| 112 'webapp/me2mom/client_session.js', | 112 'webapp/client_session.js', |
| 113 'webapp/me2mom/cs_oauth2_trampoline.js', | 113 'webapp/cs_oauth2_trampoline.js', |
| 114 'webapp/me2mom/debug_log.css', | 114 'webapp/debug_log.css', |
| 115 'webapp/me2mom/debug_log.js', | 115 'webapp/debug_log.js', |
| 116 'webapp/me2mom/dividerbottom.png', | 116 'webapp/dividerbottom.png', |
| 117 'webapp/me2mom/dividertop.png', | 117 'webapp/dividertop.png', |
| 118 'webapp/me2mom/event_handlers.js', | 118 'webapp/event_handlers.js', |
| 119 'webapp/me2mom/host_list.js', | 119 'webapp/host_list.js', |
| 120 'webapp/me2mom/host_screen.js', | 120 'webapp/host_screen.js', |
| 121 'webapp/me2mom/host_session.js', | 121 'webapp/host_session.js', |
| 122 'webapp/me2mom/host_table_entry.js', | 122 'webapp/host_table_entry.js', |
| 123 'webapp/me2mom/l10n.js', | 123 'webapp/l10n.js', |
| 124 'webapp/me2mom/log_to_server.js', | 124 'webapp/log_to_server.js', |
| 125 'webapp/me2mom/main.css', | 125 'webapp/main.css', |
| 126 'webapp/me2mom/manifest.json', | 126 'webapp/manifest.json', |
| 127 'webapp/me2mom/oauth2.js', | 127 'webapp/oauth2.js', |
| 128 'webapp/me2mom/oauth2_callback.html', | 128 'webapp/oauth2_callback.html', |
| 129 'webapp/me2mom/plugin_settings.js', | 129 'webapp/plugin_settings.js', |
| 130 'webapp/me2mom/remoting.js', | 130 'webapp/remoting.js', |
| 131 'webapp/me2mom/scale-to-fit.png', | 131 'webapp/scale-to-fit.png', |
| 132 'webapp/me2mom/server_log_entry.js', | 132 'webapp/server_log_entry.js', |
| 133 'webapp/me2mom/spinner.gif', | 133 'webapp/spinner.gif', |
| 134 'webapp/me2mom/stats_accumulator.js', | 134 'webapp/stats_accumulator.js', |
| 135 'webapp/me2mom/toolbar.css', | 135 'webapp/toolbar.css', |
| 136 'webapp/me2mom/toolbar.js', | 136 'webapp/toolbar.js', |
| 137 'webapp/me2mom/ui_mode.js', | 137 'webapp/ui_mode.js', |
| 138 'webapp/me2mom/util.js', | 138 'webapp/util.js', |
| 139 'webapp/me2mom/wcs.js', | 139 'webapp/wcs.js', |
| 140 'webapp/me2mom/wcs_loader.js', | 140 'webapp/wcs_loader.js', |
| 141 'webapp/me2mom/xhr.js', | 141 'webapp/xhr.js', |
| 142 'resources/chromoting16.png', | 142 'resources/chromoting16.png', |
| 143 'resources/chromoting48.png', | 143 'resources/chromoting48.png', |
| 144 'resources/chromoting128.png', | 144 'resources/chromoting128.png', |
| 145 ], | 145 ], |
| 146 }, | 146 }, |
| 147 | 147 |
| 148 'target_defaults': { | 148 'target_defaults': { |
| 149 'defines': [ | 149 'defines': [ |
| 150 ], | 150 ], |
| 151 'include_dirs': [ | 151 'include_dirs': [ |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 ], # conditions | 337 ], # conditions |
| 338 }], # OS=="mac" | 338 }], # OS=="mac" |
| 339 ['OS!="win"', { | 339 ['OS!="win"', { |
| 340 'sources!': [ | 340 'sources!': [ |
| 341 'host/plugin/host_plugin.def', | 341 'host/plugin/host_plugin.def', |
| 342 'host/plugin/host_plugin.rc', | 342 'host/plugin/host_plugin.rc', |
| 343 ], | 343 ], |
| 344 }], | 344 }], |
| 345 ], | 345 ], |
| 346 }, # end of target 'remoting_host_plugin' | 346 }, # end of target 'remoting_host_plugin' |
| 347 |
| 347 { | 348 { |
| 349 # This is a deprecated target that has been replaced with remoting_it2me. |
| 350 # It is kept here because there are some pieces that still depend on |
| 351 # this target. |
| 352 # TODO(sergeyu): Remove this target. |
| 348 'target_name': 'webapp_it2me', | 353 'target_name': 'webapp_it2me', |
| 349 'type': 'none', | 354 'type': 'none', |
| 350 'dependencies': [ | 355 'dependencies': [ |
| 351 'remoting_host_plugin', | 356 'remoting_host_plugin', |
| 352 ], | 357 ], |
| 353 'sources': [ | 358 'sources': [ |
| 354 'webapp/build-webapp.py', | 359 'webapp/build-webapp.py', |
| 360 '<@(remoting_webapp_files)', |
| 361 '<@(remoting_webapp_locale_files)', |
| 362 ], |
| 363 'actions': [ |
| 364 { |
| 365 'action_name': 'Build Remoting WebApp', |
| 366 'output_dir': '<(PRODUCT_DIR)/remoting/it2me.webapp', |
| 367 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug
in.<(host_plugin_extension)', |
| 368 'zip_path': '<(PRODUCT_DIR)/remoting-it2me.zip', |
| 369 'inputs': [ |
| 370 'webapp/build-webapp.py', |
| 371 '<(_plugin_path)', |
| 372 '<@(remoting_webapp_files)', |
| 373 '<@(remoting_webapp_locale_files)', |
| 374 ], |
| 375 'outputs': [ |
| 376 '<(_output_dir)', |
| 377 '<(_zip_path)', |
| 378 ], |
| 379 'action': [ |
| 380 'python', 'webapp/build-webapp.py', |
| 381 '<(buildtype)', |
| 382 '<(host_plugin_mime_type)', |
| 383 '<(_output_dir)', |
| 384 '<(_zip_path)', |
| 385 '<(_plugin_path)', |
| 386 '<@(remoting_webapp_files)', |
| 387 '--locales', |
| 388 '<@(remoting_webapp_locale_files)', |
| 389 ], |
| 390 }, |
| 391 ], |
| 392 }, # end of target 'remoting_webapp' |
| 393 { |
| 394 'target_name': 'remoting_webapp', |
| 395 'type': 'none', |
| 396 'dependencies': [ |
| 397 'remoting_host_plugin', |
| 398 ], |
| 399 'sources': [ |
| 400 'webapp/build-webapp.py', |
| 355 'webapp/verify-webapp.py', | 401 'webapp/verify-webapp.py', |
| 356 '<@(remoting_it2me_files)', | 402 '<@(remoting_webapp_files)', |
| 357 '<@(remoting_it2me_locale_files)', | 403 '<@(remoting_webapp_locale_files)', |
| 358 ], | 404 ], |
| 359 # Can't use a 'copies' because we need to manipulate | 405 # Can't use a 'copies' because we need to manipulate |
| 360 # the manifest file to get the right plugin name. | 406 # the manifest file to get the right plugin name. |
| 361 # Also we need to move the plugin into the me2mom | 407 # Also we need to move the plugin into the me2mom |
| 362 # folder, which means 2 copies, and gyp doesn't | 408 # folder, which means 2 copies, and gyp doesn't |
| 363 # seem to guarantee the ordering of 2 copies statements | 409 # seem to guarantee the ordering of 2 copies statements |
| 364 # when the actual project is generated. | 410 # when the actual project is generated. |
| 365 'actions': [ | 411 'actions': [ |
| 366 { | 412 { |
| 367 'action_name': 'Verify It2Me WebApp i18n', | 413 'action_name': 'Verify Remoting WebApp i18n', |
| 368 'inputs': [ | 414 'inputs': [ |
| 369 'webapp/verify-webapp.py', | 415 'webapp/verify-webapp.py', |
| 370 'webapp/me2mom/_locales/en/messages.json', | 416 'webapp/_locales/en/messages.json', |
| 371 'webapp/me2mom/choice.html', | 417 'webapp/choice.html', |
| 372 'webapp/me2mom/host_table_entry.js', | 418 'webapp/host_table_entry.js', |
| 373 'webapp/me2mom/manifest.json', | 419 'webapp/manifest.json', |
| 374 'webapp/me2mom/remoting.js', | 420 'webapp/remoting.js', |
| 375 'host/plugin/host_script_object.cc', | 421 'host/plugin/host_script_object.cc', |
| 376 ], | 422 ], |
| 377 'outputs': [ | 423 'outputs': [ |
| 378 '<(PRODUCT_DIR)/remoting/it2me_verified.stamp', | 424 '<(PRODUCT_DIR)/remoting/webapp_verified.stamp', |
| 379 ], | 425 ], |
| 380 'action': [ | 426 'action': [ |
| 381 'python', | 427 'python', |
| 382 'webapp/verify-webapp.py', | 428 'webapp/verify-webapp.py', |
| 383 '<(PRODUCT_DIR)/remoting/it2me_verified.stamp', | 429 '<(PRODUCT_DIR)/remoting/webapp_verified.stamp', |
| 384 'webapp/me2mom/_locales/en/messages.json', | 430 'webapp/_locales/en/messages.json', |
| 385 'webapp/me2mom/choice.html', | 431 'webapp/choice.html', |
| 386 'webapp/me2mom/host_table_entry.js', | 432 'webapp/host_table_entry.js', |
| 387 'webapp/me2mom/manifest.json', | 433 'webapp/manifest.json', |
| 388 'webapp/me2mom/remoting.js', | 434 'webapp/remoting.js', |
| 389 'host/plugin/host_script_object.cc', | 435 'host/plugin/host_script_object.cc', |
| 390 ], | 436 ], |
| 391 }, | 437 }, |
| 392 { | 438 { |
| 393 'action_name': 'Build It2Me WebApp', | 439 'action_name': 'Build Remoting WebApp', |
| 394 'output_dir': '<(PRODUCT_DIR)/remoting/it2me.webapp', | 440 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
| 395 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug
in.<(host_plugin_extension)', | 441 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug
in.<(host_plugin_extension)', |
| 396 'zip_path': '<(PRODUCT_DIR)/remoting-it2me.zip', | 442 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
| 397 'inputs': [ | 443 'inputs': [ |
| 398 'webapp/build-webapp.py', | 444 'webapp/build-webapp.py', |
| 399 '<(_plugin_path)', | 445 '<(_plugin_path)', |
| 400 '<@(remoting_it2me_files)', | 446 '<@(remoting_webapp_files)', |
| 401 '<@(remoting_it2me_locale_files)', | 447 '<@(remoting_webapp_locale_files)', |
| 402 ], | 448 ], |
| 403 'outputs': [ | 449 'outputs': [ |
| 404 '<(_output_dir)', | 450 '<(_output_dir)', |
| 405 '<(_zip_path)', | 451 '<(_zip_path)', |
| 406 ], | 452 ], |
| 407 'action': [ | 453 'action': [ |
| 408 'python', 'webapp/build-webapp.py', | 454 'python', 'webapp/build-webapp.py', |
| 409 '<(buildtype)', | 455 '<(buildtype)', |
| 410 '<(host_plugin_mime_type)', | 456 '<(host_plugin_mime_type)', |
| 411 '<(_output_dir)', | 457 '<(_output_dir)', |
| 412 '<(_zip_path)', | 458 '<(_zip_path)', |
| 413 '<(_plugin_path)', | 459 '<(_plugin_path)', |
| 414 '<@(remoting_it2me_files)', | 460 '<@(remoting_webapp_files)', |
| 415 '--locales', | 461 '--locales', |
| 416 '<@(remoting_it2me_locale_files)', | 462 '<@(remoting_webapp_locale_files)', |
| 417 ], | 463 ], |
| 418 }, | 464 }, |
| 419 ], | 465 ], |
| 420 }, # end of target 'webapp_it2me' | 466 }, # end of target 'remoting_webapp' |
| 421 { | 467 { |
| 422 'target_name': 'remoting_base', | 468 'target_name': 'remoting_base', |
| 423 'type': 'static_library', | 469 'type': 'static_library', |
| 424 'variables': { 'enable_wexit_time_destructors': 1, }, | 470 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 425 'dependencies': [ | 471 'dependencies': [ |
| 426 '../base/base.gyp:base', | 472 '../base/base.gyp:base', |
| 427 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 473 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 428 '../ui/ui.gyp:ui', | 474 '../ui/ui.gyp:ui', |
| 429 '../net/net.gyp:net', | 475 '../net/net.gyp:net', |
| 430 '../skia/skia.gyp:skia', | 476 '../skia/skia.gyp:skia', |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 '../base/allocator/allocator.gyp:allocator', | 1021 '../base/allocator/allocator.gyp:allocator', |
| 976 ], | 1022 ], |
| 977 }, | 1023 }, |
| 978 ], | 1024 ], |
| 979 ], | 1025 ], |
| 980 }], | 1026 }], |
| 981 ], # end of 'conditions' | 1027 ], # end of 'conditions' |
| 982 }, # end of target 'remoting_unittests' | 1028 }, # end of target 'remoting_unittests' |
| 983 ], # end of targets | 1029 ], # end of targets |
| 984 } | 1030 } |
| OLD | NEW |