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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 'BUILDING_V8_SHARED', | 846 'BUILDING_V8_SHARED', |
857 'V8_SHARED', | 847 'V8_SHARED', |
858 ], | 848 ], |
859 }], | 849 }], |
860 ['v8_postmortem_support=="true"', { | 850 ['v8_postmortem_support=="true"', { |
861 'sources': [ | 851 'sources': [ |
862 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', | 852 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', |
863 ] | 853 ] |
864 }], | 854 }], |
865 ['v8_enable_i18n_support==1', { | 855 ['v8_enable_i18n_support==1', { |
866 'sources': [ | |
867 '../../src/extensions/i18n/i18n-extension.cc', | |
868 '../../src/extensions/i18n/i18n-extension.h', | |
869 ], | |
870 'dependencies': [ | 856 'dependencies': [ |
871 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | 857 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', |
872 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | 858 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
873 ] | 859 ] |
874 }, { # v8_enable_i18n_support==0 | 860 }, { # v8_enable_i18n_support==0 |
875 'sources!': [ | 861 'sources!': [ |
876 '../../src/i18n.cc', | 862 '../../src/i18n.cc', |
877 '../../src/i18n.h', | 863 '../../src/i18n.h', |
878 ], | 864 ], |
879 }], | 865 }], |
880 ['OS=="win" and v8_enable_i18n_support==1', { | 866 ['OS=="win" and v8_enable_i18n_support==1', { |
881 'dependencies': [ | 867 'dependencies': [ |
882 '<(DEPTH)/third_party/icu/icu.gyp:icudata', | 868 '<(DEPTH)/third_party/icu/icu.gyp:icudata', |
883 ], | 869 ], |
884 }], | 870 }], |
885 ], | 871 ], |
886 }, | 872 }, |
887 { | 873 { |
888 'target_name': 'js2c', | 874 'target_name': 'js2c', |
889 'type': 'none', | 875 'type': 'none', |
890 'conditions': [ | 876 'conditions': [ |
891 ['want_separate_host_toolset==1', { | 877 ['want_separate_host_toolset==1', { |
892 'toolsets': ['host'], | 878 'toolsets': ['host'], |
893 }, { | 879 }, { |
894 'toolsets': ['target'], | 880 'toolsets': ['target'], |
895 }], | 881 }], |
896 ['v8_enable_i18n_support==1', { | 882 ['v8_enable_i18n_support==1', { |
897 'actions': [{ | 883 'variables': { |
898 'action_name': 'js2c_i18n', | 884 'i18n_library_files': [ |
899 'inputs': [ | 885 '../../src/i18n.js', |
900 '../../tools/js2c.py', | |
901 '<@(i18n_library_files)', | |
902 ], | 886 ], |
903 'outputs': [ | 887 }, |
904 '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', | 888 }, { |
905 ], | 889 'variables': { |
906 'action': [ | 890 'i18n_library_files': [], |
907 'python', | 891 }, |
908 '../../tools/js2c.py', | |
909 '<@(_outputs)', | |
910 'I18N', | |
911 '<(v8_compress_startup_data)', | |
912 '<@(i18n_library_files)' | |
913 ], | |
914 }], | |
915 }], | 892 }], |
916 ], | 893 ], |
917 'variables': { | 894 'variables': { |
918 'library_files': [ | 895 'library_files': [ |
919 '../../src/runtime.js', | 896 '../../src/runtime.js', |
920 '../../src/v8natives.js', | 897 '../../src/v8natives.js', |
921 '../../src/array.js', | 898 '../../src/array.js', |
922 '../../src/string.js', | 899 '../../src/string.js', |
923 '../../src/uri.js', | 900 '../../src/uri.js', |
924 '../../src/math.js', | 901 '../../src/math.js', |
(...skipping 13 matching lines...) Expand all Loading... |
938 '../../src/macros.py', | 915 '../../src/macros.py', |
939 '../../src/symbol.js', | 916 '../../src/symbol.js', |
940 '../../src/proxy.js', | 917 '../../src/proxy.js', |
941 '../../src/collection.js', | 918 '../../src/collection.js', |
942 '../../src/object-observe.js', | 919 '../../src/object-observe.js', |
943 '../../src/generator.js', | 920 '../../src/generator.js', |
944 '../../src/array-iterator.js', | 921 '../../src/array-iterator.js', |
945 '../../src/harmony-string.js', | 922 '../../src/harmony-string.js', |
946 '../../src/harmony-array.js', | 923 '../../src/harmony-array.js', |
947 ], | 924 ], |
948 'i18n_library_files': [ | |
949 '../../src/extensions/i18n/header.js', | |
950 '../../src/extensions/i18n/globals.js', | |
951 '../../src/extensions/i18n/locale.js', | |
952 '../../src/extensions/i18n/collator.js', | |
953 '../../src/extensions/i18n/number-format.js', | |
954 '../../src/extensions/i18n/date-format.js', | |
955 '../../src/extensions/i18n/break-iterator.js', | |
956 '../../src/extensions/i18n/i18n-utils.js', | |
957 '../../src/extensions/i18n/overrides.js', | |
958 '../../src/extensions/i18n/footer.js', | |
959 ], | |
960 }, | 925 }, |
961 'actions': [ | 926 'actions': [ |
962 { | 927 { |
963 'action_name': 'js2c', | 928 'action_name': 'js2c', |
964 'inputs': [ | 929 'inputs': [ |
965 '../../tools/js2c.py', | 930 '../../tools/js2c.py', |
966 '<@(library_files)', | 931 '<@(library_files)', |
| 932 '<@(i18n_library_files)', |
967 ], | 933 ], |
968 'outputs': [ | 934 'outputs': [ |
969 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 935 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
970 ], | 936 ], |
971 'action': [ | 937 'action': [ |
972 'python', | 938 'python', |
973 '../../tools/js2c.py', | 939 '../../tools/js2c.py', |
974 '<@(_outputs)', | 940 '<@(_outputs)', |
975 'CORE', | 941 'CORE', |
976 '<(v8_compress_startup_data)', | 942 '<(v8_compress_startup_data)', |
977 '<@(library_files)' | 943 '<@(library_files)', |
| 944 '<@(i18n_library_files)', |
978 ], | 945 ], |
979 }, | 946 }, |
980 { | 947 { |
981 'action_name': 'js2c_experimental', | 948 'action_name': 'js2c_experimental', |
982 'inputs': [ | 949 'inputs': [ |
983 '../../tools/js2c.py', | 950 '../../tools/js2c.py', |
984 '<@(experimental_library_files)', | 951 '<@(experimental_library_files)', |
985 ], | 952 ], |
986 'outputs': [ | 953 'outputs': [ |
987 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 954 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 }], | 1039 }], |
1073 ['v8_compress_startup_data=="bz2"', { | 1040 ['v8_compress_startup_data=="bz2"', { |
1074 'libraries': [ | 1041 'libraries': [ |
1075 '-lbz2', | 1042 '-lbz2', |
1076 ] | 1043 ] |
1077 }], | 1044 }], |
1078 ], | 1045 ], |
1079 }, | 1046 }, |
1080 ], | 1047 ], |
1081 } | 1048 } |
OLD | NEW |