| OLD | NEW |
| 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 # Define the common dependencies that contain all the actual | 8 # Define the common dependencies that contain all the actual |
| 9 # Chromium functionality. This list gets pulled in below by | 9 # Chromium functionality. This list gets pulled in below by |
| 10 # the link of the actual chrome (or chromium) executable on | 10 # the link of the actual chrome (or chromium) executable on |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 'chrome_build': '_google_chrome', | 149 'chrome_build': '_google_chrome', |
| 150 }, { # else: branding!="Chrome" | 150 }, { # else: branding!="Chrome" |
| 151 'chrome_build': '_chromium', | 151 'chrome_build': '_chromium', |
| 152 }], | 152 }], |
| 153 ], | 153 ], |
| 154 }, | 154 }, |
| 155 'inputs': [ | 155 'inputs': [ |
| 156 '../tools/grit/grit.py', | 156 '../tools/grit/grit.py', |
| 157 ], | 157 ], |
| 158 'outputs': [ | 158 'outputs': [ |
| 159 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', | 159 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h'] + |
| 160 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_da.pak', | 160 [ '<(grit_out_dir)/<(RULE_INPUT_ROOT)_'+i+'.pak' |
| 161 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_en-US.pak', | 161 for i in ['ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', 'hi', 'hr', 'hu',
'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', 'ml', 'mr', 'nb', 'nl', 'or', 'pl', '
pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'ta', 'te', 'th', 'tr', 'uk
', 'vi', 'zh-CN', 'zh-TW'] |
| 162 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_he.pak', | |
| 163 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_zh-TW.pak', | |
| 164 ], | 162 ], |
| 165 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', | 163 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', |
| 166 'build', '-o', '<(grit_out_dir)', | 164 'build', '-o', '<(grit_out_dir)', |
| 167 '-D', '<(chrome_build)'], | 165 '-D', '<(chrome_build)'], |
| 168 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 166 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
| 169 }, | 167 }, |
| 170 ], | 168 ], |
| 171 'sources': [ | 169 'sources': [ |
| 172 # Localizable resources. | 170 # Localizable resources. |
| 173 'app/resources/locale_settings.grd', | 171 'app/resources/locale_settings.grd', |
| (...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2449 # Needed for chrome_dll_main.cc use of g_thread_init | 2447 # Needed for chrome_dll_main.cc use of g_thread_init |
| 2450 '../build/linux/system.gyp:gthread', | 2448 '../build/linux/system.gyp:gthread', |
| 2451 ], | 2449 ], |
| 2452 'copies': [ | 2450 'copies': [ |
| 2453 { | 2451 { |
| 2454 'destination': '<(PRODUCT_DIR)', | 2452 'destination': '<(PRODUCT_DIR)', |
| 2455 'files': ['<(INTERMEDIATE_DIR)/repack/chrome.pak'], | 2453 'files': ['<(INTERMEDIATE_DIR)/repack/chrome.pak'], |
| 2456 }, | 2454 }, |
| 2457 { | 2455 { |
| 2458 'destination': '<(PRODUCT_DIR)/locales', | 2456 'destination': '<(PRODUCT_DIR)/locales', |
| 2459 'files': ['<(INTERMEDIATE_DIR)/repack/da.pak', | 2457 'files': ['<(INTERMEDIATE_DIR)/repack/'+i+'.pak' |
| 2460 '<(INTERMEDIATE_DIR)/repack/en-US.pak', | 2458 for i in ['ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el'
, 'en-GB', 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', 'hi', '
hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', 'ml', 'mr', 'nb', 'nl', 'or
', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'ta', 'te', 'th',
'tr', 'uk', 'vi', 'zh-CN', 'zh-TW']], |
| 2461 '<(INTERMEDIATE_DIR)/repack/he.pak', | |
| 2462 '<(INTERMEDIATE_DIR)/repack/zh-TW.pak', | |
| 2463 ], | |
| 2464 }, | 2459 }, |
| 2465 { | 2460 { |
| 2466 'destination': '<(PRODUCT_DIR)/themes', | 2461 'destination': '<(PRODUCT_DIR)/themes', |
| 2467 'files': ['<(INTERMEDIATE_DIR)/repack/default.pak'], | 2462 'files': ['<(INTERMEDIATE_DIR)/repack/default.pak'], |
| 2468 }, | 2463 }, |
| 2469 ], | 2464 ], |
| 2470 }], | 2465 }], |
| 2471 ['OS=="linux" and (toolkit_views==1 or linux2==1)', { | 2466 ['OS=="linux" and (toolkit_views==1 or linux2==1)', { |
| 2472 'dependencies': [ | 2467 'dependencies': [ |
| 2473 '../views/views.gyp:views', | 2468 '../views/views.gyp:views', |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2747 ], | 2742 ], |
| 2748 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | 2743 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], |
| 2749 'process_outputs_as_mac_bundle_resources': 1, | 2744 'process_outputs_as_mac_bundle_resources': 1, |
| 2750 'conditions': [ | 2745 'conditions': [ |
| 2751 ['OS=="linux"', { | 2746 ['OS=="linux"', { |
| 2752 'outputs=': [ | 2747 'outputs=': [ |
| 2753 '<(INTERMEDIATE_DIR)/repack/default.pak', | 2748 '<(INTERMEDIATE_DIR)/repack/default.pak', |
| 2754 ] | 2749 ] |
| 2755 }], | 2750 }], |
| 2756 ], | 2751 ], |
| 2757 }, | 2752 }] |
| 2758 { | 2753 + |
| 2759 # TODO(mark): Make this work with more languages than the | 2754 [{ |
| 2760 # hardcoded da, en-US, he, zh-TW. | 2755 'action_name': 'repack_locale_'+i, |
| 2761 'action_name': 'repack_locale_da', | |
| 2762 'variables': { | 2756 'variables': { |
| 2763 'pak_inputs': [ | 2757 'pak_inputs': [ |
| 2764 '<(grit_out_dir)/generated_resources_da.pak', | 2758 '<(grit_out_dir)/generated_resources_'+i+'.pak', |
| 2765 '<(grit_out_dir)/locale_settings_da.pak', | 2759 '<(grit_out_dir)/locale_settings_'+i+'.pak', |
| 2766 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak', | 2760 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_'+i+'.pak', |
| 2767 ], | 2761 ], |
| 2768 'conditions': [ | 2762 'conditions': [ |
| 2769 ['branding=="Chrome"', { | 2763 ['branding=="Chrome"', { |
| 2770 'pak_inputs': [ | 2764 'pak_inputs': [ |
| 2771 '<(grit_out_dir)/google_chrome_strings_da.pak', | 2765 '<(grit_out_dir)/google_chrome_strings_'+i+'.pak', |
| 2772 ] | 2766 ] |
| 2773 }, { # else: branding!="Chrome" | 2767 }, { # else: branding!="Chrome" |
| 2774 'pak_inputs': [ | 2768 'pak_inputs': [ |
| 2775 '<(grit_out_dir)/chromium_strings_da.pak', | 2769 '<(grit_out_dir)/chromium_strings_'+i+'.pak', |
| 2776 ] | 2770 ] |
| 2777 }], | 2771 }], |
| 2778 ], | 2772 ], |
| 2779 }, | 2773 }, |
| 2780 'inputs': [ | 2774 'inputs': [ |
| 2781 '<(repack_path)', | 2775 '<(repack_path)', |
| 2782 '<@(pak_inputs)', | 2776 '<@(pak_inputs)', |
| 2783 ], | 2777 ], |
| 2784 'conditions': [ | 2778 'conditions': [ |
| 2785 ['OS=="mac"', { | 2779 ['OS=="mac"', { |
| 2786 'outputs': [ | 2780 'outputs': [ |
| 2787 # TODO(port): We can't simply emit the strings file without | 2781 # TODO(port): We can't simply emit the strings file without |
| 2788 # the nibs too, or the app fails to launch in this language. | 2782 # the nibs too, or the app fails to launch in this language. |
| 2789 # Currently, this is only for ui_tests, which won't work on | 2783 # Currently, this is only for ui_tests, which won't work on |
| 2790 # the Mac anyway, so temporarily disable until we have the | 2784 # the Mac anyway, so temporarily disable until we have the |
| 2791 # full strategy figured out. This goes for he and zh below. | 2785 # full strategy figured out. This goes for he and zh. |
| 2792 # '<(INTERMEDIATE_DIR)/repack/da.lproj/locale.pak', | 2786 # '<(INTERMEDIATE_DIR)/repack/'+i+'.lproj/locale.pak', |
| 2793 ], | 2787 ], |
| 2794 }, { # else: OS!="mac" | 2788 }, { # else: OS!="mac" |
| 2795 'outputs': [ | 2789 'outputs': [ |
| 2796 '<(INTERMEDIATE_DIR)/repack/da.pak', | 2790 '<(INTERMEDIATE_DIR)/repack/'+i+'.pak', |
| 2797 ], | 2791 ], |
| 2798 }], | 2792 }], |
| 2799 ], | 2793 ], |
| 2800 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | 2794 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], |
| 2801 }, | 2795 } |
| 2802 { | 2796 for i in ['ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', 'hi', 'hr', 'hu',
'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', 'ml', 'mr', 'nb', 'nl', 'or', 'pl', 'p
t-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'ta', 'te', 'th', 'tr', 'uk'
, 'vi', 'zh-CN', 'zh-TW'] ], |
| 2803 # TODO(mark): Make this work with more languages than the | |
| 2804 # hardcoded da, en-US, he, zh-TW. | |
| 2805 'action_name': 'repack_locale_en_us', | |
| 2806 'variables': { | |
| 2807 'pak_inputs': [ | |
| 2808 '<(grit_out_dir)/generated_resources_en-US.pak', | |
| 2809 '<(grit_out_dir)/locale_settings_en-US.pak', | |
| 2810 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', | |
| 2811 ], | |
| 2812 'conditions': [ | |
| 2813 ['branding=="Chrome"', { | |
| 2814 'pak_inputs': [ | |
| 2815 '<(grit_out_dir)/google_chrome_strings_en-US.pak', | |
| 2816 ] | |
| 2817 }, { # else: branding!="Chrome" | |
| 2818 'pak_inputs': [ | |
| 2819 '<(grit_out_dir)/chromium_strings_en-US.pak', | |
| 2820 ] | |
| 2821 }], | |
| 2822 ], | |
| 2823 }, | |
| 2824 'inputs': [ | |
| 2825 '<(repack_path)', | |
| 2826 '<@(pak_inputs)', | |
| 2827 ], | |
| 2828 'conditions': [ | |
| 2829 ['OS=="mac"', { | |
| 2830 'outputs': [ | |
| 2831 '<(INTERMEDIATE_DIR)/repack/en.lproj/locale.pak', | |
| 2832 ], | |
| 2833 }, { # else: OS!="mac" | |
| 2834 'outputs': [ | |
| 2835 '<(INTERMEDIATE_DIR)/repack/en-US.pak', | |
| 2836 ], | |
| 2837 }], | |
| 2838 ], | |
| 2839 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | |
| 2840 'process_outputs_as_mac_bundle_resources': 1, | |
| 2841 }, | |
| 2842 { | |
| 2843 # TODO(mark): Make this work with more languages than the | |
| 2844 # hardcoded da, en-US, he, zh-TW. | |
| 2845 'action_name': 'repack_locale_he', | |
| 2846 'variables': { | |
| 2847 'pak_inputs': [ | |
| 2848 '<(grit_out_dir)/generated_resources_he.pak', | |
| 2849 '<(grit_out_dir)/locale_settings_he.pak', | |
| 2850 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_he.pak', | |
| 2851 ], | |
| 2852 'conditions': [ | |
| 2853 ['branding=="Chrome"', { | |
| 2854 'pak_inputs': [ | |
| 2855 '<(grit_out_dir)/google_chrome_strings_he.pak', | |
| 2856 ] | |
| 2857 }, { # else: branding!="Chrome" | |
| 2858 'pak_inputs': [ | |
| 2859 '<(grit_out_dir)/chromium_strings_he.pak', | |
| 2860 ] | |
| 2861 }], | |
| 2862 ], | |
| 2863 }, | |
| 2864 'inputs': [ | |
| 2865 '<(repack_path)', | |
| 2866 '<@(pak_inputs)', | |
| 2867 ], | |
| 2868 'conditions': [ | |
| 2869 ['OS=="mac"', { | |
| 2870 'outputs': [ | |
| 2871 # '<(INTERMEDIATE_DIR)/repack/he.lproj/locale.pak', | |
| 2872 ], | |
| 2873 }, { # else: OS!="mac" | |
| 2874 'outputs': [ | |
| 2875 '<(INTERMEDIATE_DIR)/repack/he.pak', | |
| 2876 ], | |
| 2877 }], | |
| 2878 ], | |
| 2879 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | |
| 2880 }, | |
| 2881 { | |
| 2882 # TODO(mark): Make this work with more languages than the | |
| 2883 # hardcoded da, en-US, he, zh-TW. | |
| 2884 'action_name': 'repack_locale_zh_tw', | |
| 2885 'variables': { | |
| 2886 'pak_inputs': [ | |
| 2887 '<(grit_out_dir)/generated_resources_zh-TW.pak', | |
| 2888 '<(grit_out_dir)/locale_settings_zh-TW.pak', | |
| 2889 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_zh-TW.pak', | |
| 2890 ], | |
| 2891 'conditions': [ | |
| 2892 ['branding=="Chrome"', { | |
| 2893 'pak_inputs': [ | |
| 2894 '<(grit_out_dir)/google_chrome_strings_zh-TW.pak', | |
| 2895 ] | |
| 2896 }, { # else: branding!="Chrome" | |
| 2897 'pak_inputs': [ | |
| 2898 '<(grit_out_dir)/chromium_strings_zh-TW.pak', | |
| 2899 ] | |
| 2900 }], | |
| 2901 ], | |
| 2902 }, | |
| 2903 'inputs': [ | |
| 2904 '<(repack_path)', | |
| 2905 '<@(pak_inputs)', | |
| 2906 ], | |
| 2907 'conditions': [ | |
| 2908 ['OS=="mac"', { | |
| 2909 'outputs': [ | |
| 2910 # '<(INTERMEDIATE_DIR)/repack/zh.lproj/locale.pak', | |
| 2911 ], | |
| 2912 }, { # else: OS!="mac" | |
| 2913 'outputs': [ | |
| 2914 '<(INTERMEDIATE_DIR)/repack/zh-TW.pak', | |
| 2915 ], | |
| 2916 }], | |
| 2917 ], | |
| 2918 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | |
| 2919 }, | |
| 2920 ], | |
| 2921 'sources!': [ | 2797 'sources!': [ |
| 2922 'app/chrome_exe_main.cc', | 2798 'app/chrome_exe_main.cc', |
| 2923 'app/client_util.cc', | 2799 'app/client_util.cc', |
| 2924 'app/google_update_client.cc', | 2800 'app/google_update_client.cc', |
| 2925 ] | 2801 ] |
| 2926 }], | 2802 }], |
| 2927 ], | 2803 ], |
| 2928 }, | 2804 }, |
| 2929 { | 2805 { |
| 2930 'target_name': 'image_diff', | 2806 'target_name': 'image_diff', |
| (...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4787 # Use outputs of this action as inputs for the main target build. | 4663 # Use outputs of this action as inputs for the main target build. |
| 4788 # Seems as a misnomer but makes this happy on Linux (scons). | 4664 # Seems as a misnomer but makes this happy on Linux (scons). |
| 4789 'process_outputs_as_sources': 1, | 4665 'process_outputs_as_sources': 1, |
| 4790 }, | 4666 }, |
| 4791 ], # 'actions' | 4667 ], # 'actions' |
| 4792 }, | 4668 }, |
| 4793 ] | 4669 ] |
| 4794 }], | 4670 }], |
| 4795 ], # 'conditions' | 4671 ], # 'conditions' |
| 4796 } | 4672 } |
| OLD | NEW |