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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 'defines': [ | 782 'defines': [ |
773 'BUILDING_V8_SHARED', | 783 'BUILDING_V8_SHARED', |
774 'V8_SHARED', | 784 'V8_SHARED', |
775 ], | 785 ], |
776 }], | 786 }], |
777 ['v8_postmortem_support=="true"', { | 787 ['v8_postmortem_support=="true"', { |
778 'sources': [ | 788 'sources': [ |
779 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', | 789 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', |
780 ] | 790 ] |
781 }], | 791 }], |
| 792 ['v8_enable_i18n_support==1', { |
| 793 'sources': [ |
| 794 '../../src/extensions/i18n/break-iterator.cc', |
| 795 '../../src/extensions/i18n/break-iterator.h', |
| 796 '../../src/extensions/i18n/collator.cc', |
| 797 '../../src/extensions/i18n/collator.h', |
| 798 '../../src/extensions/i18n/date-format.cc', |
| 799 '../../src/extensions/i18n/date-format.h', |
| 800 '../../src/extensions/i18n/i18n-extension.cc', |
| 801 '../../src/extensions/i18n/i18n-extension.h', |
| 802 '../../src/extensions/i18n/i18n-utils.cc', |
| 803 '../../src/extensions/i18n/i18n-utils.h', |
| 804 '../../src/extensions/i18n/locale.cc', |
| 805 '../../src/extensions/i18n/locale.h', |
| 806 '../../src/extensions/i18n/number-format.cc', |
| 807 '../../src/extensions/i18n/number-format.h', |
| 808 ], |
| 809 'dependencies': [ |
| 810 '<(DEPTH)/third_party/icu/icu.gyp:*', |
| 811 ] |
| 812 }], |
782 ], | 813 ], |
783 }, | 814 }, |
784 { | 815 { |
785 'target_name': 'js2c', | 816 'target_name': 'js2c', |
786 'type': 'none', | 817 'type': 'none', |
787 'conditions': [ | 818 'conditions': [ |
788 ['want_separate_host_toolset==1', { | 819 ['want_separate_host_toolset==1', { |
789 'toolsets': ['host'], | 820 'toolsets': ['host'], |
790 }, { | 821 }, { |
791 'toolsets': ['target'], | 822 'toolsets': ['target'], |
792 }], | 823 }], |
| 824 ['v8_enable_i18n_support==1', { |
| 825 'actions': [{ |
| 826 'action_name': 'js2c_i18n', |
| 827 'inputs': [ |
| 828 '../../tools/js2c.py', |
| 829 '<@(i18n_library_files)', |
| 830 ], |
| 831 'outputs': [ |
| 832 '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', |
| 833 ], |
| 834 'action': [ |
| 835 'python', |
| 836 '../../tools/js2c.py', |
| 837 '<@(_outputs)', |
| 838 'I18N', |
| 839 '<(v8_compress_startup_data)', |
| 840 '<@(i18n_library_files)' |
| 841 ], |
| 842 }], |
| 843 }], |
793 ], | 844 ], |
794 'variables': { | 845 'variables': { |
795 'library_files': [ | 846 'library_files': [ |
796 '../../src/runtime.js', | 847 '../../src/runtime.js', |
797 '../../src/v8natives.js', | 848 '../../src/v8natives.js', |
798 '../../src/array.js', | 849 '../../src/array.js', |
799 '../../src/string.js', | 850 '../../src/string.js', |
800 '../../src/uri.js', | 851 '../../src/uri.js', |
801 '../../src/math.js', | 852 '../../src/math.js', |
802 '../../src/messages.js', | 853 '../../src/messages.js', |
803 '../../src/apinatives.js', | 854 '../../src/apinatives.js', |
804 '../../src/debug-debugger.js', | 855 '../../src/debug-debugger.js', |
805 '../../src/mirror-debugger.js', | 856 '../../src/mirror-debugger.js', |
806 '../../src/liveedit-debugger.js', | 857 '../../src/liveedit-debugger.js', |
807 '../../src/date.js', | 858 '../../src/date.js', |
808 '../../src/json.js', | 859 '../../src/json.js', |
809 '../../src/regexp.js', | 860 '../../src/regexp.js', |
810 '../../src/macros.py', | 861 '../../src/macros.py', |
811 ], | 862 ], |
812 'experimental_library_files': [ | 863 'experimental_library_files': [ |
813 '../../src/macros.py', | 864 '../../src/macros.py', |
814 '../../src/symbol.js', | 865 '../../src/symbol.js', |
815 '../../src/proxy.js', | 866 '../../src/proxy.js', |
816 '../../src/collection.js', | 867 '../../src/collection.js', |
817 '../../src/object-observe.js', | 868 '../../src/object-observe.js', |
818 '../../src/arraybuffer.js', | 869 '../../src/arraybuffer.js', |
819 '../../src/typedarray.js', | 870 '../../src/typedarray.js', |
820 '../../src/generator.js' | 871 '../../src/generator.js' |
821 ], | 872 ], |
| 873 'i18n_library_files': [ |
| 874 '../../src/extensions/i18n/break-iterator.js', |
| 875 '../../src/extensions/i18n/collator.js', |
| 876 '../../src/extensions/i18n/date-format.js', |
| 877 '../../src/extensions/i18n/footer.js', |
| 878 '../../src/extensions/i18n/globals.js', |
| 879 '../../src/extensions/i18n/header.js', |
| 880 '../../src/extensions/i18n/i18n-utils.js', |
| 881 '../../src/extensions/i18n/locale.js', |
| 882 '../../src/extensions/i18n/number-format.js', |
| 883 '../../src/extensions/i18n/overrides.js', |
| 884 ], |
822 }, | 885 }, |
823 'actions': [ | 886 'actions': [ |
824 { | 887 { |
825 'action_name': 'js2c', | 888 'action_name': 'js2c', |
826 'inputs': [ | 889 'inputs': [ |
827 '../../tools/js2c.py', | 890 '../../tools/js2c.py', |
828 '<@(library_files)', | 891 '<@(library_files)', |
829 ], | 892 ], |
830 'outputs': [ | 893 'outputs': [ |
831 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 894 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 }], | 997 }], |
935 ['v8_compress_startup_data=="bz2"', { | 998 ['v8_compress_startup_data=="bz2"', { |
936 'libraries': [ | 999 'libraries': [ |
937 '-lbz2', | 1000 '-lbz2', |
938 ] | 1001 ] |
939 }], | 1002 }], |
940 ], | 1003 ], |
941 }, | 1004 }, |
942 ], | 1005 ], |
943 } | 1006 } |
OLD | NEW |