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 # Use consistent strings across all platforms. Note that the plugin name | 10 # Use consistent strings across all platforms. Note that the plugin name |
11 # is brand-dependent and is defined further down. | 11 # is brand-dependent and is defined further down. |
12 # Must match host/plugin/constants.h | 12 # Must match host/plugin/constants.h |
13 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', | 13 '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.', | 14 'host_plugin_description': 'Allow another user to access your computer secur
ely over the Internet.', |
15 | 15 |
16 # Borrow the scripts for generating version information for remoting | 16 # Borrow the scripts for generating version information for remoting |
17 # binaries from Chrome. | 17 # binaries from Chrome. |
18 'variables': { | 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 }, | 21 }, |
22 'version_py_path': '<(version_py_path)', | 22 'version_py_path': '<(version_py_path)', |
23 'version_path': '<(version_path)', | 23 'version_path': '<(version_path)', |
24 'version_full': | 24 'version_full': |
25 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@.@BU
ILD@.@PATCH@")', | 25 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@.@BU
ILD@.@PATCH@")', |
26 | 26 |
27 # Windows Installer XML (WiX) path can be set in ~/.gyp/include.gypi to | 27 'platformsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party
/platformsdk_win7)', |
28 # indicate that WiX is available. | 28 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/wix)', |
29 'wix_path%': '', | |
30 | 29 |
31 'conditions': [ | 30 'conditions': [ |
32 ['OS=="mac"', { | 31 ['OS=="mac"', { |
33 'conditions': [ | 32 'conditions': [ |
34 ['branding=="Chrome"', { | 33 ['branding=="Chrome"', { |
35 'mac_bundle_id': 'com.google.Chrome', | 34 'mac_bundle_id': 'com.google.Chrome', |
36 'mac_creator': 'rimZ', | 35 'mac_creator': 'rimZ', |
37 }, { # else: branding!="Chrome" | 36 }, { # else: branding!="Chrome" |
38 'mac_bundle_id': 'org.chromium.Chromium', | 37 'mac_bundle_id': 'org.chromium.Chromium', |
39 'mac_creator': 'Cr24', | 38 'mac_creator': 'Cr24', |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 '<(template_input_path)', | 388 '<(template_input_path)', |
390 '<@(_outputs)', | 389 '<@(_outputs)', |
391 ], | 390 ], |
392 'message': 'Generating version information in <@(_outputs)' | 391 'message': 'Generating version information in <@(_outputs)' |
393 }, | 392 }, |
394 ], | 393 ], |
395 }, # end of target 'remoting_version_resources' | 394 }, # end of target 'remoting_version_resources' |
396 ], # end of 'targets' | 395 ], # end of 'targets' |
397 }], # 'OS=="win"' | 396 }], # 'OS=="win"' |
398 | 397 |
399 # The host installation is generated only if WiX location is known and only | 398 # The host installation is generated only if WiX is available and when |
400 # as part of a non-component build. WiX does not provide a easy way to | 399 # building a non-component build. WiX does not provide a easy way to |
401 # include all DLLs imported by the installed binaries depend on, so | 400 # include all DLLs imported by the installed binaries, so supporting |
402 # supporting the component build becomes a burden. | 401 # the component build becomes a burden. |
403 ['"<(wix_path)" != "" and component != "shared_library"', { | 402 ['OS == "win" and component != "shared_library" and wix_exists == "True" and
platformsdk_exists == "True"', { |
404 'targets': [ | 403 'targets': [ |
405 { | 404 { |
406 'target_name': 'remoting_host_installation', | 405 'target_name': 'remoting_host_installation', |
407 'type': 'none', | 406 'type': 'none', |
408 'dependencies': [ | 407 'dependencies': [ |
409 'remoting_host_controller', | 408 'remoting_host_controller', |
410 'remoting_service', | 409 'remoting_service', |
411 'remoting_me2me_host', | 410 'remoting_me2me_host', |
412 ], | 411 ], |
413 'sources': [ | 412 'sources': [ |
414 'host/installer/chromoting.wxs', | 413 'host/installer/chromoting.wxs', |
415 ], | 414 ], |
416 'outputs': [ | 415 'outputs': [ |
417 '<(PRODUCT_DIR)/chromoting.msi', | 416 '<(PRODUCT_DIR)/chromoting.msi', |
418 ], | 417 ], |
419 'variables': { | 418 'variables': { |
420 'sas_dll_path': '<(DEPTH)/third_party/platformsdk_win7/files/redist/
x86/sas.dll' | 419 'sas_dll_path': '<(DEPTH)/third_party/platformsdk_win7/files/redist/
x86/sas.dll', |
| 420 'wix_path': '<(DEPTH)\\third_party\\wix', |
421 }, | 421 }, |
422 'conditions': [ | 422 'conditions': [ |
423 ['branding == "Chrome"', { | 423 ['branding == "Chrome"', { |
424 'variables': { | 424 'variables': { |
425 'branding': '-dOfficialBuild=1', | 425 'branding': '-dOfficialBuild=1', |
426 }, | 426 }, |
427 }, { # else branding!="Chrome" | 427 }, { # else branding!="Chrome" |
428 'variables': { | 428 'variables': { |
429 'branding': '', | 429 'branding': '', |
430 }, | 430 }, |
431 }], | 431 }], |
432 ], | 432 ], |
433 'rules': [ | 433 'rules': [ |
434 { | 434 { |
435 'rule_name': 'candle', | 435 'rule_name': 'candle', |
436 'extension': 'wxs', | 436 'extension': 'wxs', |
437 'inputs': [ | 437 'inputs': [ |
438 '<(PRODUCT_DIR)/remoting_host_controller.exe', | 438 '<(PRODUCT_DIR)/remoting_host_controller.exe', |
439 '<(PRODUCT_DIR)/remoting_me2me_host.exe', | 439 '<(PRODUCT_DIR)/remoting_me2me_host.exe', |
440 '<(PRODUCT_DIR)/remoting_service.exe', | 440 '<(PRODUCT_DIR)/remoting_service.exe', |
441 '<(sas_dll_path)' | 441 '<(sas_dll_path)' |
442 ], | 442 ], |
443 'outputs': [ | 443 'outputs': [ |
444 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wixobj', | 444 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wixobj', |
445 ], | 445 ], |
446 'process_outputs_as_sources': 1, | 446 'process_outputs_as_sources': 1, |
447 'msvs_cygwin_shell': 0, | 447 'msvs_cygwin_shell': 0, |
448 'msvs_quote_cmd': 0, | 448 'msvs_quote_cmd': 0, |
449 'action': [ | 449 'action': [ |
450 '"<(wix_path)\\bin\\candle"', | 450 '"<(wix_path)\\candle"', |
451 '-ext "<(wix_path)\\bin\\WixFirewallExtension.dll"', | 451 '-ext "<(wix_path)\\WixFirewallExtension.dll"', |
452 '-ext "<(wix_path)\\bin\\WixUIExtension.dll"', | 452 '-ext "<(wix_path)\\WixUIExtension.dll"', |
453 '-ext "<(wix_path)\\bin\\WixUtilExtension.dll"', | 453 '-ext "<(wix_path)\\WixUtilExtension.dll"', |
454 '-dVersion=<(version_full) ' | 454 '-dVersion=<(version_full) ' |
455 '"-dFileSource=<(PRODUCT_DIR)." ' | 455 '"-dFileSource=<(PRODUCT_DIR)." ' |
456 '"-dSasDllPath=<(sas_dll_path)" ' | 456 '"-dSasDllPath=<(sas_dll_path)" ' |
457 '<(branding) ' | 457 '<(branding) ' |
458 '-out <@(_outputs)', | 458 '-out <@(_outputs)', |
459 '"<(RULE_INPUT_PATH)"', | 459 '"<(RULE_INPUT_PATH)"', |
460 ], | 460 ], |
461 'message': 'Generating <@(_outputs)', | 461 'message': 'Generating <@(_outputs)', |
462 }, | 462 }, |
463 { | 463 { |
464 'rule_name': 'light', | 464 'rule_name': 'light', |
465 'extension': 'wixobj', | 465 'extension': 'wixobj', |
466 'inputs': [ | 466 'inputs': [ |
467 '<(PRODUCT_DIR)/remoting_host_controller.exe', | 467 '<(PRODUCT_DIR)/remoting_host_controller.exe', |
468 '<(PRODUCT_DIR)/remoting_me2me_host.exe', | 468 '<(PRODUCT_DIR)/remoting_me2me_host.exe', |
469 '<(PRODUCT_DIR)/remoting_service.exe', | 469 '<(PRODUCT_DIR)/remoting_service.exe', |
470 '<(sas_dll_path)' | 470 '<(sas_dll_path)' |
471 ], | 471 ], |
472 'outputs': [ | 472 'outputs': [ |
473 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', | 473 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
474 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).wixpdb', | 474 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).wixpdb', |
475 ], | 475 ], |
476 'msvs_cygwin_shell': 0, | 476 'msvs_cygwin_shell': 0, |
477 'msvs_quote_cmd': 0, | 477 'msvs_quote_cmd': 0, |
478 'action': [ | 478 'action': [ |
479 '"<(wix_path)\\bin\\light"', | 479 '"<(wix_path)\\light"', |
480 '-ext "<(wix_path)\\bin\\WixFirewallExtension.dll"', | 480 '-ext "<(wix_path)\\WixFirewallExtension.dll"', |
481 '-ext "<(wix_path)\\bin\\WixUIExtension.dll"', | 481 '-ext "<(wix_path)\\WixUIExtension.dll"', |
482 '-ext "<(wix_path)\\bin\\WixUtilExtension.dll"', | 482 '-ext "<(wix_path)\\WixUtilExtension.dll"', |
483 '-cultures:en-us', | 483 '-cultures:en-us', |
484 '-dVersion=<(version_full) ' | 484 '-dVersion=<(version_full) ' |
485 '"-dFileSource=<(PRODUCT_DIR)." ' | 485 '"-dFileSource=<(PRODUCT_DIR)." ' |
486 '"-dSasDllPath=<(sas_dll_path)" ' | 486 '"-dSasDllPath=<(sas_dll_path)" ' |
487 '<(branding) ' | 487 '<(branding) ' |
488 '-out "<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi"', | 488 '-out "<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi"', |
489 '"<(RULE_INPUT_PATH)"', | 489 '"<(RULE_INPUT_PATH)"', |
490 ], | 490 ], |
491 'message': 'Generating <(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', | 491 'message': 'Generating <(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
492 }, | 492 }, |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 '../base/allocator/allocator.gyp:allocator', | 1379 '../base/allocator/allocator.gyp:allocator', |
1380 ], | 1380 ], |
1381 }, | 1381 }, |
1382 ], | 1382 ], |
1383 ], | 1383 ], |
1384 }], | 1384 }], |
1385 ], # end of 'conditions' | 1385 ], # end of 'conditions' |
1386 }, # end of target 'remoting_unittests' | 1386 }, # end of target 'remoting_unittests' |
1387 ], # end of targets | 1387 ], # end of targets |
1388 } | 1388 } |
OLD | NEW |