OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 'V8_SHARED', | 122 'V8_SHARED', |
123 'BUILDING_V8_SHARED', | 123 'BUILDING_V8_SHARED', |
124 ], | 124 ], |
125 'direct_dependent_settings': { | 125 'direct_dependent_settings': { |
126 'defines': [ | 126 'defines': [ |
127 'V8_SHARED', | 127 'V8_SHARED', |
128 'USING_V8_SHARED', | 128 'USING_V8_SHARED', |
129 ], | 129 ], |
130 }, | 130 }, |
131 }], | 131 }], |
132 ['v8_enable_i18n_support==1', { | |
133 'sources': [ | |
134 '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', | |
135 ], | |
136 }], | |
137 ], | 132 ], |
138 'dependencies': [ | 133 'dependencies': [ |
139 'v8_base.<(v8_target_arch)', | 134 'v8_base.<(v8_target_arch)', |
140 ], | 135 ], |
141 'include_dirs+': [ | 136 'include_dirs+': [ |
142 '../../src', | 137 '../../src', |
143 ], | 138 ], |
144 'sources': [ | 139 'sources': [ |
145 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 140 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
146 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 141 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 }, { | 185 }, { |
191 'toolsets': ['target'], | 186 'toolsets': ['target'], |
192 'dependencies': ['js2c'], | 187 'dependencies': ['js2c'], |
193 }], | 188 }], |
194 ['component=="shared_library"', { | 189 ['component=="shared_library"', { |
195 'defines': [ | 190 'defines': [ |
196 'BUILDING_V8_SHARED', | 191 'BUILDING_V8_SHARED', |
197 'V8_SHARED', | 192 'V8_SHARED', |
198 ], | 193 ], |
199 }], | 194 }], |
200 ['v8_enable_i18n_support==1', { | |
201 'sources': [ | |
202 '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', | |
203 ], | |
204 }], | |
205 ] | 195 ] |
206 }, | 196 }, |
207 { | 197 { |
208 'target_name': 'v8_base.<(v8_target_arch)', | 198 'target_name': 'v8_base.<(v8_target_arch)', |
209 'type': 'static_library', | 199 'type': 'static_library', |
210 'variables': { | 200 'variables': { |
211 'optimize': 'max', | 201 'optimize': 'max', |
212 }, | 202 }, |
213 'include_dirs+': [ | 203 'include_dirs+': [ |
214 '../../src', | 204 '../../src', |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 'BUILDING_V8_SHARED', | 858 'BUILDING_V8_SHARED', |
869 'V8_SHARED', | 859 'V8_SHARED', |
870 ], | 860 ], |
871 }], | 861 }], |
872 ['v8_postmortem_support=="true"', { | 862 ['v8_postmortem_support=="true"', { |
873 'sources': [ | 863 'sources': [ |
874 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', | 864 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', |
875 ] | 865 ] |
876 }], | 866 }], |
877 ['v8_enable_i18n_support==1', { | 867 ['v8_enable_i18n_support==1', { |
878 'sources': [ | |
879 '../../src/extensions/i18n/i18n-extension.cc', | |
880 '../../src/extensions/i18n/i18n-extension.h', | |
881 ], | |
882 'dependencies': [ | 868 'dependencies': [ |
883 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | 869 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', |
884 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | 870 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
885 ] | 871 ] |
886 }, { # v8_enable_i18n_support==0 | 872 }, { # v8_enable_i18n_support==0 |
887 'sources!': [ | 873 'sources!': [ |
888 '../../src/i18n.cc', | 874 '../../src/i18n.cc', |
889 '../../src/i18n.h', | 875 '../../src/i18n.h', |
890 ], | 876 ], |
891 }], | 877 }], |
892 ['OS=="win" and v8_enable_i18n_support==1', { | 878 ['OS=="win" and v8_enable_i18n_support==1', { |
893 'dependencies': [ | 879 'dependencies': [ |
894 '<(DEPTH)/third_party/icu/icu.gyp:icudata', | 880 '<(DEPTH)/third_party/icu/icu.gyp:icudata', |
895 ], | 881 ], |
896 }], | 882 }], |
897 ], | 883 ], |
898 }, | 884 }, |
899 { | 885 { |
900 'target_name': 'js2c', | 886 'target_name': 'js2c', |
901 'type': 'none', | 887 'type': 'none', |
902 'conditions': [ | 888 'conditions': [ |
903 ['want_separate_host_toolset==1', { | 889 ['want_separate_host_toolset==1', { |
904 'toolsets': ['host'], | 890 'toolsets': ['host'], |
905 }, { | 891 }, { |
906 'toolsets': ['target'], | 892 'toolsets': ['target'], |
907 }], | 893 }], |
908 ['v8_enable_i18n_support==1', { | 894 ['v8_enable_i18n_support==1', { |
909 'actions': [{ | 895 'variables': { |
910 'action_name': 'js2c_i18n', | 896 'i18n_library_files': [ |
911 'inputs': [ | 897 '../../src/i18n.js', |
912 '../../tools/js2c.py', | |
913 '<@(i18n_library_files)', | |
914 ], | 898 ], |
915 'outputs': [ | 899 }, |
916 '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', | 900 }, { |
917 ], | 901 'variables': { |
918 'action': [ | 902 'i18n_library_files': [], |
919 'python', | 903 }, |
920 '../../tools/js2c.py', | |
921 '<@(_outputs)', | |
922 'I18N', | |
923 '<(v8_compress_startup_data)', | |
924 '<@(i18n_library_files)' | |
925 ], | |
926 }], | |
927 }], | 904 }], |
928 ], | 905 ], |
929 'variables': { | 906 'variables': { |
930 'library_files': [ | 907 'library_files': [ |
931 '../../src/runtime.js', | 908 '../../src/runtime.js', |
932 '../../src/v8natives.js', | 909 '../../src/v8natives.js', |
933 '../../src/array.js', | 910 '../../src/array.js', |
934 '../../src/string.js', | 911 '../../src/string.js', |
935 '../../src/uri.js', | 912 '../../src/uri.js', |
936 '../../src/math.js', | 913 '../../src/math.js', |
(...skipping 13 matching lines...) Expand all Loading... |
950 '../../src/proxy.js', | 927 '../../src/proxy.js', |
951 '../../src/collection.js', | 928 '../../src/collection.js', |
952 '../../src/object-observe.js', | 929 '../../src/object-observe.js', |
953 '../../src/arraybuffer.js', | 930 '../../src/arraybuffer.js', |
954 '../../src/typedarray.js', | 931 '../../src/typedarray.js', |
955 '../../src/generator.js', | 932 '../../src/generator.js', |
956 '../../src/array-iterator.js', | 933 '../../src/array-iterator.js', |
957 '../../src/harmony-string.js', | 934 '../../src/harmony-string.js', |
958 '../../src/harmony-array.js', | 935 '../../src/harmony-array.js', |
959 ], | 936 ], |
960 'i18n_library_files': [ | |
961 '../../src/extensions/i18n/header.js', | |
962 '../../src/extensions/i18n/globals.js', | |
963 '../../src/extensions/i18n/locale.js', | |
964 '../../src/extensions/i18n/collator.js', | |
965 '../../src/extensions/i18n/number-format.js', | |
966 '../../src/extensions/i18n/date-format.js', | |
967 '../../src/extensions/i18n/break-iterator.js', | |
968 '../../src/extensions/i18n/i18n-utils.js', | |
969 '../../src/extensions/i18n/overrides.js', | |
970 '../../src/extensions/i18n/footer.js', | |
971 ], | |
972 }, | 937 }, |
973 'actions': [ | 938 'actions': [ |
974 { | 939 { |
975 'action_name': 'js2c', | 940 'action_name': 'js2c', |
976 'inputs': [ | 941 'inputs': [ |
977 '../../tools/js2c.py', | 942 '../../tools/js2c.py', |
978 '<@(library_files)', | 943 '<@(library_files)', |
| 944 '<@(i18n_library_files)', |
979 ], | 945 ], |
980 'outputs': [ | 946 'outputs': [ |
981 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 947 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
982 ], | 948 ], |
983 'action': [ | 949 'action': [ |
984 'python', | 950 'python', |
985 '../../tools/js2c.py', | 951 '../../tools/js2c.py', |
986 '<@(_outputs)', | 952 '<@(_outputs)', |
987 'CORE', | 953 'CORE', |
988 '<(v8_compress_startup_data)', | 954 '<(v8_compress_startup_data)', |
989 '<@(library_files)' | 955 '<@(library_files)', |
| 956 '<@(i18n_library_files)', |
990 ], | 957 ], |
991 }, | 958 }, |
992 { | 959 { |
993 'action_name': 'js2c_experimental', | 960 'action_name': 'js2c_experimental', |
994 'inputs': [ | 961 'inputs': [ |
995 '../../tools/js2c.py', | 962 '../../tools/js2c.py', |
996 '<@(experimental_library_files)', | 963 '<@(experimental_library_files)', |
997 ], | 964 ], |
998 'outputs': [ | 965 'outputs': [ |
999 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 966 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1084 }], | 1051 }], |
1085 ['v8_compress_startup_data=="bz2"', { | 1052 ['v8_compress_startup_data=="bz2"', { |
1086 'libraries': [ | 1053 'libraries': [ |
1087 '-lbz2', | 1054 '-lbz2', |
1088 ] | 1055 ] |
1089 }], | 1056 }], |
1090 ], | 1057 ], |
1091 }, | 1058 }, |
1092 ], | 1059 ], |
1093 } | 1060 } |
OLD | NEW |