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

Side by Side Diff: chrome/chrome.gyp

Issue 344038: Merge themes/default.pak into chrome.pak for Mac and Linux builds. (Closed)
Patch Set: final Created 11 years, 1 month 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
« no previous file with comments | « app/resource_bundle_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 'chromium_code': 1, 7 'chromium_code': 1,
8 8
9 'variables': { 9 'variables': {
10 'version_py_path': 'tools/build/version.py', 10 'version_py_path': 'tools/build/version.py',
(...skipping 3503 matching lines...) Expand 10 before | Expand all | Expand 10 after
3514 'files': ['app/theme/chromium/product_logo_48.png'] 3514 'files': ['app/theme/chromium/product_logo_48.png']
3515 }], 3515 }],
3516 ], 3516 ],
3517 }, 3517 },
3518 { 3518 {
3519 'destination': '<(PRODUCT_DIR)/locales', 3519 'destination': '<(PRODUCT_DIR)/locales',
3520 'files': [ 3520 'files': [
3521 '>!@(<(repack_locales_cmd) -o -g \'<(grit_out_dir)\' -s \'<(SHAR ED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))', 3521 '>!@(<(repack_locales_cmd) -o -g \'<(grit_out_dir)\' -s \'<(SHAR ED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))',
3522 ], 3522 ],
3523 }, 3523 },
3524 {
3525 'destination': '<(PRODUCT_DIR)/themes',
3526 'files': ['<(INTERMEDIATE_DIR)/repack/default.pak'],
3527 },
3528 ], 3524 ],
3529 }], 3525 }],
3530 ['OS=="linux" and (toolkit_views==1 or chromeos==1)', { 3526 ['OS=="linux" and (toolkit_views==1 or chromeos==1)', {
3531 'dependencies': [ 3527 'dependencies': [
3532 '../views/views.gyp:views', 3528 '../views/views.gyp:views',
3533 ], 3529 ],
3534 }], 3530 }],
3535 ['OS=="mac"', { 3531 ['OS=="mac"', {
3536 'variables': { 3532 'variables': {
3537 'mac_packaging_dir': 3533 'mac_packaging_dir':
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
3735 'postbuild_name': 'Make .lproj links', 3731 'postbuild_name': 'Make .lproj links',
3736 'action': ['<(symlink_lprojs_path)'], 3732 'action': ['<(symlink_lprojs_path)'],
3737 }, 3733 },
3738 { 3734 {
3739 'postbuild_name': 'Clean up old versions', 3735 'postbuild_name': 'Clean up old versions',
3740 'action': [ 3736 'action': [
3741 'tools/build/mac/clean_up_old_versions', 3737 'tools/build/mac/clean_up_old_versions',
3742 '<(version_full)' 3738 '<(version_full)'
3743 ], 3739 ],
3744 }, 3740 },
3741 {
3742 # TODO(tony): Remove this after Nov 13, 2009.
3743 'postbuild_name': 'cleanup_theme_pak',
3744 'action': ['rm', '-f',
3745 '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Versions'
3746 '/<(version_full)/<(mac_product_name) Framework.framework/'
3747 'Resources/theme.pak'],
3748 },
3745 ], # postbuilds 3749 ], # postbuilds
3746 }, { # else: OS != "mac" 3750 }, { # else: OS != "mac"
3747 'conditions': [ 3751 'conditions': [
3748 ['branding=="Chrome"', { 3752 ['branding=="Chrome"', {
3749 'product_name': 'chrome' 3753 'product_name': 'chrome'
3750 }, { # else: Branding!="Chrome" 3754 }, { # else: Branding!="Chrome"
3751 # TODO: change to: 3755 # TODO: change to:
3752 # 'product_name': 'chromium' 3756 # 'product_name': 'chromium'
3753 # whenever we convert the rest of the infrastructure 3757 # whenever we convert the rest of the infrastructure
3754 # (buildbots etc.) to use "gyp -Dbranding=Chrome". 3758 # (buildbots etc.) to use "gyp -Dbranding=Chrome".
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
3876 'actions': [ 3880 'actions': [
3877 # TODO(mark): These actions are duplicated for the Mac in the 3881 # TODO(mark): These actions are duplicated for the Mac in the
3878 # chrome_dll target. Can they be unified? 3882 # chrome_dll target. Can they be unified?
3879 { 3883 {
3880 'action_name': 'repack_chrome', 3884 'action_name': 'repack_chrome',
3881 'variables': { 3885 'variables': {
3882 'pak_inputs': [ 3886 'pak_inputs': [
3883 '<(grit_out_dir)/browser_resources.pak', 3887 '<(grit_out_dir)/browser_resources.pak',
3884 '<(grit_out_dir)/common_resources.pak', 3888 '<(grit_out_dir)/common_resources.pak',
3885 '<(grit_out_dir)/renderer_resources.pak', 3889 '<(grit_out_dir)/renderer_resources.pak',
3890 '<(grit_out_dir)/theme_resources.pak',
Mark Mentovai 2009/10/30 23:49:57 TVL: Tony added theme_resources.pak and app_resour
3891 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak',
3886 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', 3892 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
3887 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', 3893 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
3888 ], 3894 ],
3889 }, 3895 },
3890 'inputs': [ 3896 'inputs': [
3891 '<(repack_path)', 3897 '<(repack_path)',
3892 '<@(pak_inputs)', 3898 '<@(pak_inputs)',
3893 ], 3899 ],
3894 'outputs': [ 3900 'outputs': [
3895 '<(INTERMEDIATE_DIR)/repack/chrome.pak', 3901 '<(INTERMEDIATE_DIR)/repack/chrome.pak',
3896 ], 3902 ],
3897 'action': ['python', '<(repack_path)', '<@(_outputs)', 3903 'action': ['python', '<(repack_path)', '<@(_outputs)',
3898 '<@(pak_inputs)'], 3904 '<@(pak_inputs)'],
3899 }, 3905 },
3900 { 3906 {
3901 'action_name': 'repack_theme',
Mark Mentovai 2009/10/30 23:49:57 ...and got rid of them here.
3902 'variables': {
3903 'pak_inputs': [
3904 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak',
3905 '<(grit_out_dir)/theme_resources.pak',
3906 ],
3907 },
3908 'inputs': [
3909 '<(repack_path)',
3910 '<@(pak_inputs)',
3911 ],
3912 'outputs': [
3913 '<(INTERMEDIATE_DIR)/repack/default.pak',
3914 ],
3915 'action': ['python', '<(repack_path)', '<@(_outputs)',
3916 '<@(pak_inputs)'],
3917 },
3918 {
3919 'action_name': 'repack_locales', 3907 'action_name': 'repack_locales',
3920 'variables': { 3908 'variables': {
3921 'conditions': [ 3909 'conditions': [
3922 ['branding=="Chrome"', { 3910 ['branding=="Chrome"', {
3923 'branding_flag': ['-b', 'google_chrome',], 3911 'branding_flag': ['-b', 'google_chrome',],
3924 }, { # else: branding!="Chrome" 3912 }, { # else: branding!="Chrome"
3925 'branding_flag': ['-b', 'chromium',], 3913 'branding_flag': ['-b', 'chromium',],
3926 }], 3914 }],
3927 ], 3915 ],
3928 }, 3916 },
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after
5733 'action': ['<(PRODUCT_DIR)/pdfsqueeze', 5721 'action': ['<(PRODUCT_DIR)/pdfsqueeze',
5734 '<(RULE_INPUT_PATH)', '<@(_outputs)'], 5722 '<(RULE_INPUT_PATH)', '<@(_outputs)'],
5735 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)', 5723 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)',
5736 }, 5724 },
5737 ], 5725 ],
5738 'variables': { 5726 'variables': {
5739 'repack_path': '../tools/data_pack/repack.py', 5727 'repack_path': '../tools/data_pack/repack.py',
5740 }, 5728 },
5741 'actions': [ 5729 'actions': [
5742 # TODO(mark): These actions are duplicated for Linux and 5730 # TODO(mark): These actions are duplicated for Linux and
5743 # and FreeBSD in the chrome target. Can they be unified? 5731 # FreeBSD in the chrome target. Can they be unified?
5744 { 5732 {
5745 'action_name': 'repack_chrome', 5733 'action_name': 'repack_chrome',
5746 'variables': { 5734 'variables': {
5747 'pak_inputs': [ 5735 'pak_inputs': [
5748 '<(grit_out_dir)/browser_resources.pak', 5736 '<(grit_out_dir)/browser_resources.pak',
5749 '<(grit_out_dir)/common_resources.pak', 5737 '<(grit_out_dir)/common_resources.pak',
5750 '<(grit_out_dir)/renderer_resources.pak', 5738 '<(grit_out_dir)/renderer_resources.pak',
5739 '<(grit_out_dir)/theme_resources.pak',
5740 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak',
5751 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', 5741 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
5752 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', 5742 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
5753 ], 5743 ],
5754 }, 5744 },
5755 'inputs': [ 5745 'inputs': [
5756 '<(repack_path)', 5746 '<(repack_path)',
5757 '<@(pak_inputs)', 5747 '<@(pak_inputs)',
5758 ], 5748 ],
5759 'outputs': [ 5749 'outputs': [
5760 '<(INTERMEDIATE_DIR)/repack/chrome.pak', 5750 '<(INTERMEDIATE_DIR)/repack/chrome.pak',
5761 ], 5751 ],
5762 'action': ['python', '<(repack_path)', '<@(_outputs)', 5752 'action': ['python', '<(repack_path)', '<@(_outputs)',
5763 '<@(pak_inputs)'], 5753 '<@(pak_inputs)'],
5764 'process_outputs_as_mac_bundle_resources': 1, 5754 'process_outputs_as_mac_bundle_resources': 1,
5765 }, 5755 },
5766 { 5756 {
5767 'action_name': 'repack_theme',
5768 'variables': {
5769 'pak_inputs': [
5770 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak',
5771 '<(grit_out_dir)/theme_resources.pak',
5772 ],
5773 },
5774 'inputs': [
5775 '<(repack_path)',
5776 '<@(pak_inputs)',
5777 ],
5778 'outputs': [
5779 '<(INTERMEDIATE_DIR)/repack/theme.pak',
5780 ],
5781 'action': ['python', '<(repack_path)', '<@(_outputs)',
5782 '<@(pak_inputs)'],
5783 'process_outputs_as_mac_bundle_resources': 1,
5784 },
5785 {
5786 'action_name': 'repack_locales', 5757 'action_name': 'repack_locales',
5787 'process_outputs_as_mac_bundle_resources': 1, 5758 'process_outputs_as_mac_bundle_resources': 1,
5788 'variables': { 5759 'variables': {
5789 'conditions': [ 5760 'conditions': [
5790 ['branding=="Chrome"', { 5761 ['branding=="Chrome"', {
5791 'branding_flag': ['-b', 'google_chrome',], 5762 'branding_flag': ['-b', 'google_chrome',],
5792 }, { # else: branding!="Chrome" 5763 }, { # else: branding!="Chrome"
5793 'branding_flag': ['-b', 'chromium',], 5764 'branding_flag': ['-b', 'chromium',],
5794 }], 5765 }],
5795 ], 5766 ],
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
6986 ] 6957 ]
6987 }], 6958 }],
6988 ], # 'conditions' 6959 ], # 'conditions'
6989 } 6960 }
6990 6961
6991 # Local Variables: 6962 # Local Variables:
6992 # tab-width:2 6963 # tab-width:2
6993 # indent-tabs-mode:nil 6964 # indent-tabs-mode:nil
6994 # End: 6965 # End:
6995 # vim: set expandtab tabstop=2 shiftwidth=2: 6966 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « app/resource_bundle_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698