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

Side by Side Diff: remoting/remoting.gyp

Issue 10829327: [Chromoting] Cleanup branding variables in Chromoting gyp file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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_audio': 0, 11 'remoting_audio': 0,
12 'remoting_multi_process%': 0, 12 'remoting_multi_process%': 0,
13 13
14 # Use consistent strings across all platforms. Note that the plugin name
15 # is brand-dependent and is defined further down.
16 # Must match host/plugin/constants.h
17 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host',
18 'host_plugin_description': 'Allow another user to access your computer secur ely over the Internet.',
19
20 # The version is composed from major & minor versions specific to remoting 14 # The version is composed from major & minor versions specific to remoting
21 # and build & patch versions inherited from Chrome. 15 # and build & patch versions inherited from Chrome.
22 'version_py_path': '../chrome/tools/build/version.py', 16 'version_py_path': '../chrome/tools/build/version.py',
23 'version_path': '../remoting/VERSION', 17 'version_path': '../remoting/VERSION',
24 'chrome_version_path': '../chrome/VERSION', 18 'chrome_version_path': '../chrome/VERSION',
25 'version_full': 19 'version_full':
26 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").' 20 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").'
27 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@.@PATCH @")', 21 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@.@PATCH @")',
28 'version_short': 22 'version_short':
29 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").' 23 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").'
30 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@")', 24 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@")',
31 25
26 'branding_path': '../remoting/branding_<(branding)',
27 'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COP YRIGHT@")',
28
29 # Use consistent strings across all platforms.
30 # These values must match host/plugin/constants.h
31 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host',
32 'host_plugin_description': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_FILE_DESCRIPTION@")',
33 'host_plugin_name': '<!(python <(version_py_path) -f <(branding_path) -t "@H OST_PLUGIN_FILE_NAME@")',
34
32 'conditions': [ 35 'conditions': [
33 ['OS=="mac"', { 36 ['OS=="mac"', {
34 'conditions': [ 37 'mac_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@ MAC_BUNDLE_ID@")',
35 ['branding=="Chrome"', { 38 'mac_creator': '<!(python <(version_py_path) -f <(branding_path) -t "@MA C_CREATOR@")',
36 'mac_bundle_id': 'com.google.Chrome',
37 'mac_creator': 'rimZ',
38 'copyright_by': 'Google Inc.',
39 }, { # else: branding!="Chrome"
40 'mac_bundle_id': 'org.chromium.Chromium',
41 'mac_creator': 'Cr24',
42 'copyright_by': 'The Chromium Authors.',
43 }], # branding
44 ], # conditions
45 'host_plugin_extension': 'plugin', 39 'host_plugin_extension': 'plugin',
46 'host_plugin_prefix': '', 40 'host_plugin_prefix': '',
47 }], 41 }],
48 ['os_posix == 1 and OS != "mac" and target_arch == "ia32"', { 42 ['os_posix == 1 and OS != "mac" and target_arch == "ia32"', {
49 # linux 32 bit 43 # linux 32 bit
50 'host_plugin_extension': 'ia32.so', 44 'host_plugin_extension': 'ia32.so',
51 'host_plugin_prefix': 'lib', 45 'host_plugin_prefix': 'lib',
52 }], 46 }],
53 ['os_posix == 1 and OS != "mac" and target_arch == "x64"', { 47 ['os_posix == 1 and OS != "mac" and target_arch == "x64"', {
54 # linux 64 bit 48 # linux 64 bit
55 'host_plugin_extension': 'x64.so', 49 'host_plugin_extension': 'x64.so',
56 'host_plugin_prefix': 'lib', 50 'host_plugin_prefix': 'lib',
57 }], 51 }],
58 ['os_posix == 1 and OS != "mac" and target_arch == "arm"', { 52 ['os_posix == 1 and OS != "mac" and target_arch == "arm"', {
59 # linux 64 bit 53 # linux 64 bit
60 'host_plugin_extension': 'arm.so', 54 'host_plugin_extension': 'arm.so',
61 'host_plugin_prefix': 'lib', 55 'host_plugin_prefix': 'lib',
62 }], 56 }],
63 ['OS=="win"', { 57 ['OS=="win"', {
64 'host_plugin_extension': 'dll', 58 'host_plugin_extension': 'dll',
65 'host_plugin_prefix': '', 59 'host_plugin_prefix': '',
66 }], 60 }],
61
67 ['branding=="Chrome"', { 62 ['branding=="Chrome"', {
68 # Must match host/plugin/constants.h
69 'host_plugin_name': 'Chrome Remote Desktop Host',
70 'remoting_webapp_locale_files': [ 63 'remoting_webapp_locale_files': [
71 'webapp/_locales.official/ar/messages.json', 64 'webapp/_locales.official/ar/messages.json',
72 'webapp/_locales.official/bg/messages.json', 65 'webapp/_locales.official/bg/messages.json',
73 'webapp/_locales.official/ca/messages.json', 66 'webapp/_locales.official/ca/messages.json',
74 'webapp/_locales.official/cs/messages.json', 67 'webapp/_locales.official/cs/messages.json',
75 'webapp/_locales.official/da/messages.json', 68 'webapp/_locales.official/da/messages.json',
76 'webapp/_locales.official/de/messages.json', 69 'webapp/_locales.official/de/messages.json',
77 'webapp/_locales.official/el/messages.json', 70 'webapp/_locales.official/el/messages.json',
78 'webapp/_locales.official/en/messages.json', 71 'webapp/_locales.official/en/messages.json',
79 'webapp/_locales.official/en_GB/messages.json', 72 'webapp/_locales.official/en_GB/messages.json',
(...skipping 25 matching lines...) Expand all
105 'webapp/_locales.official/sr/messages.json', 98 'webapp/_locales.official/sr/messages.json',
106 'webapp/_locales.official/sv/messages.json', 99 'webapp/_locales.official/sv/messages.json',
107 'webapp/_locales.official/th/messages.json', 100 'webapp/_locales.official/th/messages.json',
108 'webapp/_locales.official/tr/messages.json', 101 'webapp/_locales.official/tr/messages.json',
109 'webapp/_locales.official/uk/messages.json', 102 'webapp/_locales.official/uk/messages.json',
110 'webapp/_locales.official/vi/messages.json', 103 'webapp/_locales.official/vi/messages.json',
111 'webapp/_locales.official/zh_CN/messages.json', 104 'webapp/_locales.official/zh_CN/messages.json',
112 'webapp/_locales.official/zh_TW/messages.json', 105 'webapp/_locales.official/zh_TW/messages.json',
113 ], 106 ],
114 }, { # else: branding!="Chrome" 107 }, { # else: branding!="Chrome"
115 # Must match host/plugin/constants.h
116 'host_plugin_name': 'Chromoting Host',
117 'remoting_webapp_locale_files': [ 108 'remoting_webapp_locale_files': [
118 'webapp/_locales/en/messages.json', 109 'webapp/_locales/en/messages.json',
119 ], 110 ],
120 }], 111 }],
121 ], 112 ],
122 'remoting_webapp_files': [ 113 'remoting_webapp_files': [
123 'resources/chromoting16.png', 114 'resources/chromoting16.png',
124 'resources/chromoting48.png', 115 'resources/chromoting48.png',
125 'resources/chromoting128.png', 116 'resources/chromoting128.png',
126 'resources/disclosure_arrow_down.png', 117 'resources/disclosure_arrow_down.png',
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 }, # end of target 'linux_symbols' 249 }, # end of target 'linux_symbols'
259 ], # end of 'targets' 250 ], # end of 'targets'
260 }], # 'OS=="linux"' 251 }], # 'OS=="linux"'
261 252
262 ['OS=="mac"', { 253 ['OS=="mac"', {
263 'targets': [ 254 'targets': [
264 { 255 {
265 'target_name': 'remoting_host_uninstaller', 256 'target_name': 'remoting_host_uninstaller',
266 'type': 'executable', 257 'type': 'executable',
267 'mac_bundle': 1, 258 'mac_bundle': 1,
268 'conditions': [ 259 'variables': {
269 ['branding == "Chrome"', { 260 'bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@ MAC_UNINSTALLER_BUNDLE_ID@")',
270 'variables': { 261 'bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_UNINSTALLER_BUNDLE_NAME@")',
271 'bundle_id': 'com.google.chromeremotedesktop.host_uninstaller', 262 },
272 'bundle_name': 'Chrome Remote Desktop Host Uninstaller',
273 },
274 }, { # else branding!="Chrome"
275 'variables': {
276 'bundle_id': 'org.chromium.remoting.host_uninstaller',
277 'bundle_name': 'Chromoting Host Uninstaller',
278 },
279 }],
280 ],
281 'dependencies': [ 263 'dependencies': [
282 '<(DEPTH)/base/base.gyp:base', 264 '<(DEPTH)/base/base.gyp:base',
283 ], 265 ],
284 'sources': [ 266 'sources': [
285 'host/constants_mac.cc', 267 'host/constants_mac.cc',
286 'host/constants_mac.h', 268 'host/constants_mac.h',
287 'host/installer/mac/uninstaller/remoting_uninstaller.h', 269 'host/installer/mac/uninstaller/remoting_uninstaller.h',
288 'host/installer/mac/uninstaller/remoting_uninstaller.mm', 270 'host/installer/mac/uninstaller/remoting_uninstaller.mm',
289 'host/installer/mac/uninstaller/remoting_uninstaller_app.h', 271 'host/installer/mac/uninstaller/remoting_uninstaller_app.h',
290 'host/installer/mac/uninstaller/remoting_uninstaller_app.mm', 272 'host/installer/mac/uninstaller/remoting_uninstaller_app.mm',
291 ], 273 ],
292 'xcode_settings': { 274 'xcode_settings': {
293 'INFOPLIST_FILE': 'host/installer/mac/uninstaller/remoting_uninstall er-Info.plist', 275 'INFOPLIST_FILE': 'host/installer/mac/uninstaller/remoting_uninstall er-Info.plist',
294 'INFOPLIST_PREPROCESS': 'YES', 276 'INFOPLIST_PREPROCESS': 'YES',
295 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full) " VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bun dle_id)" COPYRIGHT_BY="<(copyright_by)"', 277 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full) " VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bun dle_id)" COPYRIGHT_INFO="<(copyright_info)"',
296 }, 278 },
297 'mac_bundle_resources': [ 279 'mac_bundle_resources': [
298 'host/installer/mac/uninstaller/remoting_uninstaller.icns', 280 'host/installer/mac/uninstaller/remoting_uninstaller.icns',
299 'host/installer/mac/uninstaller/remoting_uninstaller.xib', 281 'host/installer/mac/uninstaller/remoting_uninstaller.xib',
300 'host/installer/mac/uninstaller/remoting_uninstaller-Info.plist', 282 'host/installer/mac/uninstaller/remoting_uninstaller-Info.plist',
301 ], 283 ],
302 'mac_bundle_resources!': [ 284 'mac_bundle_resources!': [
303 'host/installer/mac/uninstaller/remoting_uninstaller-Info.plist', 285 'host/installer/mac/uninstaller/remoting_uninstaller-Info.plist',
304 ], 286 ],
305 }, # end of target 'remoting_host_uninstaller' 287 }, # end of target 'remoting_host_uninstaller'
306 288
307 # This packages up the files needed for the remoting host installer so 289 # This packages up the files needed for the remoting host installer so
308 # they can be sent off to be signed. 290 # they can be sent off to be signed.
309 # We don't build an installer here because we don't have signed binaries . 291 # We don't build an installer here because we don't have signed binaries .
310 { 292 {
311 'target_name': 'remoting_me2me_host_archive', 293 'target_name': 'remoting_me2me_host_archive',
312 'type': 'none', 294 'type': 'none',
313 'dependencies': [ 295 'dependencies': [
314 'remoting_host_prefpane', 296 'remoting_host_prefpane',
315 'remoting_host_uninstaller', 297 'remoting_host_uninstaller',
316 'remoting_me2me_host', 298 'remoting_me2me_host',
317 ], 299 ],
318 'sources': [ 300 'sources': [
319 'host/installer/build-installer-archive.py', 301 'host/installer/build-installer-archive.py',
320 '<@(remoting_host_installer_mac_files)', 302 '<@(remoting_host_installer_mac_files)',
321 ], 303 ],
322 'conditions': [ 304 'variables': {
323 ['branding == "Chrome"', { 305 'host_name': '<!(python <(version_py_path) -f <(branding_path) -t "@ HOST_PLUGIN_FILE_NAME@")',
324 'variables': { 306 'host_service_name': '<!(python <(version_py_path) -f <(branding_pat h) -t "@HOST_SERVICE_FILE_NAME@")',
325 'host_name': 'Chrome Remote Desktop Host', 307 'host_uninstaller_name': '<!(python <(version_py_path) -f <(branding _path) -t "@MAC_UNINSTALLER_NAME@")',
326 'host_service_name': 'Chrome Remote Desktop Host Service', 308 'bundle_prefix': '<!(python <(version_py_path) -f <(branding_path) - t "@MAC_UNINSTALLER_BUNDLE_PREFIX@")',
327 'host_uninstaller_name': 'Chrome Remote Desktop Host Uninstaller ', 309 },
328 'bundle_prefix': 'com.google.pkg',
329 },
330 }, { # else branding!="Chrome"
331 'variables': {
332 'host_name': 'Chromoting Host',
333 'host_service_name': 'Chromoting Host Service',
334 'host_uninstaller_name': 'Chromoting Host Uninstaller',
335 'bundle_prefix': 'org.chromium.pkg',
336 },
337 }],
338 ], # conditions
339 'actions': [ 310 'actions': [
340 { 311 {
341 'action_name': 'Zip installer files for signing', 312 'action_name': 'Zip installer files for signing',
342 'temp_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting-me2me-ho st', 313 'temp_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting-me2me-ho st',
343 'zip_path': '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', 314 'zip_path': '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip',
344 'variables': { 315 'variables': {
345 'host_name_nospace': '<!(echo <(host_name) | sed "s/ //g")', 316 'host_name_nospace': '<!(echo <(host_name) | sed "s/ //g")',
346 'host_service_name_nospace': '<!(echo <(host_service_name) | sed "s/ //g")', 317 'host_service_name_nospace': '<!(echo <(host_service_name) | sed "s/ //g")',
347 'host_uninstaller_name_nospace': '<!(echo <(host_uninstaller_nam e) | sed "s/ //g")', 318 'host_uninstaller_name_nospace': '<!(echo <(host_uninstaller_nam e) | sed "s/ //g")',
348 }, 319 },
349 'generated_files': [ 320 'generated_files': [
350 '<(PRODUCT_DIR)/remoting_host_prefpane.prefPane', 321 '<(PRODUCT_DIR)/remoting_host_prefpane.prefPane',
351 '<(PRODUCT_DIR)/remoting_me2me_host.app', 322 '<(PRODUCT_DIR)/remoting_me2me_host.app',
352 '<(PRODUCT_DIR)/remoting_host_uninstaller.app', 323 '<(PRODUCT_DIR)/remoting_host_uninstaller.app',
353 ], 324 ],
354 'generated_files_dst': [ 325 'generated_files_dst': [
355 'PreferencePanes/org.chromium.chromoting.prefPane', 326 'PreferencePanes/org.chromium.chromoting.prefPane',
356 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app', 327 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app',
357 'Applications/<(host_uninstaller_name).app', 328 'Applications/<(host_uninstaller_name).app',
358 ], 329 ],
359 'source_files': [ 330 'source_files': [
360 '<@(remoting_host_installer_mac_files)', 331 '<@(remoting_host_installer_mac_files)',
361 ], 332 ],
362 'defs': [ 333 'defs': [
363 'VERSION=<(version_full)', 334 'VERSION=<(version_full)',
364 'VERSION_SHORT=<(version_short)', 335 'VERSION_SHORT=<(version_short)',
365 'VERSION_MAJOR=<!(python <(version_py_path) -f <(version_path) - t "@MAJOR@")', 336 'VERSION_MAJOR=<!(python <(version_py_path) -f <(version_path) - t "@MAJOR@")',
366 'VERSION_MINOR=<!(python <(version_py_path) -f <(version_path) - t "@MINOR@")', 337 'VERSION_MINOR=<!(python <(version_py_path) -f <(version_path) - t "@MINOR@")',
367 'COPYRIGHT_BY=<(copyright_by)', 338 'COPYRIGHT_INFO=<(copyright_info)',
368 'HOST_NAME=<(host_name)', 339 'HOST_NAME=<(host_name)',
369 'HOST_SERVICE_NAME=<(host_service_name)', 340 'HOST_SERVICE_NAME=<(host_service_name)',
370 'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)', 341 'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)',
371 'HOST_PKG=<(host_name)', 342 'HOST_PKG=<(host_name)',
372 'HOST_SERVICE_PKG=<(host_service_name_nospace)', 343 'HOST_SERVICE_PKG=<(host_service_name_nospace)',
373 'HOST_UNINSTALLER_PKG=<(host_uninstaller_name_nospace)', 344 'HOST_UNINSTALLER_PKG=<(host_uninstaller_name_nospace)',
374 'BUNDLE_ID_HOST=<(bundle_prefix).<(host_name_nospace)', 345 'BUNDLE_ID_HOST=<(bundle_prefix).<(host_name_nospace)',
375 'BUNDLE_ID_HOST_SERVICE=<(bundle_prefix).<(host_service_name_nos pace)', 346 'BUNDLE_ID_HOST_SERVICE=<(bundle_prefix).<(host_service_name_nos pace)',
376 'BUNDLE_ID_HOST_UNINSTALLER=<(bundle_prefix).<(host_uninstaller_ name_nospace)', 347 'BUNDLE_ID_HOST_UNINSTALLER=<(bundle_prefix).<(host_uninstaller_ name_nospace)',
377 'DMG_VOLUME_NAME=<(host_name) <(version_full)', 348 'DMG_VOLUME_NAME=<(host_name) <(version_full)',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 'type': 'loadable_module', 380 'type': 'loadable_module',
410 'mac_bundle': 1, 381 'mac_bundle': 1,
411 'product_extension': 'prefPane', 382 'product_extension': 'prefPane',
412 'defines': [ 383 'defines': [
413 'JSON_USE_EXCEPTION=0', 384 'JSON_USE_EXCEPTION=0',
414 ], 385 ],
415 'include_dirs': [ 386 'include_dirs': [
416 '../third_party/jsoncpp/overrides/include/', 387 '../third_party/jsoncpp/overrides/include/',
417 '../third_party/jsoncpp/source/include/', 388 '../third_party/jsoncpp/source/include/',
418 '../third_party/jsoncpp/source/src/lib_json/', 389 '../third_party/jsoncpp/source/src/lib_json/',
419 » ], 390 ],
420 391
421 # These source files are included directly, instead of adding target 392 # These source files are included directly, instead of adding target
422 » # dependencies, because the targets are not yet built for 64-bit on 393 # dependencies, because the targets are not yet built for 64-bit on
423 » # Mac OS X - http://crbug.com/125116. 394 # Mac OS X - http://crbug.com/125116.
424 » # 395 #
425 » # TODO(lambroslambrou): Fix this when Chrome supports building for 396 # TODO(lambroslambrou): Fix this when Chrome supports building for
426 » # Mac OS X 64-bit - http://crbug.com/128122. 397 # Mac OS X 64-bit - http://crbug.com/128122.
427 'sources': [ 398 'sources': [
428 » '../third_party/jsoncpp/source/src/lib_json/json_reader.cpp', 399 '../third_party/jsoncpp/source/src/lib_json/json_reader.cpp',
429 » '../third_party/jsoncpp/overrides/src/lib_json/json_value.cpp', 400 '../third_party/jsoncpp/overrides/src/lib_json/json_value.cpp',
430 » '../third_party/jsoncpp/source/src/lib_json/json_writer.cpp', 401 '../third_party/jsoncpp/source/src/lib_json/json_writer.cpp',
431 » '../third_party/modp_b64/modp_b64.cc', 402 '../third_party/modp_b64/modp_b64.cc',
432 'host/constants_mac.cc', 403 'host/constants_mac.cc',
433 'host/constants_mac.h', 404 'host/constants_mac.h',
434 » 'host/host_config.cc', 405 'host/host_config.cc',
435 'host/me2me_preference_pane.h', 406 'host/me2me_preference_pane.h',
436 'host/me2me_preference_pane.mm', 407 'host/me2me_preference_pane.mm',
437 'host/me2me_preference_pane_confirm_pin.h', 408 'host/me2me_preference_pane_confirm_pin.h',
438 'host/me2me_preference_pane_confirm_pin.mm', 409 'host/me2me_preference_pane_confirm_pin.mm',
439 'host/me2me_preference_pane_disable.h', 410 'host/me2me_preference_pane_disable.h',
440 'host/me2me_preference_pane_disable.mm', 411 'host/me2me_preference_pane_disable.mm',
441 ], 412 ],
442 'link_settings': { 413 'link_settings': {
443 'libraries': [ 414 'libraries': [
444 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', 415 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
445 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 416 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
446 '$(SDKROOT)/System/Library/Frameworks/PreferencePanes.framework', 417 '$(SDKROOT)/System/Library/Frameworks/PreferencePanes.framework',
447 '$(SDKROOT)/System/Library/Frameworks/Security.framework', 418 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
448 ], 419 ],
449 }, 420 },
421 'variables': {
422 'bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@ MAC_PREFPANE_BUNDLE_ID@")',
423 'bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_PREFPANE_BUNDLE_NAME@")',
424 # The XML new-line entity splits the label into two lines, which
425 # is the maximum number of lines allowed by the System Preferences
426 # applet.
427 # TODO(lambroslambrou): When these strings are localized, use "\n"
alexeypa (please no reviews) 2012/08/14 23:50:51 nit: Is the comment about '&#x0a' still relevant?
garykac 2012/08/17 18:47:26 Yes, and we sadly cannot include comments in the b
428 # instead of "&#x0a;" for linebreaks.
429 'pref_pane_icon_label': '<!(python <(version_py_path) -f <(branding_ path) -t "@MAC_PREFPANE_ICON_LABEL@")',
430 },
450 'xcode_settings': { 431 'xcode_settings': {
451 'ARCHS': ['i386', 'x86_64'], 432 'ARCHS': ['i386', 'x86_64'],
452 'GCC_ENABLE_OBJC_GC': 'supported', 433 'GCC_ENABLE_OBJC_GC': 'supported',
453 'INFOPLIST_FILE': 'host/me2me_preference_pane-Info.plist', 434 'INFOPLIST_FILE': 'host/me2me_preference_pane-Info.plist',
454 'INFOPLIST_PREPROCESS': 'YES', 435 'INFOPLIST_PREPROCESS': 'YES',
455 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full) " VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bun dle_id)" COPYRIGHT_BY="<(copyright_by)" PREF_PANE_ICON_LABEL="<(pref_pane_icon_l abel)"', 436 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full) " VERSION_SHORT="<(version_short)" BUNDLE_NAME="<(bundle_name)" BUNDLE_ID="<(bun dle_id)" COPYRIGHT_INFO="<(copyright_info)" PREF_PANE_ICON_LABEL="<(pref_pane_ic on_label)"',
456 }, 437 },
457 'mac_bundle_resources': [ 438 'mac_bundle_resources': [
458 'host/me2me_preference_pane.xib', 439 'host/me2me_preference_pane.xib',
459 'host/me2me_preference_pane_confirm_pin.xib', 440 'host/me2me_preference_pane_confirm_pin.xib',
460 'host/me2me_preference_pane_disable.xib', 441 'host/me2me_preference_pane_disable.xib',
461 'host/me2me_preference_pane-Info.plist', 442 'host/me2me_preference_pane-Info.plist',
462 'resources/chromoting128.png', 443 'resources/chromoting128.png',
463 ], 444 ],
464 'mac_bundle_resources!': [ 445 'mac_bundle_resources!': [
465 'host/me2me_preference_pane-Info.plist', 446 'host/me2me_preference_pane-Info.plist',
466 ], 447 ],
467 'conditions': [ 448 'conditions': [
468 ['mac_breakpad==1', { 449 ['mac_breakpad==1', {
469 'variables': { 450 'variables': {
470 # A real .dSYM is needed for dump_syms to operate on. 451 # A real .dSYM is needed for dump_syms to operate on.
471 'mac_real_dsym': 1, 452 'mac_real_dsym': 1,
472 }, 453 },
473 }], 454 }],
474 ['branding == "Chrome"', {
475 'variables': {
476 'bundle_id': 'com.google.chromeremotedesktop.preferences',
477 'bundle_name': 'Chrome Remote Desktop Host Preferences',
478
479 # The XML new-line entity splits the label into two lines,
480 # which is the maximum number of lines allowed by the System
481 # Preferences applet.
482 # TODO(lambroslambrou): When these strings are localized, use
483 # "\n" instead.
484 'pref_pane_icon_label': 'Chrome Remote&#x0a;Desktop Host',
485 },
486 }, { # else branding!="Chrome"
487 'variables': {
488 'bundle_id': 'org.chromium.remoting.preferences',
489 'bundle_name': 'Chromoting Host Preferences',
490 'pref_pane_icon_label': 'Chromoting&#x0a;Host',
491 },
492 }],
493 ], # conditions 455 ], # conditions
494 }, # end of target 'remoting_host_prefpane' 456 }, # end of target 'remoting_host_prefpane'
495 ], # end of 'targets' 457 ], # end of 'targets'
496 }], # 'OS=="mac"' 458 }], # 'OS=="mac"'
497 459
498 ['OS=="win"', { 460 ['OS=="win"', {
499 'targets': [ 461 'targets': [
500 { 462 {
501 'target_name': 'remoting_breakpad_tester', 463 'target_name': 'remoting_breakpad_tester',
502 'type': 'executable', 464 'type': 'executable',
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 }, 598 },
637 }, # end of target 'remoting_service' 599 }, # end of target 'remoting_service'
638 600
639 # Generates the version information resources for the Windows binaries. 601 # Generates the version information resources for the Windows binaries.
640 # The .RC files are generated from the "version.rc.version" template and 602 # The .RC files are generated from the "version.rc.version" template and
641 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. 603 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder.
642 # The substitution strings are taken from: 604 # The substitution strings are taken from:
643 # - build/util/LASTCHANGE - the last source code revision. 605 # - build/util/LASTCHANGE - the last source code revision.
644 # - chrome/VERSION - the build & patch versions. 606 # - chrome/VERSION - the build & patch versions.
645 # - remoting/VERSION - the major & minor versions. 607 # - remoting/VERSION - the major & minor versions.
646 # - xxx_branding - UI/localizable strings. 608 # - (branding_path) - UI/localizable strings.
647 # - xxx.ver - per-binary non-localizable strings such as the binary 609 # - xxx.ver - per-binary non-localizable strings such as the binary
648 # name. 610 # name.
649 { 611 {
650 'target_name': 'remoting_version_resources', 612 'target_name': 'remoting_version_resources',
651 'type': 'none', 613 'type': 'none',
652 'inputs': [ 614 'inputs': [
653 'chromium_branding', 615 '<(branding_path)',
654 'google_chrome_branding',
655 'version.rc.version', 616 'version.rc.version',
656 '<(DEPTH)/build/util/LASTCHANGE', 617 '<(DEPTH)/build/util/LASTCHANGE',
657 '<(version_path)', 618 '<(version_path)',
658 '<(chrome_version_path)', 619 '<(chrome_version_path)',
659 ], 620 ],
660 'direct_dependent_settings': { 621 'direct_dependent_settings': {
661 'include_dirs': [ 622 'include_dirs': [
662 '<(SHARED_INTERMEDIATE_DIR)/remoting', 623 '<(SHARED_INTERMEDIATE_DIR)/remoting',
663 ], 624 ],
664 }, 625 },
665 'sources': [ 626 'sources': [
666 'host/plugin/host_plugin.ver', 627 'host/plugin/host_plugin.ver',
667 'host/remoting_me2me_host.ver', 628 'host/remoting_me2me_host.ver',
668 'host/win/elevated_controller.ver', 629 'host/win/elevated_controller.ver',
669 'host/win/host_service.ver', 630 'host/win/host_service.ver',
670 ], 631 ],
671 'rules': [ 632 'rules': [
672 { 633 {
673 'rule_name': 'version', 634 'rule_name': 'version',
674 'extension': 'ver', 635 'extension': 'ver',
675 'variables': { 636 'variables': {
676 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', 637 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
677 'template_input_path': 'version.rc.version', 638 'template_input_path': 'version.rc.version',
678 }, 639 },
679 'conditions': [
680 ['branding == "Chrome"', {
681 'variables': {
682 'branding_path': 'google_chrome_branding',
683 },
684 }, { # else branding!="Chrome"
685 'variables': {
686 'branding_path': 'chromium_branding',
687 },
688 }],
689 ],
690 'inputs': [ 640 'inputs': [
691 '<(template_input_path)', 641 '<(template_input_path)',
692 '<(version_path)', 642 '<(version_path)',
693 '<(chrome_version_path)', 643 '<(chrome_version_path)',
694 '<(branding_path)', 644 '<(branding_path)',
695 '<(lastchange_path)', 645 '<(lastchange_path)',
696 ], 646 ],
697 'outputs': [ 647 'outputs': [
698 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc', 648 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc',
699 ], 649 ],
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 'host/sighup_listener_mac.h', 1419 'host/sighup_listener_mac.h',
1470 'host/remoting_me2me_host.cc', 1420 'host/remoting_me2me_host.cc',
1471 'host/usage_stats_consent.h', 1421 'host/usage_stats_consent.h',
1472 'host/usage_stats_consent_win.cc', 1422 'host/usage_stats_consent_win.cc',
1473 'host/curtain_mode_mac.h', 1423 'host/curtain_mode_mac.h',
1474 'host/curtain_mode_mac.cc', 1424 'host/curtain_mode_mac.cc',
1475 ], 1425 ],
1476 'conditions': [ 1426 'conditions': [
1477 ['OS=="mac"', { 1427 ['OS=="mac"', {
1478 'mac_bundle': 1, 1428 'mac_bundle': 1,
1479 'conditions': [ 1429 'variables': {
1480 ['branding == "Chrome"', { 1430 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_ID@")',
1481 'variables': { 1431 },
1482 'host_bundle_id': 'com.google.chrome_remote_desktop.remoting_me 2me_host',
1483 },
1484 }, { # else branding!="Chrome"
1485 'variables': {
1486 'host_bundle_id': 'org.chromium.chromoting.remoting_me2me_host',
1487 },
1488 }],
1489 ],
1490 'xcode_settings': { 1432 'xcode_settings': {
1491 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist', 1433 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
1492 'INFOPLIST_PREPROCESS': 'YES', 1434 'INFOPLIST_PREPROCESS': 'YES',
1493 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full) " VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)" COPYRIGHT_BY="< (copyright_by)"', 1435 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full) " VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)" COPYRIGHT_INFO= "<(copyright_info)"',
1494 }, 1436 },
1495 'mac_bundle_resources': [ 1437 'mac_bundle_resources': [
1496 'host/disconnect_window.xib', 1438 'host/disconnect_window.xib',
1497 'host/remoting_me2me_host.icns', 1439 'host/remoting_me2me_host.icns',
1498 'host/remoting_me2me_host-Info.plist', 1440 'host/remoting_me2me_host-Info.plist',
1499 ], 1441 ],
1500 'mac_bundle_resources!': [ 1442 'mac_bundle_resources!': [
1501 'host/remoting_me2me_host-Info.plist', 1443 'host/remoting_me2me_host-Info.plist',
1502 ], 1444 ],
1503 }], 1445 }],
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1857 '../base/allocator/allocator.gyp:allocator', 1799 '../base/allocator/allocator.gyp:allocator',
1858 ], 1800 ],
1859 }, 1801 },
1860 ], 1802 ],
1861 ], 1803 ],
1862 }], 1804 }],
1863 ], # end of 'conditions' 1805 ], # end of 'conditions'
1864 }, # end of target 'remoting_unittests' 1806 }, # end of target 'remoting_unittests'
1865 ], # end of targets 1807 ], # end of targets
1866 } 1808 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698