| OLD | NEW |
| 1 { | 1 { |
| 2 'variables': { | 2 'variables': { |
| 3 'version_py': '../../chrome/tools/build/version.py', | 3 'version_py': '../../chrome/tools/build/version.py', |
| 4 'version_path': '../../chrome/VERSION', | 4 'version_path': '../../chrome/VERSION', |
| 5 'lastchange_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', | 5 'lastchange_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
| 6 # 'branding_dir' is set in the 'conditions' section at the bottom. | 6 # 'branding_dir' is set in the 'conditions' section at the bottom. |
| 7 }, | 7 }, |
| 8 'conditions': [ | 8 'conditions': [ |
| 9 ['OS=="win"', { | 9 ['OS=="win"', { |
| 10 'targets': [ | 10 'targets': [ |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 'setup/run_all_unittests.cc', | 374 'setup/run_all_unittests.cc', |
| 375 'setup/setup_util.cc', | 375 'setup/setup_util.cc', |
| 376 'setup/setup_util_unittest.cc', | 376 'setup/setup_util_unittest.cc', |
| 377 ], | 377 ], |
| 378 }, | 378 }, |
| 379 ], | 379 ], |
| 380 }], | 380 }], |
| 381 ['OS=="linux" and branding=="Chrome"', { | 381 ['OS=="linux" and branding=="Chrome"', { |
| 382 # Always google_chrome since this only applies to branding==Chrome. | 382 # Always google_chrome since this only applies to branding==Chrome. |
| 383 'variables': { | 383 'variables': { |
| 384 'branding_dir': '../app/theme/google_chrome', | 384 'branding_dir': '../app/theme/google_chrome', |
| 385 'packaging_files_common': [ |
| 386 'linux/internal/common/apt.include', |
| 387 'linux/internal/common/default-app.template', |
| 388 'linux/internal/common/default-app-block.template', |
| 389 'linux/internal/common/desktop.template', |
| 390 'linux/internal/common/google-chrome/google-chrome.info', |
| 391 'linux/internal/common/installer.include', |
| 392 'linux/internal/common/postinst.include', |
| 393 'linux/internal/common/prerm.include', |
| 394 'linux/internal/common/repo.cron', |
| 395 'linux/internal/common/rpm.include', |
| 396 'linux/internal/common/rpmrepo.cron', |
| 397 'linux/internal/common/updater', |
| 398 'linux/internal/common/variables.include', |
| 399 'linux/internal/common/wrapper', |
| 400 ], |
| 401 'packaging_files_deb': [ |
| 402 'linux/internal/debian/build.sh', |
| 403 'linux/internal/debian/changelog.template', |
| 404 'linux/internal/debian/control.template', |
| 405 'linux/internal/debian/postinst', |
| 406 'linux/internal/debian/postrm', |
| 407 'linux/internal/debian/prerm', |
| 408 ], |
| 409 'packaging_files_rpm': [ |
| 410 'linux/internal/rpm/build.sh', |
| 411 'linux/internal/rpm/chrome.spec.template', |
| 412 ], |
| 385 }, | 413 }, |
| 386 'targets': [ | 414 'targets': [ |
| 387 { | 415 { |
| 388 'target_name': 'installer_util', | 416 'target_name': 'installer_util', |
| 389 'type': 'none', | 417 'type': 'none', |
| 390 # Add these files to the build output so the build archives will be | 418 # Add these files to the build output so the build archives will be |
| 391 # "hermetic" for packaging. This is only for branding="Chrome" since | 419 # "hermetic" for packaging. This is only for branding="Chrome" since |
| 392 # we only create packages for official builds. | 420 # we only create packages for official builds. |
| 393 'copies': [ | 421 'copies': [ |
| 394 # Copy tools for generating packages from the build archive. | 422 # Copy tools for generating packages from the build archive. |
| 395 { | 423 { |
| 396 'destination': '<(PRODUCT_DIR)/installer/', | 424 'destination': '<(PRODUCT_DIR)/installer/', |
| 397 'files': [ | 425 'files': [ |
| 398 'linux/internal/build_from_archive.sh', | 426 'linux/internal/build_from_archive.sh', |
| 399 ] | 427 ] |
| 400 }, | 428 }, |
| 401 { | 429 { |
| 402 'destination': '<(PRODUCT_DIR)/installer/debian/', | 430 'destination': '<(PRODUCT_DIR)/installer/debian/', |
| 403 'files': [ | 431 'files': [ |
| 404 'linux/internal/debian/build.sh', | 432 '<@(packaging_files_deb)', |
| 405 'linux/internal/debian/changelog.template', | |
| 406 'linux/internal/debian/control.template', | |
| 407 'linux/internal/debian/postinst', | |
| 408 'linux/internal/debian/postrm', | |
| 409 'linux/internal/debian/prerm', | |
| 410 ] | 433 ] |
| 411 }, | 434 }, |
| 412 { | 435 { |
| 413 'destination': '<(PRODUCT_DIR)/installer/rpm/', | 436 'destination': '<(PRODUCT_DIR)/installer/rpm/', |
| 414 'files': [ | 437 'files': [ |
| 415 'linux/internal/rpm/build.sh', | 438 '<@(packaging_files_rpm)', |
| 416 'linux/internal/rpm/chrome.spec.template', | |
| 417 ] | 439 ] |
| 418 }, | 440 }, |
| 419 { | 441 { |
| 420 'destination': '<(PRODUCT_DIR)/installer/common/', | 442 'destination': '<(PRODUCT_DIR)/installer/common/', |
| 421 'files': [ | 443 'files': [ |
| 422 'linux/internal/common/apt.include', | 444 '<@(packaging_files_common)', |
| 423 'linux/internal/common/default-app.template', | |
| 424 'linux/internal/common/default-app-block.template', | |
| 425 'linux/internal/common/desktop.template', | |
| 426 'linux/internal/common/google-chrome/google-chrome.info', | |
| 427 'linux/internal/common/installer.include', | |
| 428 'linux/internal/common/postinst.include', | |
| 429 'linux/internal/common/prerm.include', | |
| 430 'linux/internal/common/repo.cron', | |
| 431 'linux/internal/common/rpm.include', | |
| 432 'linux/internal/common/rpmrepo.cron', | |
| 433 'linux/internal/common/updater', | |
| 434 'linux/internal/common/wrapper', | |
| 435 ] | 445 ] |
| 436 }, | 446 }, |
| 437 # Additional theme resources needed for package building. | 447 # Additional theme resources needed for package building. |
| 438 { | 448 { |
| 439 'destination': '<(PRODUCT_DIR)/installer/theme/', | 449 'destination': '<(PRODUCT_DIR)/installer/theme/', |
| 440 'files': [ | 450 'files': [ |
| 441 '<(branding_dir)/product_logo_16.png', | 451 '<(branding_dir)/product_logo_16.png', |
| 442 '<(branding_dir)/product_logo_32.png', | 452 '<(branding_dir)/product_logo_32.png', |
| 443 '<(branding_dir)/product_logo_48.png', | 453 '<(branding_dir)/product_logo_48.png', |
| 444 '<(branding_dir)/product_logo_256.png', | 454 '<(branding_dir)/product_logo_256.png', |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 # for the 'channel' variable. | 522 # for the 'channel' variable. |
| 513 { | 523 { |
| 514 'variables': { | 524 'variables': { |
| 515 'channel': 'unstable', | 525 'channel': 'unstable', |
| 516 }, | 526 }, |
| 517 'action_name': 'deb_packages_<(channel)', | 527 'action_name': 'deb_packages_<(channel)', |
| 518 'process_outputs_as_sources': 1, | 528 'process_outputs_as_sources': 1, |
| 519 'inputs': [ | 529 'inputs': [ |
| 520 '<(deb_build)', | 530 '<(deb_build)', |
| 521 '<@(input_files)', | 531 '<@(input_files)', |
| 532 '<@(packaging_files_common)', |
| 533 '<@(packaging_files_deb)', |
| 522 ], | 534 ], |
| 523 'outputs': [ | 535 'outputs': [ |
| 524 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)
_<(deb_arch).deb', | 536 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)
_<(deb_arch).deb', |
| 525 ], | 537 ], |
| 526 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ], | 538 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ], |
| 527 }, | 539 }, |
| 528 { | 540 { |
| 529 'variables': { | 541 'variables': { |
| 530 'channel': 'beta', | 542 'channel': 'beta', |
| 531 }, | 543 }, |
| 532 'action_name': 'deb_packages_<(channel)', | 544 'action_name': 'deb_packages_<(channel)', |
| 533 'process_outputs_as_sources': 1, | 545 'process_outputs_as_sources': 1, |
| 534 'inputs': [ | 546 'inputs': [ |
| 535 '<(deb_build)', | 547 '<(deb_build)', |
| 536 '<@(input_files)', | 548 '<@(input_files)', |
| 549 '<@(packaging_files_common)', |
| 550 '<@(packaging_files_deb)', |
| 537 ], | 551 ], |
| 538 'outputs': [ | 552 'outputs': [ |
| 539 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)
_<(deb_arch).deb', | 553 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)
_<(deb_arch).deb', |
| 540 ], | 554 ], |
| 541 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ], | 555 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ], |
| 542 }, | 556 }, |
| 543 { | 557 { |
| 544 'variables': { | 558 'variables': { |
| 545 'channel': 'stable', | 559 'channel': 'stable', |
| 546 }, | 560 }, |
| 547 'action_name': 'deb_packages_<(channel)', | 561 'action_name': 'deb_packages_<(channel)', |
| 548 'process_outputs_as_sources': 1, | 562 'process_outputs_as_sources': 1, |
| 549 'inputs': [ | 563 'inputs': [ |
| 550 '<(deb_build)', | 564 '<(deb_build)', |
| 551 '<@(input_files)', | 565 '<@(input_files)', |
| 566 '<@(packaging_files_common)', |
| 567 '<@(packaging_files_deb)', |
| 552 ], | 568 ], |
| 553 'outputs': [ | 569 'outputs': [ |
| 554 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)
_<(deb_arch).deb', | 570 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)
_<(deb_arch).deb', |
| 555 ], | 571 ], |
| 556 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ], | 572 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ], |
| 557 }, | 573 }, |
| 558 ], | 574 ], |
| 559 'conditions': [ | 575 'conditions': [ |
| 560 ['chromeos==0 and toolkit_views==0', { | 576 ['chromeos==0 and toolkit_views==0', { |
| 561 'actions': [ | 577 'actions': [ |
| 562 { | 578 { |
| 563 'variables': { | 579 'variables': { |
| 564 'channel': 'unstable', | 580 'channel': 'unstable', |
| 565 }, | 581 }, |
| 566 'action_name': 'rpm_packages_<(channel)', | 582 'action_name': 'rpm_packages_<(channel)', |
| 567 'process_outputs_as_sources': 1, | 583 'process_outputs_as_sources': 1, |
| 568 'inputs': [ | 584 'inputs': [ |
| 569 '<(rpm_build)', | 585 '<(rpm_build)', |
| 570 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', | 586 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', |
| 571 '<@(input_files)', | 587 '<@(input_files)', |
| 588 '<@(packaging_files_common)', |
| 589 '<@(packaging_files_rpm)', |
| 572 ], | 590 ], |
| 573 'outputs': [ | 591 'outputs': [ |
| 574 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revisi
on).<(rpm_arch).rpm', | 592 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revisi
on).<(rpm_arch).rpm', |
| 575 ], | 593 ], |
| 576 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ], | 594 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ], |
| 577 }, | 595 }, |
| 578 { | 596 { |
| 579 'variables': { | 597 'variables': { |
| 580 'channel': 'beta', | 598 'channel': 'beta', |
| 581 }, | 599 }, |
| 582 'action_name': 'rpm_packages_<(channel)', | 600 'action_name': 'rpm_packages_<(channel)', |
| 583 'process_outputs_as_sources': 1, | 601 'process_outputs_as_sources': 1, |
| 584 'inputs': [ | 602 'inputs': [ |
| 585 '<(rpm_build)', | 603 '<(rpm_build)', |
| 586 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', | 604 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', |
| 587 '<@(input_files)', | 605 '<@(input_files)', |
| 606 '<@(packaging_files_common)', |
| 607 '<@(packaging_files_rpm)', |
| 588 ], | 608 ], |
| 589 'outputs': [ | 609 'outputs': [ |
| 590 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revisi
on).<(rpm_arch).rpm', | 610 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revisi
on).<(rpm_arch).rpm', |
| 591 ], | 611 ], |
| 592 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ], | 612 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ], |
| 593 }, | 613 }, |
| 594 { | 614 { |
| 595 'variables': { | 615 'variables': { |
| 596 'channel': 'stable', | 616 'channel': 'stable', |
| 597 }, | 617 }, |
| 598 'action_name': 'rpm_packages_<(channel)', | 618 'action_name': 'rpm_packages_<(channel)', |
| 599 'process_outputs_as_sources': 1, | 619 'process_outputs_as_sources': 1, |
| 600 'inputs': [ | 620 'inputs': [ |
| 601 '<(rpm_build)', | 621 '<(rpm_build)', |
| 602 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', | 622 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', |
| 603 '<@(input_files)', | 623 '<@(input_files)', |
| 624 '<@(packaging_files_common)', |
| 625 '<@(packaging_files_rpm)', |
| 604 ], | 626 ], |
| 605 'outputs': [ | 627 'outputs': [ |
| 606 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revisi
on).<(rpm_arch).rpm', | 628 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revisi
on).<(rpm_arch).rpm', |
| 607 ], | 629 ], |
| 608 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ], | 630 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ], |
| 609 }, | 631 }, |
| 610 ], | 632 ], |
| 611 }], | 633 }], |
| 612 ['target_arch=="x64"', { | 634 ['target_arch=="x64"', { |
| 613 # TODO(mmoss) 64-bit RPMs not ready yet. | 635 # TODO(mmoss) 64-bit RPMs not ready yet. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 626 }, | 648 }, |
| 627 }], | 649 }], |
| 628 ], | 650 ], |
| 629 } | 651 } |
| 630 | 652 |
| 631 # Local Variables: | 653 # Local Variables: |
| 632 # tab-width:2 | 654 # tab-width:2 |
| 633 # indent-tabs-mode:nil | 655 # indent-tabs-mode:nil |
| 634 # End: | 656 # End: |
| 635 # vim: set expandtab tabstop=2 shiftwidth=2: | 657 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |