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 | 10 |
11 'remoting_host_linux_clipboard%': 1, | 11 'remoting_host_linux_clipboard%': 1, |
12 'remoting_multi_process%': 0, | 12 'remoting_multi_process%': 0, |
13 | 13 |
14 # The version is composed from major & minor versions specific to remoting | 14 # The |major|, |build| and |patch| versions are inherited from Chrome. |
15 # and build & patch versions inherited from Chrome. | 15 # Since Chrome's |minor| version is always '0', we promote the |build| |
16 # version and add a Chromoting-specific patch version at the end. | |
17 # We check both the |chrome_version_path| and the |remoting_version_path| | |
18 # so that we can override the Chrome version numbers if needed. | |
16 'version_py_path': '../chrome/tools/build/version.py', | 19 'version_py_path': '../chrome/tools/build/version.py', |
17 'version_path': '../remoting/VERSION', | 20 'remoting_version_path': '../remoting/VERSION', |
18 'chrome_version_path': '../chrome/VERSION', | 21 'chrome_version_path': '../chrome/VERSION', |
22 'version_major': | |
23 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@MAJOR@")', | |
24 'version_minor': | |
25 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@BUILD@")', | |
26 'version_short': | |
27 '<(version_major).<(version_minor).' | |
28 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@PATCH@")', | |
19 'version_full': | 29 'version_full': |
20 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").' | 30 '<(version_short).' |
21 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@.@PATCH @")', | 31 '<!(python <(version_py_path) -f <(remoting_version_path) -t "@CHROMOTOPAT CH@")', |
22 'version_short': | |
23 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").' | |
24 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@")', | |
25 | 32 |
26 'branding_path': '../remoting/branding_<(branding)', | 33 'branding_path': '../remoting/branding_<(branding)', |
27 'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COP YRIGHT@")', | 34 'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COP YRIGHT@")', |
28 | 35 |
29 # Use consistent strings across all platforms. | 36 # Use consistent strings across all platforms. |
30 # These values must match host/plugin/constants.h | 37 # These values must match host/plugin/constants.h |
31 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', | 38 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', |
32 'host_plugin_description': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_DESCRIPTION@")', | 39 'host_plugin_description': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_DESCRIPTION@")', |
33 'host_plugin_name': '<!(python <(version_py_path) -f <(branding_path) -t "@H OST_PLUGIN_FILE_NAME@")', | 40 'host_plugin_name': '<!(python <(version_py_path) -f <(branding_path) -t "@H OST_PLUGIN_FILE_NAME@")', |
34 | 41 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 'PreferencePanes/org.chromium.chromoting.prefPane', | 340 'PreferencePanes/org.chromium.chromoting.prefPane', |
334 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app', | 341 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app', |
335 'Applications/<(host_uninstaller_name).app', | 342 'Applications/<(host_uninstaller_name).app', |
336 ], | 343 ], |
337 'source_files': [ | 344 'source_files': [ |
338 '<@(remoting_host_installer_mac_files)', | 345 '<@(remoting_host_installer_mac_files)', |
339 ], | 346 ], |
340 'defs': [ | 347 'defs': [ |
341 'VERSION=<(version_full)', | 348 'VERSION=<(version_full)', |
342 'VERSION_SHORT=<(version_short)', | 349 'VERSION_SHORT=<(version_short)', |
343 'VERSION_MAJOR=<!(python <(version_py_path) -f <(version_path) - t "@MAJOR@")', | 350 'VERSION_MAJOR=<(version_major)', |
344 'VERSION_MINOR=<!(python <(version_py_path) -f <(version_path) - t "@MINOR@")', | 351 'VERSION_MINOR=<(version_minor)', |
345 'COPYRIGHT_INFO=<(copyright_info)', | 352 'COPYRIGHT_INFO=<(copyright_info)', |
346 'HOST_NAME=<(host_name)', | 353 'HOST_NAME=<(host_name)', |
347 'HOST_SERVICE_NAME=<(host_service_name)', | 354 'HOST_SERVICE_NAME=<(host_service_name)', |
348 'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)', | 355 'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)', |
349 'HOST_PKG=<(host_name)', | 356 'HOST_PKG=<(host_name)', |
350 'HOST_SERVICE_PKG=<(host_service_name_nospace)', | 357 'HOST_SERVICE_PKG=<(host_service_name_nospace)', |
351 'HOST_UNINSTALLER_PKG=<(host_uninstaller_name_nospace)', | 358 'HOST_UNINSTALLER_PKG=<(host_uninstaller_name_nospace)', |
352 'BUNDLE_ID_HOST=<(bundle_prefix).<(host_name_nospace)', | 359 'BUNDLE_ID_HOST=<(bundle_prefix).<(host_name_nospace)', |
353 'BUNDLE_ID_HOST_SERVICE=<(bundle_prefix).<(host_service_name_nos pace)', | 360 'BUNDLE_ID_HOST_SERVICE=<(bundle_prefix).<(host_service_name_nos pace)', |
354 'BUNDLE_ID_HOST_UNINSTALLER=<(bundle_prefix).<(host_uninstaller_ name_nospace)', | 361 'BUNDLE_ID_HOST_UNINSTALLER=<(bundle_prefix).<(host_uninstaller_ name_nospace)', |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
628 'SubSystem': '2', | 635 'SubSystem': '2', |
629 }, | 636 }, |
630 }, | 637 }, |
631 }, # end of target 'remoting_daemon' | 638 }, # end of target 'remoting_daemon' |
632 | 639 |
633 # Generates the version information resources for the Windows binaries. | 640 # Generates the version information resources for the Windows binaries. |
634 # The .RC files are generated from the "version.rc.version" template and | 641 # The .RC files are generated from the "version.rc.version" template and |
635 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. | 642 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. |
636 # The substitution strings are taken from: | 643 # The substitution strings are taken from: |
637 # - build/util/LASTCHANGE - the last source code revision. | 644 # - build/util/LASTCHANGE - the last source code revision. |
638 # - chrome/VERSION - the build & patch versions. | 645 # - chrome/VERSION - the major, build & patch versions. |
639 # - remoting/VERSION - the major & minor versions. | 646 # - remoting/VERSION - the chromoting patch version (and overrides |
647 # for chrome/VERSION). | |
640 # - (branding_path) - UI/localizable strings. | 648 # - (branding_path) - UI/localizable strings. |
641 # - xxx.ver - per-binary non-localizable strings such as the binary | 649 # - xxx.ver - per-binary non-localizable strings such as the binary |
642 # name. | 650 # name. |
643 { | 651 { |
644 'target_name': 'remoting_version_resources', | 652 'target_name': 'remoting_version_resources', |
645 'type': 'none', | 653 'type': 'none', |
646 'inputs': [ | 654 'inputs': [ |
647 '<(branding_path)', | 655 '<(branding_path)', |
648 'version.rc.version', | 656 'version.rc.version', |
649 '<(DEPTH)/build/util/LASTCHANGE', | 657 '<(DEPTH)/build/util/LASTCHANGE', |
650 '<(version_path)', | 658 '<(remoting_version_path)', |
651 '<(chrome_version_path)', | 659 '<(chrome_version_path)', |
652 ], | 660 ], |
653 'direct_dependent_settings': { | 661 'direct_dependent_settings': { |
654 'include_dirs': [ | 662 'include_dirs': [ |
655 '<(SHARED_INTERMEDIATE_DIR)/remoting', | 663 '<(SHARED_INTERMEDIATE_DIR)/remoting', |
656 ], | 664 ], |
657 }, | 665 }, |
658 'sources': [ | 666 'sources': [ |
659 'host/plugin/remoting_host_plugin.ver', | 667 'host/plugin/remoting_host_plugin.ver', |
660 'host/remoting_desktop.ver', | 668 'host/remoting_desktop.ver', |
661 'host/remoting_host_me2me.ver', | 669 'host/remoting_host_me2me.ver', |
662 'host/win/remoting_controller.ver', | 670 'host/win/remoting_controller.ver', |
663 'host/win/remoting_daemon.ver', | 671 'host/win/remoting_daemon.ver', |
664 ], | 672 ], |
665 'rules': [ | 673 'rules': [ |
666 { | 674 { |
667 'rule_name': 'version', | 675 'rule_name': 'version', |
668 'extension': 'ver', | 676 'extension': 'ver', |
669 'variables': { | 677 'variables': { |
670 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', | 678 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', |
671 'template_input_path': 'version.rc.version', | 679 'template_input_path': 'version.rc.version', |
672 }, | 680 }, |
673 'inputs': [ | 681 'inputs': [ |
674 '<(template_input_path)', | 682 '<(template_input_path)', |
675 '<(version_path)', | 683 '<(remoting_version_path)', |
alexeypa (please no reviews)
2012/10/09 18:28:18
nit: sort these alphabetically.
garykac
2012/10/09 18:51:55
Done.
| |
676 '<(chrome_version_path)', | 684 '<(chrome_version_path)', |
677 '<(branding_path)', | 685 '<(branding_path)', |
678 '<(lastchange_path)', | 686 '<(lastchange_path)', |
679 ], | 687 ], |
680 'outputs': [ | 688 'outputs': [ |
681 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc', | 689 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc', |
682 ], | 690 ], |
683 'action': [ | 691 'action': [ |
684 'python', | 692 'python', |
685 '<(version_py_path)', | 693 '<(version_py_path)', |
686 '-f', '<(RULE_INPUT_PATH)', | 694 '-f', '<(RULE_INPUT_PATH)', |
687 '-f', '<(chrome_version_path)', | 695 '-f', '<(chrome_version_path)', |
688 '-f', '<(version_path)', | 696 '-f', '<(remoting_version_path)', |
alexeypa (please no reviews)
2012/10/09 18:28:18
nit: add a comment saying the the order is importa
garykac
2012/10/09 18:51:55
Done.
| |
689 '-f', '<(branding_path)', | 697 '-f', '<(branding_path)', |
690 '-f', '<(lastchange_path)', | 698 '-f', '<(lastchange_path)', |
691 '<(template_input_path)', | 699 '<(template_input_path)', |
692 '<@(_outputs)', | 700 '<@(_outputs)', |
693 ], | 701 ], |
694 'message': 'Generating version information in <@(_outputs)' | 702 'message': 'Generating version information in <@(_outputs)' |
695 }, | 703 }, |
696 ], | 704 ], |
697 }, # end of target 'remoting_version_resources' | 705 }, # end of target 'remoting_version_resources' |
698 ], # end of 'targets' | 706 ], # end of 'targets' |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1122 | 1130 |
1123 { | 1131 { |
1124 'target_name': 'remoting_webapp', | 1132 'target_name': 'remoting_webapp', |
1125 'type': 'none', | 1133 'type': 'none', |
1126 'dependencies': [ | 1134 'dependencies': [ |
1127 'remoting_host_plugin', | 1135 'remoting_host_plugin', |
1128 ], | 1136 ], |
1129 'sources': [ | 1137 'sources': [ |
1130 'webapp/build-webapp.py', | 1138 'webapp/build-webapp.py', |
1131 'webapp/verify-webapp.py', | 1139 'webapp/verify-webapp.py', |
1132 '<(version_path)', | 1140 '<(remoting_version_path)', |
1133 '<(chrome_version_path)', | 1141 '<(chrome_version_path)', |
1134 '<@(remoting_webapp_files)', | 1142 '<@(remoting_webapp_files)', |
1135 '<@(remoting_webapp_locale_files)', | 1143 '<@(remoting_webapp_locale_files)', |
1136 ], | 1144 ], |
1137 # Can't use a 'copies' because we need to manipulate | 1145 # Can't use a 'copies' because we need to manipulate |
1138 # the manifest file to get the right plugin name. | 1146 # the manifest file to get the right plugin name. |
1139 # Also we need to move the plugin into the me2mom | 1147 # Also we need to move the plugin into the me2mom |
1140 # folder, which means 2 copies, and gyp doesn't | 1148 # folder, which means 2 copies, and gyp doesn't |
1141 # seem to guarantee the ordering of 2 copies statements | 1149 # seem to guarantee the ordering of 2 copies statements |
1142 # when the actual project is generated. | 1150 # when the actual project is generated. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1174 ], | 1182 ], |
1175 }, | 1183 }, |
1176 { | 1184 { |
1177 'action_name': 'Build Remoting WebApp', | 1185 'action_name': 'Build Remoting WebApp', |
1178 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', | 1186 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
1179 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug in.<(host_plugin_extension)', | 1187 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug in.<(host_plugin_extension)', |
1180 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', | 1188 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
1181 'inputs': [ | 1189 'inputs': [ |
1182 'webapp/build-webapp.py', | 1190 'webapp/build-webapp.py', |
1183 '<(_plugin_path)', | 1191 '<(_plugin_path)', |
1184 '<(version_path)', | 1192 '<(remoting_version_path)', |
1185 '<(chrome_version_path)', | 1193 '<(chrome_version_path)', |
1186 '<@(remoting_webapp_files)', | 1194 '<@(remoting_webapp_files)', |
1187 '<@(remoting_webapp_locale_files)', | 1195 '<@(remoting_webapp_locale_files)', |
1188 ], | 1196 ], |
1189 'outputs': [ | 1197 'outputs': [ |
1190 '<(_output_dir)', | 1198 '<(_output_dir)', |
1191 '<(_zip_path)', | 1199 '<(_zip_path)', |
1192 ], | 1200 ], |
1193 'action': [ | 1201 'action': [ |
1194 'python', 'webapp/build-webapp.py', | 1202 'python', 'webapp/build-webapp.py', |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1990 '../base/allocator/allocator.gyp:allocator', | 1998 '../base/allocator/allocator.gyp:allocator', |
1991 ], | 1999 ], |
1992 }, | 2000 }, |
1993 ], | 2001 ], |
1994 ], | 2002 ], |
1995 }], | 2003 }], |
1996 ], # end of 'conditions' | 2004 ], # end of 'conditions' |
1997 }, # end of target 'remoting_unittests' | 2005 }, # end of target 'remoting_unittests' |
1998 ], # end of targets | 2006 ], # end of targets |
1999 } | 2007 } |
OLD | NEW |