Skip to content

Commit

Permalink
[Chromoting] Cleanup branding variables in Chromoting gyp file.
Browse files Browse the repository at this point in the history
Also remote tabs that crept into the remoting.gyp file.

Review URL: https://chromiumcodereview.appspot.com/10829327

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152182 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
garykac@chromium.org committed Aug 17, 2012
1 parent c857984 commit c57bee0
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 132 deletions.
20 changes: 20 additions & 0 deletions remoting/branding_Chrome
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
COMPANY_FULLNAME=Google Inc.
PRODUCT_FULLNAME=Chrome Remote Desktop
COPYRIGHT=Copyright (c) 2012 Google Inc. All Rights Reserved.
HOST_PLUGIN_FILE_NAME=Chrome Remote Desktop Host
HOST_PLUGIN_FILE_DESCRIPTION=Allow another user to access your computer securely over the Internet.
HOST_FILE_NAME=Chrome Remote Desktop Host
HOST_FILE_DESCRIPTION=Chrome Remote Desktop Host
HOST_SERVICE_FILE_NAME=Chrome Remote Desktop Host Service
HOST_SERVICE_FILE_DESCRIPTION=Chrome Remote Desktop Host Service
HOST_CONTROLLER_FILE_DESCRIPTION=Chrome Remote Desktop Host Controller
MAC_BUNDLE_ID=com.google.Chrome
MAC_CREATOR=rimZ
MAC_HOST_BUNDLE_ID=com.google.chrome_remote_desktop.remoting_me2me_host
MAC_UNINSTALLER_NAME=Chrome Remote Desktop Host Uninstaller
MAC_UNINSTALLER_BUNDLE_PREFIX=com.google.pkg
MAC_UNINSTALLER_BUNDLE_ID=com.google.chromeremotedesktop.host_uninstaller
MAC_UNINSTALLER_BUNDLE_NAME=Chrome Remote Desktop Host Uninstaller
MAC_PREFPANE_BUNDLE_ID=com.google.chromeremotedesktop.preferences
MAC_PREFPANE_BUNDLE_NAME=Chrome Remote Desktop Host Preferences
MAC_PREFPANE_ICON_LABEL=Chrome Remote
Desktop Host
20 changes: 20 additions & 0 deletions remoting/branding_Chromium
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
COMPANY_FULLNAME=The Chromium Authors
PRODUCT_FULLNAME=Chromoting
COPYRIGHT=Copyright (c) 2012 The Chromium Authors. All Rights Reserved.
HOST_PLUGIN_FILE_NAME=Chromoting Host
HOST_PLUGIN_FILE_DESCRIPTION=Allow another user to access your computer securely over the Internet.
HOST_FILE_NAME=Chromoting Host
HOST_FILE_DESCRIPTION=Chromoting Host
HOST_SERVICE_FILE_NAME=Chromoting Host Service
HOST_SERVICE_FILE_DESCRIPTION=Chromoting Host Service
HOST_CONTROLLER_FILE_DESCRIPTION=Chromoting Host Controller
MAC_BUNDLE_ID=org.chromium.Chromium
MAC_CREATOR=Cr24
MAC_HOST_BUNDLE_ID=org.chromium.chromoting.remoting_me2me_host
MAC_UNINSTALLER_NAME=Chromoting Host Uninstaller
MAC_UNINSTALLER_BUNDLE_PREFIX=org.chromium.pkg
MAC_UNINSTALLER_BUNDLE_ID=org.chromium.remoting.host_uninstaller
MAC_UNINSTALLER_BUNDLE_NAME=Chromoting Host Uninstaller
MAC_PREFPANE_BUNDLE_ID=org.chromium.remoting.preferences
MAC_PREFPANE_BUNDLE_NAME=Chromoting Host Preferences
MAC_PREFPANE_ICON_LABEL=Chromoting
Host
7 changes: 0 additions & 7 deletions remoting/chromium_branding

This file was deleted.

7 changes: 0 additions & 7 deletions remoting/google_chrome_branding

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012 COPYRIGHT_BY All rights reserved.</string>
<string>COPYRIGHT_INFO</string>
<key>NSMainNibFile</key>
<string>remoting_uninstaller</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion remoting/host/me2me_preference_pane-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<key>CFBundleVersion</key>
<string>VERSION_FULL</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012 COPYRIGHT_BY All rights reserved.</string>
<string>COPYRIGHT_INFO</string>
<key>NSMainNibFile</key>
<string>me2me_preference_pane</string>
<key>NSPrefPaneIconFile</key>
Expand Down
4 changes: 2 additions & 2 deletions remoting/host/plugin/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

// Warning: If you modify any macro in this file, make sure to modify
// the following files too:
// - remoting/branding_Chrome
// - remoting/branding_Chromium
// - remoting/remoting.gyp
// - remoting/chromium_branding
// - remoting/google_chrome_branding
// - remoting/host/plugin/host_plugin.ver

#define HOST_PLUGIN_DESCRIPTION \
Expand Down
2 changes: 1 addition & 1 deletion remoting/host/remoting_me2me_host-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012 COPYRIGHT_BY All rights reserved.</string>
<string>COPYRIGHT_INFO</string>
<key>LSUIElement</key>
<string>1</string>
</dict>
Expand Down
162 changes: 52 additions & 110 deletions remoting/remoting.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
'remoting_audio%': 0,
'remoting_multi_process%': 0,

# Use consistent strings across all platforms. Note that the plugin name
# is brand-dependent and is defined further down.
# Must match host/plugin/constants.h
'host_plugin_mime_type': 'application/vnd.chromium.remoting-host',
'host_plugin_description': 'Allow another user to access your computer securely over the Internet.',

# The version is composed from major & minor versions specific to remoting
# and build & patch versions inherited from Chrome.
'version_py_path': '../chrome/tools/build/version.py',
Expand All @@ -29,19 +23,19 @@
'<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").'
'<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@")',

'branding_path': '../remoting/branding_<(branding)',
'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COPYRIGHT@")',

# Use consistent strings across all platforms.
# These values must match host/plugin/constants.h
'host_plugin_mime_type': 'application/vnd.chromium.remoting-host',
'host_plugin_description': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_FILE_DESCRIPTION@")',
'host_plugin_name': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_FILE_NAME@")',

'conditions': [
['OS=="mac"', {
'conditions': [
['branding=="Chrome"', {
'mac_bundle_id': 'com.google.Chrome',
'mac_creator': 'rimZ',
'copyright_by': 'Google Inc.',
}, { # else: branding!="Chrome"
'mac_bundle_id': 'org.chromium.Chromium',
'mac_creator': 'Cr24',
'copyright_by': 'The Chromium Authors.',
}], # branding
], # conditions
'mac_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_BUNDLE_ID@")',
'mac_creator': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_CREATOR@")',
'host_plugin_extension': 'plugin',
'host_plugin_prefix': '',
}],
Expand All @@ -64,9 +58,8 @@
'host_plugin_extension': 'dll',
'host_plugin_prefix': '',
}],

['branding=="Chrome"', {
# Must match host/plugin/constants.h
'host_plugin_name': 'Chrome Remote Desktop Host',
'remoting_webapp_locale_files': [
'webapp/_locales.official/ar/messages.json',
'webapp/_locales.official/bg/messages.json',
Expand Down Expand Up @@ -112,8 +105,6 @@
'webapp/_locales.official/zh_TW/messages.json',
],
}, { # else: branding!="Chrome"
# Must match host/plugin/constants.h
'host_plugin_name': 'Chromoting Host',
'remoting_webapp_locale_files': [
'webapp/_locales/en/messages.json',
],
Expand Down Expand Up @@ -271,19 +262,10 @@
'target_name': 'remoting_host_uninstaller',
'type': 'executable',
'mac_bundle': 1,
'conditions': [
['branding == "Chrome"', {
'variables': {
'bundle_id': 'com.google.chromeremotedesktop.host_uninstaller',
'bundle_name': 'Chrome Remote Desktop Host Uninstaller',
},
}, { # else branding!="Chrome"
'variables': {
'bundle_id': 'org.chromium.remoting.host_uninstaller',
'bundle_name': 'Chromoting Host Uninstaller',
},
}],
],
'variables': {
'bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_UNINSTALLER_BUNDLE_ID@")',
'bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_UNINSTALLER_BUNDLE_NAME@")',
},
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
],
Expand All @@ -298,7 +280,7 @@
'xcode_settings': {
'INFOPLIST_FILE': 'host/installer/mac/uninstaller/remoting_uninstaller-Info.plist',
'INFOPLIST_PREPROCESS': 'YES',
'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bundle_id)" COPYRIGHT_BY="<(copyright_by)"',
'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bundle_id)" COPYRIGHT_INFO="<(copyright_info)"',
},
'mac_bundle_resources': [
'host/installer/mac/uninstaller/remoting_uninstaller.icns',
Expand All @@ -325,23 +307,12 @@
'host/installer/build-installer-archive.py',
'<@(remoting_host_installer_mac_files)',
],
'conditions': [
['branding == "Chrome"', {
'variables': {
'host_name': 'Chrome Remote Desktop Host',
'host_service_name': 'Chrome Remote Desktop Host Service',
'host_uninstaller_name': 'Chrome Remote Desktop Host Uninstaller',
'bundle_prefix': 'com.google.pkg',
},
}, { # else branding!="Chrome"
'variables': {
'host_name': 'Chromoting Host',
'host_service_name': 'Chromoting Host Service',
'host_uninstaller_name': 'Chromoting Host Uninstaller',
'bundle_prefix': 'org.chromium.pkg',
},
}],
], # conditions
'variables': {
'host_name': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_FILE_NAME@")',
'host_service_name': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_SERVICE_FILE_NAME@")',
'host_uninstaller_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_UNINSTALLER_NAME@")',
'bundle_prefix': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_UNINSTALLER_BUNDLE_PREFIX@")',
},
'actions': [
{
'action_name': 'Zip installer files for signing',
Expand Down Expand Up @@ -370,7 +341,7 @@
'VERSION_SHORT=<(version_short)',
'VERSION_MAJOR=<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@")',
'VERSION_MINOR=<!(python <(version_py_path) -f <(version_path) -t "@MINOR@")',
'COPYRIGHT_BY=<(copyright_by)',
'COPYRIGHT_INFO=<(copyright_info)',
'HOST_NAME=<(host_name)',
'HOST_SERVICE_NAME=<(host_service_name)',
'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)',
Expand Down Expand Up @@ -422,22 +393,22 @@
'../third_party/jsoncpp/overrides/include/',
'../third_party/jsoncpp/source/include/',
'../third_party/jsoncpp/source/src/lib_json/',
],
],

# These source files are included directly, instead of adding target
# dependencies, because the targets are not yet built for 64-bit on
# Mac OS X - http://crbug.com/125116.
#
# TODO(lambroslambrou): Fix this when Chrome supports building for
# Mac OS X 64-bit - http://crbug.com/128122.
# dependencies, because the targets are not yet built for 64-bit on
# Mac OS X - http://crbug.com/125116.
#
# TODO(lambroslambrou): Fix this when Chrome supports building for
# Mac OS X 64-bit - http://crbug.com/128122.
'sources': [
'../third_party/jsoncpp/source/src/lib_json/json_reader.cpp',
'../third_party/jsoncpp/overrides/src/lib_json/json_value.cpp',
'../third_party/jsoncpp/source/src/lib_json/json_writer.cpp',
'../third_party/modp_b64/modp_b64.cc',
'../third_party/jsoncpp/source/src/lib_json/json_reader.cpp',
'../third_party/jsoncpp/overrides/src/lib_json/json_value.cpp',
'../third_party/jsoncpp/source/src/lib_json/json_writer.cpp',
'../third_party/modp_b64/modp_b64.cc',
'host/constants_mac.cc',
'host/constants_mac.h',
'host/host_config.cc',
'host/host_config.cc',
'host/me2me_preference_pane.h',
'host/me2me_preference_pane.mm',
'host/me2me_preference_pane_confirm_pin.h',
Expand All @@ -453,12 +424,22 @@
'$(SDKROOT)/System/Library/Frameworks/Security.framework',
],
},
'variables': {
'bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_PREFPANE_BUNDLE_ID@")',
'bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_PREFPANE_BUNDLE_NAME@")',
# The XML new-line entity splits the label into two lines, which
# is the maximum number of lines allowed by the System Preferences
# applet.
# TODO(lambroslambrou): When these strings are localized, use "\n"
# instead of "&#x0a;" for linebreaks.
'pref_pane_icon_label': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_PREFPANE_ICON_LABEL@")',
},
'xcode_settings': {
'ARCHS': ['i386', 'x86_64'],
'GCC_ENABLE_OBJC_GC': 'supported',
'INFOPLIST_FILE': 'host/me2me_preference_pane-Info.plist',
'INFOPLIST_PREPROCESS': 'YES',
'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bundle_id)" COPYRIGHT_BY="<(copyright_by)" PREF_PANE_ICON_LABEL="<(pref_pane_icon_label)"',
'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bundle_id)" COPYRIGHT_INFO="<(copyright_info)" PREF_PANE_ICON_LABEL="<(pref_pane_icon_label)"',
},
'mac_bundle_resources': [
'host/me2me_preference_pane.xib',
Expand All @@ -477,25 +458,6 @@
'mac_real_dsym': 1,
},
}],
['branding == "Chrome"', {
'variables': {
'bundle_id': 'com.google.chromeremotedesktop.preferences',
'bundle_name': 'Chrome Remote Desktop Host Preferences',

# The XML new-line entity splits the label into two lines,
# which is the maximum number of lines allowed by the System
# Preferences applet.
# TODO(lambroslambrou): When these strings are localized, use
# "\n" instead.
'pref_pane_icon_label': 'Chrome Remote&#x0a;Desktop Host',
},
}, { # else branding!="Chrome"
'variables': {
'bundle_id': 'org.chromium.remoting.preferences',
'bundle_name': 'Chromoting Host Preferences',
'pref_pane_icon_label': 'Chromoting&#x0a;Host',
},
}],
], # conditions
}, # end of target 'remoting_host_prefpane'
], # end of 'targets'
Expand Down Expand Up @@ -670,15 +632,14 @@
# - build/util/LASTCHANGE - the last source code revision.
# - chrome/VERSION - the build & patch versions.
# - remoting/VERSION - the major & minor versions.
# - xxx_branding - UI/localizable strings.
# - (branding_path) - UI/localizable strings.
# - xxx.ver - per-binary non-localizable strings such as the binary
# name.
{
'target_name': 'remoting_version_resources',
'type': 'none',
'inputs': [
'chromium_branding',
'google_chrome_branding',
'<(branding_path)',
'version.rc.version',
'<(DEPTH)/build/util/LASTCHANGE',
'<(version_path)',
Expand All @@ -703,17 +664,6 @@
'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
'template_input_path': 'version.rc.version',
},
'conditions': [
['branding == "Chrome"', {
'variables': {
'branding_path': 'google_chrome_branding',
},
}, { # else branding!="Chrome"
'variables': {
'branding_path': 'chromium_branding',
},
}],
],
'inputs': [
'<(template_input_path)',
'<(version_path)',
Expand Down Expand Up @@ -1508,21 +1458,13 @@
}],
['OS=="mac"', {
'mac_bundle': 1,
'conditions': [
['branding == "Chrome"', {
'variables': {
'host_bundle_id': 'com.google.chrome_remote_desktop.remoting_me2me_host',
},
}, { # else branding!="Chrome"
'variables': {
'host_bundle_id': 'org.chromium.chromoting.remoting_me2me_host',
},
}],
],
'variables': {
'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_ID@")',
},
'xcode_settings': {
'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
'INFOPLIST_PREPROCESS': 'YES',
'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)" COPYRIGHT_BY="<(copyright_by)"',
'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)" COPYRIGHT_INFO="<(copyright_info)"',
},
'mac_bundle_resources': [
'host/disconnect_window.xib',
Expand Down
6 changes: 3 additions & 3 deletions remoting/version.rc.version
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
#if (BINARY == BINARY_HOST_PLUGIN)
#define FILE_DESCRIPTION "@HOST_PLUGIN_FILE_DESCRIPTION@"
#elif (BINARY == BINARY_ME2ME_HOST)
#define FILE_DESCRIPTION "@ME2ME_HOST_FILE_DESCRIPTION@"
#define FILE_DESCRIPTION "@HOST_FILE_DESCRIPTION@"
#elif (BINARY == BINARY_SERVICE)
#define FILE_DESCRIPTION "@SERVICE_FILE_DESCRIPTION@"
#define FILE_DESCRIPTION "@HOST_SERVICE_FILE_DESCRIPTION@"
#elif (BINARY == BINARY_SERVICE_CONTROLLER)
#define FILE_DESCRIPTION "@SERVICE_CONTROLLER_FILE_DESCRIPTION@"
#define FILE_DESCRIPTION "@HOST_CONTROLLER_FILE_DESCRIPTION@"
#endif

VS_VERSION_INFO VERSIONINFO
Expand Down

0 comments on commit c57bee0

Please sign in to comment.