Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 4 | 5 |
| 5 { | 6 { |
| 6 'variables': { | 7 'variables': { |
| 7 # TODO(dmaclach): can we pick this up some other way? Right now it's | 8 # TODO(dmaclach): can we pick this up some other way? Right now it's |
| 8 # duplicated from chrome.gyp | 9 # duplicated from chrome.gyp |
| 9 'chromium_code': 1, | 10 'chromium_code': 1, |
| 10 # Use consistent strings across all platforms. Note that the plugin name | 11 # Use consistent strings across all platforms. Note that the plugin name |
| 11 # is brand-dependent and is defined further down. | 12 # is brand-dependent and is defined further down. |
| 12 # Must match host/plugin/constants.h | 13 # Must match host/plugin/constants.h |
| 13 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', | 14 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', |
| 14 'host_plugin_description': 'Allow another user to access your computer secur ely over the Internet.', | 15 'host_plugin_description': 'Allow another user to access your computer secur ely over the Internet.', |
| 15 | 16 |
| 16 # Borrow the scripts for generating version information for remoting | 17 # The version is composed from major & minor versions specific to remoting |
| 17 # binaries from Chrome. | 18 # and build & patch versions inherited from Chrome. |
| 18 'variables': { | 19 'version_py_path': '../chrome/tools/build/version.py', |
| 19 'version_py_path': '../chrome/tools/build/version.py', | 20 'version_path': '../remoting/VERSION', |
| 20 'version_path': '../remoting/VERSION', | 21 'chrome_version_path': '../chrome/VERSION', |
| 21 }, | |
| 22 'version_py_path': '<(version_py_path)', | |
| 23 'version_path': '<(version_path)', | |
| 24 'version_full': | 22 'version_full': |
| 25 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@.@BU ILD@.@PATCH@")', | 23 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").' |
| 24 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@.@PATCH @")', | |
| 26 | 25 |
| 27 'conditions': [ | 26 'conditions': [ |
| 28 ['OS=="mac"', { | 27 ['OS=="mac"', { |
| 29 'conditions': [ | 28 'conditions': [ |
| 30 ['branding=="Chrome"', { | 29 ['branding=="Chrome"', { |
| 31 'mac_bundle_id': 'com.google.Chrome', | 30 'mac_bundle_id': 'com.google.Chrome', |
| 32 'mac_creator': 'rimZ', | 31 'mac_creator': 'rimZ', |
| 33 }, { # else: branding!="Chrome" | 32 }, { # else: branding!="Chrome" |
| 34 'mac_bundle_id': 'org.chromium.Chromium', | 33 'mac_bundle_id': 'org.chromium.Chromium', |
| 35 'mac_creator': 'Cr24', | 34 'mac_creator': 'Cr24', |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 310 'AdditionalDependencies': [ | 309 'AdditionalDependencies': [ |
| 311 'wtsapi32.lib', | 310 'wtsapi32.lib', |
| 312 ], | 311 ], |
| 313 }, | 312 }, |
| 314 }, | 313 }, |
| 315 }, # end of target 'remoting_service' | 314 }, # end of target 'remoting_service' |
| 316 | 315 |
| 317 # Generates the version information resources for the Windows binaries. | 316 # Generates the version information resources for the Windows binaries. |
| 318 # The .RC files are generated from the "version.rc.version" template and | 317 # The .RC files are generated from the "version.rc.version" template and |
| 319 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. | 318 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. |
| 320 # The substiture strings are taken from: | 319 # The substition strings are taken from: |
|
alexeypa (please no reviews)
2012/04/14 04:08:56
typo: substition
Wez
2012/04/14 22:23:12
Done. Mis-spelled a spelling correction. Ouch!
| |
| 321 # - remoting/VERSION - the current version of Chromoting. | |
| 322 # - build/util/LASTCHANGE - the last source code revision. | 320 # - build/util/LASTCHANGE - the last source code revision. |
| 321 # - chrome/VERSION - the build & patch versions. | |
| 322 # - remoting/VERSION - the major & minor versions. | |
| 323 # - xxx_branding - UI/localizable strings. | 323 # - xxx_branding - UI/localizable strings. |
| 324 # - xxx.ver - per-binary non-localizable strings such as the binary | 324 # - xxx.ver - per-binary non-localizable strings such as the binary |
| 325 # name. | 325 # name. |
| 326 { | 326 { |
| 327 'target_name': 'remoting_version_resources', | 327 'target_name': 'remoting_version_resources', |
| 328 'type': 'none', | 328 'type': 'none', |
| 329 'dependencies': [ | 329 'dependencies': [ |
| 330 '../build/util/build_util.gyp:lastchange#target', | 330 '../build/util/build_util.gyp:lastchange#target', |
| 331 ], | 331 ], |
| 332 'inputs': [ | 332 'inputs': [ |
| 333 'chromium_branding', | 333 'chromium_branding', |
| 334 'google_chrome_branding', | 334 'google_chrome_branding', |
| 335 'version.rc.version', | 335 'version.rc.version', |
| 336 '<(DEPTH)/build/util/LASTCHANGE', | 336 '<(DEPTH)/build/util/LASTCHANGE', |
| 337 '<(version_path)', | 337 '<(version_path)', |
| 338 '<(chrome_version_path)', | |
| 338 ], | 339 ], |
| 339 'direct_dependent_settings': { | 340 'direct_dependent_settings': { |
| 340 'include_dirs': [ | 341 'include_dirs': [ |
| 341 '<(SHARED_INTERMEDIATE_DIR)/remoting', | 342 '<(SHARED_INTERMEDIATE_DIR)/remoting', |
| 342 ], | 343 ], |
| 343 }, | 344 }, |
| 344 'sources': [ | 345 'sources': [ |
| 345 'host/elevated_controller.ver', | 346 'host/elevated_controller.ver', |
| 346 'host/host_service.ver', | 347 'host/host_service.ver', |
| 347 'host/plugin/host_plugin.ver', | 348 'host/plugin/host_plugin.ver', |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 362 }, | 363 }, |
| 363 }, { # else branding!="Chrome" | 364 }, { # else branding!="Chrome" |
| 364 'variables': { | 365 'variables': { |
| 365 'branding_path': 'chromium_branding', | 366 'branding_path': 'chromium_branding', |
| 366 }, | 367 }, |
| 367 }], | 368 }], |
| 368 ], | 369 ], |
| 369 'inputs': [ | 370 'inputs': [ |
| 370 '<(template_input_path)', | 371 '<(template_input_path)', |
| 371 '<(version_path)', | 372 '<(version_path)', |
| 373 '<(chrome_version_path)', | |
| 372 '<(branding_path)', | 374 '<(branding_path)', |
| 373 '<(lastchange_path)', | 375 '<(lastchange_path)', |
| 374 ], | 376 ], |
| 375 'outputs': [ | 377 'outputs': [ |
| 376 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc', | 378 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc', |
| 377 ], | 379 ], |
| 378 'action': [ | 380 'action': [ |
| 379 'python', | 381 'python', |
| 380 '<(version_py_path)', | 382 '<(version_py_path)', |
| 381 '-f', '<(RULE_INPUT_PATH)', | 383 '-f', '<(RULE_INPUT_PATH)', |
| 384 '-f', '<(chrome_version_path)', | |
| 382 '-f', '<(version_path)', | 385 '-f', '<(version_path)', |
| 383 '-f', '<(branding_path)', | 386 '-f', '<(branding_path)', |
| 384 '-f', '<(lastchange_path)', | 387 '-f', '<(lastchange_path)', |
| 385 '<(template_input_path)', | 388 '<(template_input_path)', |
| 386 '<@(_outputs)', | 389 '<@(_outputs)', |
| 387 ], | 390 ], |
| 388 'message': 'Generating version information in <@(_outputs)' | 391 'message': 'Generating version information in <@(_outputs)' |
| 389 }, | 392 }, |
| 390 ], | 393 ], |
| 391 }, # end of target 'remoting_version_resources' | 394 }, # end of target 'remoting_version_resources' |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 614 | 617 |
| 615 { | 618 { |
| 616 'target_name': 'remoting_webapp', | 619 'target_name': 'remoting_webapp', |
| 617 'type': 'none', | 620 'type': 'none', |
| 618 'dependencies': [ | 621 'dependencies': [ |
| 619 'remoting_host_plugin', | 622 'remoting_host_plugin', |
| 620 ], | 623 ], |
| 621 'sources': [ | 624 'sources': [ |
| 622 'webapp/build-webapp.py', | 625 'webapp/build-webapp.py', |
| 623 'webapp/verify-webapp.py', | 626 'webapp/verify-webapp.py', |
| 627 '<(version_path)', | |
| 628 '<(chrome_version_path)', | |
| 624 '<@(remoting_webapp_files)', | 629 '<@(remoting_webapp_files)', |
| 625 '<@(remoting_webapp_locale_files)', | 630 '<@(remoting_webapp_locale_files)', |
| 626 ], | 631 ], |
| 627 # Can't use a 'copies' because we need to manipulate | 632 # Can't use a 'copies' because we need to manipulate |
| 628 # the manifest file to get the right plugin name. | 633 # the manifest file to get the right plugin name. |
| 629 # Also we need to move the plugin into the me2mom | 634 # Also we need to move the plugin into the me2mom |
| 630 # folder, which means 2 copies, and gyp doesn't | 635 # folder, which means 2 copies, and gyp doesn't |
| 631 # seem to guarantee the ordering of 2 copies statements | 636 # seem to guarantee the ordering of 2 copies statements |
| 632 # when the actual project is generated. | 637 # when the actual project is generated. |
| 633 'actions': [ | 638 'actions': [ |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 664 ], | 669 ], |
| 665 }, | 670 }, |
| 666 { | 671 { |
| 667 'action_name': 'Build Remoting WebApp', | 672 'action_name': 'Build Remoting WebApp', |
| 668 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', | 673 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
| 669 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug in.<(host_plugin_extension)', | 674 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug in.<(host_plugin_extension)', |
| 670 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', | 675 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
| 671 'inputs': [ | 676 'inputs': [ |
| 672 'webapp/build-webapp.py', | 677 'webapp/build-webapp.py', |
| 673 '<(_plugin_path)', | 678 '<(_plugin_path)', |
| 679 '<(version_path)', | |
| 680 '<(chrome_version_path)', | |
| 674 '<@(remoting_webapp_files)', | 681 '<@(remoting_webapp_files)', |
| 675 '<@(remoting_webapp_locale_files)', | 682 '<@(remoting_webapp_locale_files)', |
| 676 ], | 683 ], |
| 677 'outputs': [ | 684 'outputs': [ |
| 678 '<(_output_dir)', | 685 '<(_output_dir)', |
| 679 '<(_zip_path)', | 686 '<(_zip_path)', |
| 680 ], | 687 ], |
| 681 'action': [ | 688 'action': [ |
| 682 'python', 'webapp/build-webapp.py', | 689 'python', 'webapp/build-webapp.py', |
| 683 '<(buildtype)', | 690 '<(buildtype)', |
| 691 '<(version_full)', | |
| 684 '<(host_plugin_mime_type)', | 692 '<(host_plugin_mime_type)', |
| 685 '<(_output_dir)', | 693 '<(_output_dir)', |
| 686 '<(_zip_path)', | 694 '<(_zip_path)', |
| 687 '<(_plugin_path)', | 695 '<(_plugin_path)', |
| 688 '<@(remoting_webapp_files)', | 696 '<@(remoting_webapp_files)', |
| 689 '--locales', | 697 '--locales', |
| 690 '<@(remoting_webapp_locale_files)', | 698 '<@(remoting_webapp_locale_files)', |
| 691 ], | 699 ], |
| 692 }, | 700 }, |
| 693 ], | 701 ], |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1385 '../base/allocator/allocator.gyp:allocator', | 1393 '../base/allocator/allocator.gyp:allocator', |
| 1386 ], | 1394 ], |
| 1387 }, | 1395 }, |
| 1388 ], | 1396 ], |
| 1389 ], | 1397 ], |
| 1390 }], | 1398 }], |
| 1391 ], # end of 'conditions' | 1399 ], # end of 'conditions' |
| 1392 }, # end of target 'remoting_unittests' | 1400 }, # end of target 'remoting_unittests' |
| 1393 ], # end of targets | 1401 ], # end of targets |
| 1394 } | 1402 } |
| OLD | NEW |