Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: remoting/remoting.gyp

Issue 11058004: [Chromoting] Update remoting version numbering pattern (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor = chromoting-patch version Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/VERSION ('k') | remoting/version.rc.version » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 replace it with a
16 # Chromoting-specific patch version.
17 # Note that we check both the |chrome_version_path| file and the
18 # |remoting_version_path| so that we can override the Chrome version
19 # numbers if needed.
16 'version_py_path': '../chrome/tools/build/version.py', 20 'version_py_path': '../chrome/tools/build/version.py',
17 'version_path': '../remoting/VERSION', 21 'remoting_version_path': '../remoting/VERSION',
18 'chrome_version_path': '../chrome/VERSION', 22 'chrome_version_path': '../chrome/VERSION',
23 'version_major':
24 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@MAJOR@")',
25 'version_minor':
26 '<!(python <(version_py_path) -f <(remoting_version_path) -t "@REMOTING_PA TCH@")',
27 'version_short':
28 '<(version_major).<(version_minor).'
29 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@BUILD@")',
19 'version_full': 30 'version_full':
20 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").' 31 '<(version_short).'
21 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@.@PATCH @")', 32 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@PATCH@")',
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 33
26 'branding_path': '../remoting/branding_<(branding)', 34 'branding_path': '../remoting/branding_<(branding)',
27 'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COP YRIGHT@")', 35 'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COP YRIGHT@")',
28 36
29 # Use consistent strings across all platforms. 37 # Use consistent strings across all platforms.
30 # These values must match host/plugin/constants.h 38 # These values must match host/plugin/constants.h
31 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', 39 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host',
32 'host_plugin_description': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_DESCRIPTION@")', 40 '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@")', 41 'host_plugin_name': '<!(python <(version_py_path) -f <(branding_path) -t "@H OST_PLUGIN_FILE_NAME@")',
34 42
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 'PreferencePanes/org.chromium.chromoting.prefPane', 341 'PreferencePanes/org.chromium.chromoting.prefPane',
334 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app', 342 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app',
335 'Applications/<(host_uninstaller_name).app', 343 'Applications/<(host_uninstaller_name).app',
336 ], 344 ],
337 'source_files': [ 345 'source_files': [
338 '<@(remoting_host_installer_mac_files)', 346 '<@(remoting_host_installer_mac_files)',
339 ], 347 ],
340 'defs': [ 348 'defs': [
341 'VERSION=<(version_full)', 349 'VERSION=<(version_full)',
342 'VERSION_SHORT=<(version_short)', 350 'VERSION_SHORT=<(version_short)',
343 'VERSION_MAJOR=<!(python <(version_py_path) -f <(version_path) - t "@MAJOR@")', 351 'VERSION_MAJOR=<(version_major)',
344 'VERSION_MINOR=<!(python <(version_py_path) -f <(version_path) - t "@MINOR@")', 352 'VERSION_MINOR=<(version_minor)',
345 'COPYRIGHT_INFO=<(copyright_info)', 353 'COPYRIGHT_INFO=<(copyright_info)',
346 'HOST_NAME=<(host_name)', 354 'HOST_NAME=<(host_name)',
347 'HOST_SERVICE_NAME=<(host_service_name)', 355 'HOST_SERVICE_NAME=<(host_service_name)',
348 'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)', 356 'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)',
349 'HOST_PKG=<(host_name)', 357 'HOST_PKG=<(host_name)',
350 'HOST_SERVICE_PKG=<(host_service_name_nospace)', 358 'HOST_SERVICE_PKG=<(host_service_name_nospace)',
351 'HOST_UNINSTALLER_PKG=<(host_uninstaller_name_nospace)', 359 'HOST_UNINSTALLER_PKG=<(host_uninstaller_name_nospace)',
352 'BUNDLE_ID_HOST=<(bundle_prefix).<(host_name_nospace)', 360 'BUNDLE_ID_HOST=<(bundle_prefix).<(host_name_nospace)',
353 'BUNDLE_ID_HOST_SERVICE=<(bundle_prefix).<(host_service_name_nos pace)', 361 'BUNDLE_ID_HOST_SERVICE=<(bundle_prefix).<(host_service_name_nos pace)',
354 'BUNDLE_ID_HOST_UNINSTALLER=<(bundle_prefix).<(host_uninstaller_ name_nospace)', 362 'BUNDLE_ID_HOST_UNINSTALLER=<(bundle_prefix).<(host_uninstaller_ name_nospace)',
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 'SubSystem': '2', 636 'SubSystem': '2',
629 }, 637 },
630 }, 638 },
631 }, # end of target 'remoting_daemon' 639 }, # end of target 'remoting_daemon'
632 640
633 # Generates the version information resources for the Windows binaries. 641 # Generates the version information resources for the Windows binaries.
634 # The .RC files are generated from the "version.rc.version" template and 642 # The .RC files are generated from the "version.rc.version" template and
635 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. 643 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder.
636 # The substitution strings are taken from: 644 # The substitution strings are taken from:
637 # - build/util/LASTCHANGE - the last source code revision. 645 # - build/util/LASTCHANGE - the last source code revision.
638 # - chrome/VERSION - the build & patch versions. 646 # - chrome/VERSION - the major, build & patch versions.
639 # - remoting/VERSION - the major & minor versions. 647 # - remoting/VERSION - the chromoting patch version (and overrides
648 # for chrome/VERSION).
640 # - (branding_path) - UI/localizable strings. 649 # - (branding_path) - UI/localizable strings.
641 # - xxx.ver - per-binary non-localizable strings such as the binary 650 # - xxx.ver - per-binary non-localizable strings such as the binary
642 # name. 651 # name.
643 { 652 {
644 'target_name': 'remoting_version_resources', 653 'target_name': 'remoting_version_resources',
645 'type': 'none', 654 'type': 'none',
646 'inputs': [ 655 'inputs': [
647 '<(branding_path)', 656 '<(branding_path)',
648 'version.rc.version', 657 'version.rc.version',
649 '<(DEPTH)/build/util/LASTCHANGE', 658 '<(DEPTH)/build/util/LASTCHANGE',
650 '<(version_path)', 659 '<(remoting_version_path)',
651 '<(chrome_version_path)', 660 '<(chrome_version_path)',
652 ], 661 ],
653 'direct_dependent_settings': { 662 'direct_dependent_settings': {
654 'include_dirs': [ 663 'include_dirs': [
655 '<(SHARED_INTERMEDIATE_DIR)/remoting', 664 '<(SHARED_INTERMEDIATE_DIR)/remoting',
656 ], 665 ],
657 }, 666 },
658 'sources': [ 667 'sources': [
659 'host/plugin/remoting_host_plugin.ver', 668 'host/plugin/remoting_host_plugin.ver',
660 'host/remoting_desktop.ver', 669 'host/remoting_desktop.ver',
661 'host/remoting_host_me2me.ver', 670 'host/remoting_host_me2me.ver',
662 'host/win/remoting_controller.ver', 671 'host/win/remoting_controller.ver',
663 'host/win/remoting_daemon.ver', 672 'host/win/remoting_daemon.ver',
664 ], 673 ],
665 'rules': [ 674 'rules': [
666 { 675 {
667 'rule_name': 'version', 676 'rule_name': 'version',
668 'extension': 'ver', 677 'extension': 'ver',
669 'variables': { 678 'variables': {
670 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', 679 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
671 'template_input_path': 'version.rc.version', 680 'template_input_path': 'version.rc.version',
672 }, 681 },
673 'inputs': [ 682 'inputs': [
683 '<(branding_path)',
684 '<(chrome_version_path)',
685 '<(lastchange_path)',
686 '<(remoting_version_path)',
674 '<(template_input_path)', 687 '<(template_input_path)',
675 '<(version_path)',
676 '<(chrome_version_path)',
677 '<(branding_path)',
678 '<(lastchange_path)',
679 ], 688 ],
680 'outputs': [ 689 'outputs': [
681 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc', 690 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc',
682 ], 691 ],
683 'action': [ 692 'action': [
684 'python', 693 'python',
685 '<(version_py_path)', 694 '<(version_py_path)',
686 '-f', '<(RULE_INPUT_PATH)', 695 '-f', '<(RULE_INPUT_PATH)',
687 '-f', '<(chrome_version_path)', 696 '-f', '<(chrome_version_path)',
688 '-f', '<(version_path)', 697 # |remoting_version_path| must be after |chrome_version_path|
698 # because it can contain overrides for the version numbers.
699 '-f', '<(remoting_version_path)',
689 '-f', '<(branding_path)', 700 '-f', '<(branding_path)',
690 '-f', '<(lastchange_path)', 701 '-f', '<(lastchange_path)',
691 '<(template_input_path)', 702 '<(template_input_path)',
692 '<@(_outputs)', 703 '<@(_outputs)',
693 ], 704 ],
694 'message': 'Generating version information in <@(_outputs)' 705 'message': 'Generating version information in <@(_outputs)'
695 }, 706 },
696 ], 707 ],
697 }, # end of target 'remoting_version_resources' 708 }, # end of target 'remoting_version_resources'
698 ], # end of 'targets' 709 ], # end of 'targets'
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 1133
1123 { 1134 {
1124 'target_name': 'remoting_webapp', 1135 'target_name': 'remoting_webapp',
1125 'type': 'none', 1136 'type': 'none',
1126 'dependencies': [ 1137 'dependencies': [
1127 'remoting_host_plugin', 1138 'remoting_host_plugin',
1128 ], 1139 ],
1129 'sources': [ 1140 'sources': [
1130 'webapp/build-webapp.py', 1141 'webapp/build-webapp.py',
1131 'webapp/verify-webapp.py', 1142 'webapp/verify-webapp.py',
1132 '<(version_path)', 1143 '<(remoting_version_path)',
1133 '<(chrome_version_path)', 1144 '<(chrome_version_path)',
1134 '<@(remoting_webapp_files)', 1145 '<@(remoting_webapp_files)',
1135 '<@(remoting_webapp_locale_files)', 1146 '<@(remoting_webapp_locale_files)',
1136 ], 1147 ],
1137 # Can't use a 'copies' because we need to manipulate 1148 # Can't use a 'copies' because we need to manipulate
1138 # the manifest file to get the right plugin name. 1149 # the manifest file to get the right plugin name.
1139 # Also we need to move the plugin into the me2mom 1150 # Also we need to move the plugin into the me2mom
1140 # folder, which means 2 copies, and gyp doesn't 1151 # folder, which means 2 copies, and gyp doesn't
1141 # seem to guarantee the ordering of 2 copies statements 1152 # seem to guarantee the ordering of 2 copies statements
1142 # when the actual project is generated. 1153 # when the actual project is generated.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 ], 1185 ],
1175 }, 1186 },
1176 { 1187 {
1177 'action_name': 'Build Remoting WebApp', 1188 'action_name': 'Build Remoting WebApp',
1178 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', 1189 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp',
1179 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug in.<(host_plugin_extension)', 1190 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug in.<(host_plugin_extension)',
1180 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', 1191 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip',
1181 'inputs': [ 1192 'inputs': [
1182 'webapp/build-webapp.py', 1193 'webapp/build-webapp.py',
1183 '<(_plugin_path)', 1194 '<(_plugin_path)',
1184 '<(version_path)', 1195 '<(remoting_version_path)',
1185 '<(chrome_version_path)', 1196 '<(chrome_version_path)',
1186 '<@(remoting_webapp_files)', 1197 '<@(remoting_webapp_files)',
1187 '<@(remoting_webapp_locale_files)', 1198 '<@(remoting_webapp_locale_files)',
1188 ], 1199 ],
1189 'outputs': [ 1200 'outputs': [
1190 '<(_output_dir)', 1201 '<(_output_dir)',
1191 '<(_zip_path)', 1202 '<(_zip_path)',
1192 ], 1203 ],
1193 'action': [ 1204 'action': [
1194 'python', 'webapp/build-webapp.py', 1205 'python', 'webapp/build-webapp.py',
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 '../base/allocator/allocator.gyp:allocator', 2001 '../base/allocator/allocator.gyp:allocator',
1991 ], 2002 ],
1992 }, 2003 },
1993 ], 2004 ],
1994 ], 2005 ],
1995 }], 2006 }],
1996 ], # end of 'conditions' 2007 ], # end of 'conditions'
1997 }, # end of target 'remoting_unittests' 2008 }, # end of target 'remoting_unittests'
1998 ], # end of targets 2009 ], # end of targets
1999 } 2010 }
OLDNEW
« no previous file with comments | « remoting/VERSION ('k') | remoting/version.rc.version » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698