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 }], |
132 ], | 137 ], |
133 'dependencies': [ | 138 'dependencies': [ |
134 'v8_base.<(v8_target_arch)', | 139 'v8_base.<(v8_target_arch)', |
135 ], | 140 ], |
136 'include_dirs+': [ | 141 'include_dirs+': [ |
137 '../../src', | 142 '../../src', |
138 ], | 143 ], |
139 'sources': [ | 144 'sources': [ |
140 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 145 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
141 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 146 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 }, { | 190 }, { |
186 'toolsets': ['target'], | 191 'toolsets': ['target'], |
187 'dependencies': ['js2c'], | 192 'dependencies': ['js2c'], |
188 }], | 193 }], |
189 ['component=="shared_library"', { | 194 ['component=="shared_library"', { |
190 'defines': [ | 195 'defines': [ |
191 'BUILDING_V8_SHARED', | 196 'BUILDING_V8_SHARED', |
192 'V8_SHARED', | 197 'V8_SHARED', |
193 ], | 198 ], |
194 }], | 199 }], |
| 200 ['v8_enable_i18n_support==1', { |
| 201 'sources': [ |
| 202 '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', |
| 203 ], |
| 204 }], |
195 ] | 205 ] |
196 }, | 206 }, |
197 { | 207 { |
198 'target_name': 'v8_base.<(v8_target_arch)', | 208 'target_name': 'v8_base.<(v8_target_arch)', |
199 'type': 'static_library', | 209 'type': 'static_library', |
200 'variables': { | 210 'variables': { |
201 'optimize': 'max', | 211 'optimize': 'max', |
202 }, | 212 }, |
203 'include_dirs+': [ | 213 'include_dirs+': [ |
204 '../../src', | 214 '../../src', |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 'BUILDING_V8_SHARED', | 817 'BUILDING_V8_SHARED', |
808 'V8_SHARED', | 818 'V8_SHARED', |
809 ], | 819 ], |
810 }], | 820 }], |
811 ['v8_postmortem_support=="true"', { | 821 ['v8_postmortem_support=="true"', { |
812 'sources': [ | 822 'sources': [ |
813 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', | 823 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', |
814 ] | 824 ] |
815 }], | 825 }], |
816 ['v8_enable_i18n_support==1', { | 826 ['v8_enable_i18n_support==1', { |
| 827 'sources': [ |
| 828 '../../src/extensions/i18n/i18n-extension.cc', |
| 829 '../../src/extensions/i18n/i18n-extension.h', |
| 830 ], |
817 'dependencies': [ | 831 'dependencies': [ |
818 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | 832 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', |
819 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | 833 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
820 ] | 834 ] |
821 }, { # v8_enable_i18n_support==0 | 835 }, { # v8_enable_i18n_support==0 |
822 'sources!': [ | 836 'sources!': [ |
823 '../../src/i18n.cc', | 837 '../../src/i18n.cc', |
824 '../../src/i18n.h', | 838 '../../src/i18n.h', |
825 ], | 839 ], |
826 }], | 840 }], |
827 ['OS=="win" and v8_enable_i18n_support==1', { | 841 ['OS=="win" and v8_enable_i18n_support==1', { |
828 'dependencies': [ | 842 'dependencies': [ |
829 '<(DEPTH)/third_party/icu/icu.gyp:icudata', | 843 '<(DEPTH)/third_party/icu/icu.gyp:icudata', |
830 ], | 844 ], |
831 }], | 845 }], |
832 ], | 846 ], |
833 }, | 847 }, |
834 { | 848 { |
835 'target_name': 'js2c', | 849 'target_name': 'js2c', |
836 'type': 'none', | 850 'type': 'none', |
837 'conditions': [ | 851 'conditions': [ |
838 ['want_separate_host_toolset==1', { | 852 ['want_separate_host_toolset==1', { |
839 'toolsets': ['host'], | 853 'toolsets': ['host'], |
840 }, { | 854 }, { |
841 'toolsets': ['target'], | 855 'toolsets': ['target'], |
842 }], | 856 }], |
843 ['v8_enable_i18n_support==1', { | 857 ['v8_enable_i18n_support==1', { |
844 'variables': { | 858 'actions': [{ |
845 'i18n_library_files': [ | 859 'action_name': 'js2c_i18n', |
846 '../../src/i18n.js', | 860 'inputs': [ |
| 861 '../../tools/js2c.py', |
| 862 '<@(i18n_library_files)', |
847 ], | 863 ], |
848 }, | 864 'outputs': [ |
849 }, { | 865 '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', |
850 'variables': { | 866 ], |
851 'i18n_library_files': [], | 867 'action': [ |
852 }, | 868 'python', |
| 869 '../../tools/js2c.py', |
| 870 '<@(_outputs)', |
| 871 'I18N', |
| 872 '<(v8_compress_startup_data)', |
| 873 '<@(i18n_library_files)' |
| 874 ], |
| 875 }], |
853 }], | 876 }], |
854 ], | 877 ], |
855 'variables': { | 878 'variables': { |
856 'library_files': [ | 879 'library_files': [ |
857 '../../src/runtime.js', | 880 '../../src/runtime.js', |
858 '../../src/v8natives.js', | 881 '../../src/v8natives.js', |
859 '../../src/array.js', | 882 '../../src/array.js', |
860 '../../src/string.js', | 883 '../../src/string.js', |
861 '../../src/uri.js', | 884 '../../src/uri.js', |
862 '../../src/math.js', | 885 '../../src/math.js', |
(...skipping 13 matching lines...) Expand all Loading... |
876 '../../src/macros.py', | 899 '../../src/macros.py', |
877 '../../src/symbol.js', | 900 '../../src/symbol.js', |
878 '../../src/proxy.js', | 901 '../../src/proxy.js', |
879 '../../src/collection.js', | 902 '../../src/collection.js', |
880 '../../src/object-observe.js', | 903 '../../src/object-observe.js', |
881 '../../src/generator.js', | 904 '../../src/generator.js', |
882 '../../src/array-iterator.js', | 905 '../../src/array-iterator.js', |
883 '../../src/harmony-string.js', | 906 '../../src/harmony-string.js', |
884 '../../src/harmony-array.js', | 907 '../../src/harmony-array.js', |
885 ], | 908 ], |
| 909 'i18n_library_files': [ |
| 910 '../../src/extensions/i18n/header.js', |
| 911 '../../src/extensions/i18n/globals.js', |
| 912 '../../src/extensions/i18n/locale.js', |
| 913 '../../src/extensions/i18n/collator.js', |
| 914 '../../src/extensions/i18n/number-format.js', |
| 915 '../../src/extensions/i18n/date-format.js', |
| 916 '../../src/extensions/i18n/break-iterator.js', |
| 917 '../../src/extensions/i18n/i18n-utils.js', |
| 918 '../../src/extensions/i18n/overrides.js', |
| 919 '../../src/extensions/i18n/footer.js', |
| 920 ], |
886 }, | 921 }, |
887 'actions': [ | 922 'actions': [ |
888 { | 923 { |
889 'action_name': 'js2c', | 924 'action_name': 'js2c', |
890 'inputs': [ | 925 'inputs': [ |
891 '../../tools/js2c.py', | 926 '../../tools/js2c.py', |
892 '<@(library_files)', | 927 '<@(library_files)', |
893 '<@(i18n_library_files)', | |
894 ], | 928 ], |
895 'outputs': [ | 929 'outputs': [ |
896 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 930 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
897 ], | 931 ], |
898 'action': [ | 932 'action': [ |
899 'python', | 933 'python', |
900 '../../tools/js2c.py', | 934 '../../tools/js2c.py', |
901 '<@(_outputs)', | 935 '<@(_outputs)', |
902 'CORE', | 936 'CORE', |
903 '<(v8_compress_startup_data)', | 937 '<(v8_compress_startup_data)', |
904 '<@(library_files)', | 938 '<@(library_files)' |
905 '<@(i18n_library_files)', | |
906 ], | 939 ], |
907 }, | 940 }, |
908 { | 941 { |
909 'action_name': 'js2c_experimental', | 942 'action_name': 'js2c_experimental', |
910 'inputs': [ | 943 'inputs': [ |
911 '../../tools/js2c.py', | 944 '../../tools/js2c.py', |
912 '<@(experimental_library_files)', | 945 '<@(experimental_library_files)', |
913 ], | 946 ], |
914 'outputs': [ | 947 'outputs': [ |
915 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 948 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 }], | 1033 }], |
1001 ['v8_compress_startup_data=="bz2"', { | 1034 ['v8_compress_startup_data=="bz2"', { |
1002 'libraries': [ | 1035 'libraries': [ |
1003 '-lbz2', | 1036 '-lbz2', |
1004 ] | 1037 ] |
1005 }], | 1038 }], |
1006 ], | 1039 ], |
1007 }, | 1040 }, |
1008 ], | 1041 ], |
1009 } | 1042 } |
OLD | NEW |