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 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 | 7 |
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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 'dependencies!': [ | 855 'dependencies!': [ |
856 '../chrome_frame/chrome_frame.gyp:chrome_frame_tests', | 856 '../chrome_frame/chrome_frame.gyp:chrome_frame_tests', |
857 '../chrome_frame/chrome_frame.gyp:chrome_frame_net_tests', | 857 '../chrome_frame/chrome_frame.gyp:chrome_frame_net_tests', |
858 ], | 858 ], |
859 }], | 859 }], |
860 ], | 860 ], |
861 }, | 861 }, |
862 { | 862 { |
863 'target_name': 'chrome_version_resources', | 863 'target_name': 'chrome_version_resources', |
864 'type': 'none', | 864 'type': 'none', |
| 865 'conditions': [ |
| 866 ['branding == "Chrome"', { |
| 867 'variables': { |
| 868 'branding_path': 'app/theme/google_chrome/BRANDING', |
| 869 }, |
| 870 }, { # else branding!="Chrome" |
| 871 'variables': { |
| 872 'branding_path': 'app/theme/chromium/BRANDING', |
| 873 }, |
| 874 }], |
| 875 ], |
| 876 'variables': { |
| 877 'output_dir': 'chrome_version', |
| 878 'template_input_path': 'app/chrome_version.rc.version', |
| 879 }, |
865 'direct_dependent_settings': { | 880 'direct_dependent_settings': { |
866 'include_dirs': [ | 881 'include_dirs': [ |
867 '<(SHARED_INTERMEDIATE_DIR)/chrome_version', | 882 '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', |
868 ], | 883 ], |
869 }, | 884 }, |
870 'sources': [ | 885 'sources': [ |
871 'app/app_host_exe.ver', | 886 'app/app_host_exe.ver', |
872 'app/chrome_exe.ver', | 887 'app/chrome_exe.ver', |
873 'app/chrome_dll.ver', | 888 'app/chrome_dll.ver', |
874 'app/nacl64_exe.ver', | 889 'app/nacl64_exe.ver', |
875 'app/other.ver', | 890 'app/other.ver', |
876 ], | 891 ], |
877 'rules': [ | 892 'includes': [ |
878 { | 893 'version_resource_rules.gypi', |
879 'rule_name': 'version', | |
880 'extension': 'ver', | |
881 'variables': { | |
882 'lastchange_path': | |
883 '<(DEPTH)/build/util/LASTCHANGE', | |
884 'template_input_path': 'app/chrome_version.rc.version', | |
885 }, | |
886 'conditions': [ | |
887 ['branding == "Chrome"', { | |
888 'variables': { | |
889 'branding_path': 'app/theme/google_chrome/BRANDING', | |
890 }, | |
891 }, { # else branding!="Chrome" | |
892 'variables': { | |
893 'branding_path': 'app/theme/chromium/BRANDING', | |
894 }, | |
895 }], | |
896 ], | |
897 'inputs': [ | |
898 '<(template_input_path)', | |
899 '<(version_path)', | |
900 '<(branding_path)', | |
901 '<(lastchange_path)', | |
902 ], | |
903 'outputs': [ | |
904 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/<(RULE_INPUT_ROOT)_ve
rsion.rc', | |
905 ], | |
906 'action': [ | |
907 'python', | |
908 '<(version_py_path)', | |
909 '-f', '<(RULE_INPUT_PATH)', | |
910 '-f', '<(version_path)', | |
911 '-f', '<(branding_path)', | |
912 '-f', '<(lastchange_path)', | |
913 '<(template_input_path)', | |
914 '<@(_outputs)', | |
915 ], | |
916 'message': 'Generating version information in <(_outputs)' | |
917 }, | |
918 ], | 894 ], |
919 }, | 895 }, |
920 { | 896 { |
921 'target_name': 'chrome_version_header', | 897 'target_name': 'chrome_version_header', |
922 'type': 'none', | 898 'type': 'none', |
923 'hard_dependency': 1, | 899 'hard_dependency': 1, |
924 'actions': [ | 900 'actions': [ |
925 { | 901 { |
926 'action_name': 'version_header', | 902 'action_name': 'version_header', |
927 'variables': { | 903 'variables': { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 '../build/java.gypi', | 1062 '../build/java.gypi', |
1087 ], | 1063 ], |
1088 }, | 1064 }, |
1089 ], # 'targets' | 1065 ], # 'targets' |
1090 'includes': [ | 1066 'includes': [ |
1091 'chrome_android.gypi', | 1067 'chrome_android.gypi', |
1092 ]}, # 'includes' | 1068 ]}, # 'includes' |
1093 ], # OS=="android" | 1069 ], # OS=="android" |
1094 ], # 'conditions' | 1070 ], # 'conditions' |
1095 } | 1071 } |
OLD | NEW |