OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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': { | |
7 'remoting_host_installer_win_roots': [ | |
8 'host/installer/win/', | |
9 ], | |
10 'remoting_host_installer_win_files': [ | |
11 'host/installer/win/chromoting.wxs', | |
12 'host/installer/win/parameters.json', | |
13 ], | |
14 }, | |
15 | |
16 'conditions': [ | 6 'conditions': [ |
17 ['OS=="win"', { | 7 ['OS=="win"', { |
8 | |
9 'variables': { | |
10 'remoting_host_installer_win_roots': [ | |
11 'host/installer/win/', | |
12 ], | |
13 'remoting_host_installer_win_files': [ | |
14 'host/installer/win/chromoting.wxs', | |
15 'host/installer/win/parameters.json', | |
16 ], | |
17 }, # end of 'variables' | |
18 | |
18 'targets': [ | 19 'targets': [ |
19 { | 20 { |
20 'target_name': 'remoting_breakpad_tester', | 21 'target_name': 'remoting_breakpad_tester', |
21 'type': 'executable', | 22 'type': 'executable', |
22 'variables': { 'enable_wexit_time_destructors': 1, }, | 23 'variables': { 'enable_wexit_time_destructors': 1, }, |
23 'dependencies': [ | 24 'dependencies': [ |
24 '../base/base.gyp:base', | 25 '../base/base.gyp:base', |
25 'remoting_host', | 26 'remoting_host', |
26 ], | 27 ], |
27 'sources': [ | 28 'sources': [ |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
471 '--template', '<(RULE_INPUT_PATH)', | 472 '--template', '<(RULE_INPUT_PATH)', |
472 '--output', '<@(_outputs)', | 473 '--output', '<@(_outputs)', |
473 '--encoding', 'utf-16', | 474 '--encoding', 'utf-16', |
474 '<@(remoting_locales)', | 475 '<@(remoting_locales)', |
475 ], | 476 ], |
476 'message': 'Localizing the version information' | 477 'message': 'Localizing the version information' |
477 }, | 478 }, |
478 ], | 479 ], |
479 }, # end of target 'remoting_windows_resources' | 480 }, # end of target 'remoting_windows_resources' |
480 ], # end of 'targets' | 481 ], # end of 'targets' |
481 }], # 'OS=="win"' | |
482 | 482 |
483 # The host installation is generated only if WiX is available. If | 483 'conditions': [ |
484 # component build is used the produced installation will not work due to | 484 # The host installation is generated only if WiX is available. If |
485 # missing DLLs. We build it anyway to make sure the GYP scripts are executed | 485 # component build is used the produced installation will not work due to |
486 # by the bots. | 486 # missing DLLs. We build it anyway to make sure the GYP scripts are |
487 ['OS == "win" and wix_exists == "True" and sas_dll_exists == "True"', { | 487 # executed by the bots. |
488 'targets': [ | 488 ['wix_exists == "True" and sas_dll_exists == "True"', { |
489 { | 489 'targets': [ |
490 'target_name': 'remoting_host_installation', | |
491 'type': 'none', | |
492 'dependencies': [ | |
493 'remoting_me2me_host_archive', | |
494 ], | |
495 'sources': [ | |
496 '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', | |
497 ], | |
498 'outputs': [ | |
499 '<(PRODUCT_DIR)/chromoting.msi', | |
500 ], | |
501 'rules': [ | |
502 { | 490 { |
503 'rule_name': 'zip2msi', | 491 'target_name': 'remoting_host_installation', |
504 'extension': 'zip', | 492 'type': 'none', |
505 'inputs': [ | 493 'dependencies': [ |
506 'tools/zip2msi.py', | 494 'remoting_me2me_host_archive', |
495 ], | |
496 'sources': [ | |
497 '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', | |
507 ], | 498 ], |
508 'outputs': [ | 499 'outputs': [ |
509 '<(PRODUCT_DIR)/chromoting.msi', | 500 '<(PRODUCT_DIR)/chromoting.msi', |
510 ], | 501 ], |
511 'action': [ | 502 'rules': [ |
512 'python', 'tools/zip2msi.py', | 503 { |
513 '--wix_path', '<(wix_path)', | 504 'rule_name': 'zip2msi', |
514 '--intermediate_dir', '<(INTERMEDIATE_DIR)/installation', | 505 'extension': 'zip', |
515 '--target_arch', '<(target_arch)', | 506 'inputs': [ |
516 '<(RULE_INPUT_PATH)', | 507 'tools/zip2msi.py', |
517 '<@(_outputs)', | 508 ], |
509 'outputs': [ | |
510 '<(PRODUCT_DIR)/chromoting.msi', | |
511 ], | |
512 'action': [ | |
513 'python', 'tools/zip2msi.py', | |
514 '--wix_path', '<(wix_path)', | |
515 '--intermediate_dir', '<(INTERMEDIATE_DIR)/installation', | |
516 '--target_arch', '<(target_arch)', | |
517 '<(RULE_INPUT_PATH)', | |
518 '<@(_outputs)', | |
519 ], | |
520 'message': 'Generating <@(_outputs)', | |
521 }, | |
518 ], | 522 ], |
519 'message': 'Generating <@(_outputs)', | 523 }, # end of target 'remoting_host_installation' |
520 }, | |
521 ], | |
522 }, # end of target 'remoting_host_installation' | |
523 | 524 |
524 { | 525 { |
525 'target_name': 'remoting_me2me_host_archive', | 526 'target_name': 'remoting_me2me_host_archive', |
526 'type': 'none', | 527 'type': 'none', |
527 'dependencies': [ | 528 'dependencies': [ |
528 '<(icu_gyp_path):icudata', | 529 '<(icu_gyp_path):icudata', |
529 'remoting_core', | 530 'remoting_core', |
530 'remoting_desktop', | 531 'remoting_desktop', |
531 'remoting_it2me_native_messaging_host', | 532 'remoting_it2me_native_messaging_host', |
532 'remoting_me2me_host', | 533 'remoting_me2me_host', |
533 'remoting_me2me_native_messaging_host', | 534 'remoting_me2me_native_messaging_host', |
534 'remoting_native_messaging_manifests', | 535 'remoting_native_messaging_manifests', |
535 ], | 536 ], |
536 'compiled_inputs': [ | 537 'compiled_inputs': [ |
537 '<(PRODUCT_DIR)/remote_assistance_host.exe', | 538 '<(PRODUCT_DIR)/remote_assistance_host.exe', |
538 '<(PRODUCT_DIR)/remoting_core.dll', | 539 '<(PRODUCT_DIR)/remoting_core.dll', |
539 '<(PRODUCT_DIR)/remoting_desktop.exe', | 540 '<(PRODUCT_DIR)/remoting_desktop.exe', |
540 '<(PRODUCT_DIR)/remoting_host.exe', | 541 '<(PRODUCT_DIR)/remoting_host.exe', |
541 '<(PRODUCT_DIR)/remoting_native_messaging_host.exe', | 542 '<(PRODUCT_DIR)/remoting_native_messaging_host.exe', |
542 ], | 543 ], |
543 'compiled_inputs_dst': [ | 544 'compiled_inputs_dst': [ |
544 'files/remote_assistance_host.exe', | 545 'files/remote_assistance_host.exe', |
545 'files/remoting_core.dll', | 546 'files/remoting_core.dll', |
546 'files/remoting_desktop.exe', | 547 'files/remoting_desktop.exe', |
547 'files/remoting_host.exe', | 548 'files/remoting_host.exe', |
548 'files/remoting_native_messaging_host.exe', | 549 'files/remoting_native_messaging_host.exe', |
549 ], | 550 ], |
550 'conditions': [ | 551 'conditions': [ |
551 ['buildtype == "Official"', { | 552 ['buildtype == "Official"', { |
553 'defs': [ | |
554 'OFFICIAL_BUILD=1', | |
555 ], | |
556 }, { # else buildtype != "Official" | |
557 'defs': [ | |
558 'OFFICIAL_BUILD=0', | |
559 ], | |
560 }], | |
561 ], | |
552 'defs': [ | 562 'defs': [ |
553 'OFFICIAL_BUILD=1', | 563 'BRANDING=<(branding)', |
564 'DAEMON_CONTROLLER_CLSID={<(daemon_controller_clsid)}', | |
565 'RDP_DESKTOP_SESSION_CLSID={<(rdp_desktop_session_clsid)}', | |
566 'VERSION=<(version_full)', | |
554 ], | 567 ], |
555 }, { # else buildtype != "Official" | 568 'generated_files': [ |
556 'defs': [ | |
557 'OFFICIAL_BUILD=0', | |
558 ], | |
559 }], | |
560 ], | |
561 'defs': [ | |
562 'BRANDING=<(branding)', | |
563 'DAEMON_CONTROLLER_CLSID={<(daemon_controller_clsid)}', | |
564 'RDP_DESKTOP_SESSION_CLSID={<(rdp_desktop_session_clsid)}', | |
565 'VERSION=<(version_full)', | |
566 ], | |
567 'generated_files': [ | |
568 '<@(_compiled_inputs)', | |
569 '<(sas_dll_path)/sas.dll', | |
570 '<(PRODUCT_DIR)/remoting/com.google.chrome.remote_assistance.json', | |
571 '<(PRODUCT_DIR)/remoting/com.google.chrome.remote_desktop.json', | |
572 'resources/chromoting.ico', | |
573 '<(PRODUCT_DIR)/icudtl.dat', | |
574 ], | |
575 'generated_files_dst': [ | |
576 '<@(_compiled_inputs_dst)', | |
577 'files/sas.dll', | |
578 'files/com.google.chrome.remote_assistance.json', | |
579 'files/com.google.chrome.remote_desktop.json', | |
580 'files/chromoting.ico', | |
581 'files/icudtl.dat', | |
582 ], | |
583 'zip_path': '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', | |
584 'outputs': [ | |
585 '<(_zip_path)', | |
586 ], | |
587 'actions': [ | |
588 { | |
589 'action_name': 'Zip installer files for signing', | |
590 'temp_dir': '<(INTERMEDIATE_DIR)/installation', | |
591 'source_files': [ | |
592 '<@(remoting_host_installer_win_files)', | |
593 ], | |
594 'inputs': [ | |
595 '<@(_compiled_inputs)', | 569 '<@(_compiled_inputs)', |
596 '<(sas_dll_path)/sas.dll', | 570 '<(sas_dll_path)/sas.dll', |
597 '<@(_source_files)', | 571 '<(PRODUCT_DIR)/remoting/com.google.chrome.remote_assistance.jso n', |
598 'host/installer/build-installer-archive.py', | 572 '<(PRODUCT_DIR)/remoting/com.google.chrome.remote_desktop.json', |
599 'resources/chromoting.ico', | 573 'resources/chromoting.ico', |
574 '<(PRODUCT_DIR)/icudtl.dat', | |
600 ], | 575 ], |
576 'generated_files_dst': [ | |
577 '<@(_compiled_inputs_dst)', | |
578 'files/sas.dll', | |
579 'files/com.google.chrome.remote_assistance.json', | |
580 'files/com.google.chrome.remote_desktop.json', | |
581 'files/chromoting.ico', | |
582 'files/icudtl.dat', | |
583 ], | |
584 'zip_path': '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', | |
601 'outputs': [ | 585 'outputs': [ |
602 '<(_zip_path)', | 586 '<(_zip_path)', |
603 ], | 587 ], |
604 'action': [ | 588 'actions': [ |
605 'python', 'host/installer/build-installer-archive.py', | 589 { |
606 '<(_temp_dir)', | 590 'action_name': 'Zip installer files for signing', |
607 '<(_zip_path)', | 591 'temp_dir': '<(INTERMEDIATE_DIR)/installation', |
608 '--source-file-roots', '<@(remoting_host_installer_win_roots)', | 592 'source_files': [ |
609 '--source-files', '<@(_source_files)', | 593 '<@(remoting_host_installer_win_files)', |
610 '--generated-files', '<@(_generated_files)', | 594 ], |
611 '--generated-files-dst', '<@(_generated_files_dst)', | 595 'inputs': [ |
612 '--defs', '<@(_defs)', | 596 '<@(_compiled_inputs)', |
613 ], | 597 '<(sas_dll_path)/sas.dll', |
598 '<@(_source_files)', | |
599 'host/installer/build-installer-archive.py', | |
600 'resources/chromoting.ico', | |
601 ], | |
602 'outputs': [ | |
603 '<(_zip_path)', | |
604 ], | |
605 'action': [ | |
606 'python', 'host/installer/build-installer-archive.py', | |
607 '<(_temp_dir)', | |
608 '<(_zip_path)', | |
609 '--source-file-roots', '<@(remoting_host_installer_win_roots )', | |
610 '--source-files', '<@(_source_files)', | |
611 '--generated-files', '<@(_generated_files)', | |
612 '--generated-files-dst', '<@(_generated_files_dst)', | |
613 '--defs', '<@(_defs)', | |
614 ], | |
615 }, | |
616 ], # actions | |
617 }, # end of target 'remoting_me2me_host_archive' | |
618 ], # end of 'targets' | |
619 }, { | |
620 # Dummy targets for when Wix is not available. | |
garykac
2015/02/03 23:44:56
New dummy targets.
| |
621 'targets': [ | |
622 { | |
623 'target_name': 'remoting_host_installation', | |
624 'type': 'none', | |
614 }, | 625 }, |
615 ], # actions | 626 |
616 }, # end of target 'remoting_me2me_host_archive' | 627 { |
617 ], # end of 'targets' | 628 'target_name': 'remoting_me2me_host_archive', |
618 }], # '<(wix_path) != ""' | 629 'type': 'none', |
630 }, | |
631 ], # end of 'targets' | |
632 }], # 'wix_exists == "True" and sas_dll_exists == "True"' | |
633 | |
634 ], # end of 'conditions' | |
635 | |
636 }], # 'OS=="win"' | |
619 | 637 |
620 ], # end of 'conditions' | 638 ], # end of 'conditions' |
621 } | 639 } |
OLD | NEW |