OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
8 'libgen_in_cc_file': '../lib/libgen_in.cc', | 8 'libgen_in_cc_file': '../lib/libgen_in.cc', |
9 'builtin_in_cc_file': '../bin/builtin_in.cc', | 9 'builtin_in_cc_file': '../bin/builtin_in.cc', |
10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', | 10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', |
11 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', | 11 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', |
12 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', | 12 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', |
13 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', | 13 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', |
14 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', | 14 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', |
15 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', | 15 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', |
16 'collection_dev_cc_file': '<(gen_source_dir)/collection_dev_gen.cc', | 16 'collection_dev_cc_file': '<(gen_source_dir)/collection_dev_gen.cc', |
17 'collection_dev_patch_cc_file': '<(gen_source_dir)/collection_dev_patch_gen.
cc', | 17 'collection_dev_patch_cc_file': '<(gen_source_dir)/collection_dev_patch_gen.
cc', |
18 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', | 18 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', |
19 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', | 19 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', |
20 'math_cc_file': '<(gen_source_dir)/math_gen.cc', | 20 'math_cc_file': '<(gen_source_dir)/math_gen.cc', |
21 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', | 21 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', |
22 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', | 22 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', |
23 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', | 23 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', |
24 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', | 24 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', |
25 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', | 25 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', |
26 'json_cc_file': '<(gen_source_dir)/json_gen.cc', | 26 'json_cc_file': '<(gen_source_dir)/json_gen.cc', |
| 27 'platform_cc_file': '<(gen_source_dir)/platform_gen.cc', |
| 28 'platform_patch_cc_file': '<(gen_source_dir)/platform_patch_gen.cc', |
27 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', | 29 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', |
28 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', | 30 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', |
29 'utf_cc_file': '<(gen_source_dir)/utf_gen.cc', | 31 'utf_cc_file': '<(gen_source_dir)/utf_gen.cc', |
30 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', | 32 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', |
31 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 33 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
32 'snapshot_test_dart_file': 'snapshot_test.dart', | 34 'snapshot_test_dart_file': 'snapshot_test.dart', |
33 }, | 35 }, |
34 'targets': [ | 36 'targets': [ |
35 { | 37 { |
36 'target_name': 'libdart_vm', | 38 'target_name': 'libdart_vm', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 'generate_collection_dev_patch_cc_file#host', | 106 'generate_collection_dev_patch_cc_file#host', |
105 'generate_convert_cc_file#host', | 107 'generate_convert_cc_file#host', |
106 'generate_convert_patch_cc_file#host', | 108 'generate_convert_patch_cc_file#host', |
107 'generate_math_cc_file#host', | 109 'generate_math_cc_file#host', |
108 'generate_math_patch_cc_file#host', | 110 'generate_math_patch_cc_file#host', |
109 'generate_isolate_cc_file#host', | 111 'generate_isolate_cc_file#host', |
110 'generate_isolate_patch_cc_file#host', | 112 'generate_isolate_patch_cc_file#host', |
111 'generate_json_cc_file#host', | 113 'generate_json_cc_file#host', |
112 'generate_mirrors_cc_file#host', | 114 'generate_mirrors_cc_file#host', |
113 'generate_mirrors_patch_cc_file#host', | 115 'generate_mirrors_patch_cc_file#host', |
| 116 'generate_platform_cc_file#host', |
114 'generate_typed_data_cc_file#host', | 117 'generate_typed_data_cc_file#host', |
115 'generate_typed_data_patch_cc_file#host', | 118 'generate_typed_data_patch_cc_file#host', |
116 'generate_utf_cc_file#host', | 119 'generate_utf_cc_file#host', |
117 ], | 120 ], |
118 'includes': [ | 121 'includes': [ |
119 '../lib/async_sources.gypi', | 122 '../lib/async_sources.gypi', |
120 '../lib/collection_sources.gypi', | 123 '../lib/collection_sources.gypi', |
121 '../lib/corelib_sources.gypi', | 124 '../lib/corelib_sources.gypi', |
122 '../lib/isolate_sources.gypi', | 125 '../lib/isolate_sources.gypi', |
123 '../lib/math_sources.gypi', | 126 '../lib/math_sources.gypi', |
124 '../lib/mirrors_sources.gypi', | 127 '../lib/mirrors_sources.gypi', |
| 128 '../lib/platform_sources.gypi', |
125 '../lib/typed_data_sources.gypi', | 129 '../lib/typed_data_sources.gypi', |
126 ], | 130 ], |
127 'sources': [ | 131 'sources': [ |
128 'bootstrap.cc', | 132 'bootstrap.cc', |
129 # Include generated source files. | 133 # Include generated source files. |
130 '<(async_cc_file)', | 134 '<(async_cc_file)', |
131 '<(async_patch_cc_file)', | 135 '<(async_patch_cc_file)', |
132 '<(corelib_cc_file)', | 136 '<(corelib_cc_file)', |
133 '<(corelib_patch_cc_file)', | 137 '<(corelib_patch_cc_file)', |
134 '<(collection_cc_file)', | 138 '<(collection_cc_file)', |
135 '<(collection_patch_cc_file)', | 139 '<(collection_patch_cc_file)', |
136 '<(collection_dev_cc_file)', | 140 '<(collection_dev_cc_file)', |
137 '<(collection_dev_patch_cc_file)', | 141 '<(collection_dev_patch_cc_file)', |
138 '<(convert_cc_file)', | 142 '<(convert_cc_file)', |
139 '<(convert_patch_cc_file)', | 143 '<(convert_patch_cc_file)', |
140 '<(math_cc_file)', | 144 '<(math_cc_file)', |
141 '<(math_patch_cc_file)', | 145 '<(math_patch_cc_file)', |
142 '<(isolate_cc_file)', | 146 '<(isolate_cc_file)', |
143 '<(isolate_patch_cc_file)', | 147 '<(isolate_patch_cc_file)', |
144 '<(json_cc_file)', | 148 '<(json_cc_file)', |
145 '<(mirrors_cc_file)', | 149 '<(mirrors_cc_file)', |
146 '<(mirrors_patch_cc_file)', | 150 '<(mirrors_patch_cc_file)', |
| 151 '<(platform_cc_file)', |
| 152 '<(platform_patch_cc_file)', |
147 '<(typed_data_cc_file)', | 153 '<(typed_data_cc_file)', |
148 '<(typed_data_patch_cc_file)', | 154 '<(typed_data_patch_cc_file)', |
149 '<(utf_cc_file)', | 155 '<(utf_cc_file)', |
150 ], | 156 ], |
151 'include_dirs': [ | 157 'include_dirs': [ |
152 '..', | 158 '..', |
153 ], | 159 ], |
154 }, | 160 }, |
155 { | 161 { |
156 'target_name': 'libdart_lib', | 162 'target_name': 'libdart_lib', |
157 'type': 'static_library', | 163 'type': 'static_library', |
158 'toolsets':['host', 'target'], | 164 'toolsets':['host', 'target'], |
159 'includes': [ | 165 'includes': [ |
160 '../lib/async_sources.gypi', | 166 '../lib/async_sources.gypi', |
161 '../lib/collection_sources.gypi', | 167 '../lib/collection_sources.gypi', |
162 '../lib/corelib_sources.gypi', | 168 '../lib/corelib_sources.gypi', |
163 '../lib/isolate_sources.gypi', | 169 '../lib/isolate_sources.gypi', |
164 '../lib/math_sources.gypi', | 170 '../lib/math_sources.gypi', |
165 '../lib/mirrors_sources.gypi', | 171 '../lib/mirrors_sources.gypi', |
| 172 '../lib/platform_sources.gypi', |
166 '../lib/typed_data_sources.gypi', | 173 '../lib/typed_data_sources.gypi', |
167 ], | 174 ], |
168 'sources': [ | 175 'sources': [ |
169 'bootstrap_nocorelib.cc', | 176 'bootstrap_nocorelib.cc', |
170 ], | 177 ], |
171 'include_dirs': [ | 178 'include_dirs': [ |
172 '..', | 179 '..', |
173 ], | 180 ], |
174 }, | 181 }, |
175 { | 182 { |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 '--include', 'vm/bootstrap.h', | 845 '--include', 'vm/bootstrap.h', |
839 '--var_name', 'dart::Bootstrap::json_source_paths_', | 846 '--var_name', 'dart::Bootstrap::json_source_paths_', |
840 '--library_name', 'dart:json', | 847 '--library_name', 'dart:json', |
841 '<@(_sources)', | 848 '<@(_sources)', |
842 ], | 849 ], |
843 'message': 'Generating ''<(json_cc_file)'' file.' | 850 'message': 'Generating ''<(json_cc_file)'' file.' |
844 }, | 851 }, |
845 ] | 852 ] |
846 }, | 853 }, |
847 { | 854 { |
| 855 'target_name': 'generate_platform_cc_file', |
| 856 'type': 'none', |
| 857 'toolsets':['host'], |
| 858 'includes': [ |
| 859 '../../sdk/lib/platform/platform_sources.gypi', |
| 860 ], |
| 861 'sources/': [ |
| 862 # Exclude all .[cc|h] files. |
| 863 # This is only here for reference. Excludes happen after |
| 864 # variable expansion, so the script has to do its own |
| 865 # exclude processing of the sources being passed. |
| 866 ['exclude', '\\.cc|h$'], |
| 867 ], |
| 868 'actions': [ |
| 869 { |
| 870 'action_name': 'generate_platform_cc', |
| 871 'inputs': [ |
| 872 '../tools/gen_library_src_paths.py', |
| 873 '<(libgen_in_cc_file)', |
| 874 '<@(_sources)', |
| 875 ], |
| 876 'outputs': [ |
| 877 '<(platform_cc_file)', |
| 878 ], |
| 879 'action': [ |
| 880 'python', |
| 881 'tools/gen_library_src_paths.py', |
| 882 '--output', '<(platform_cc_file)', |
| 883 '--input_cc', '<(libgen_in_cc_file)', |
| 884 '--include', 'vm/bootstrap.h', |
| 885 '--var_name', 'dart::Bootstrap::platform_source_paths_', |
| 886 '--library_name', 'dart:platform', |
| 887 '<@(_sources)', |
| 888 ], |
| 889 'message': 'Generating ''<(platform_cc_file)'' file.' |
| 890 }, |
| 891 ] |
| 892 }, |
| 893 { |
| 894 'target_name': 'generate_platform_patch_cc_file', |
| 895 'type': 'none', |
| 896 'toolsets':['host'], |
| 897 'includes': [ |
| 898 # Load the runtime implementation sources. |
| 899 '../lib/platform_sources.gypi', |
| 900 ], |
| 901 'sources/': [ |
| 902 # Exclude all .[cc|h] files. |
| 903 # This is only here for reference. Excludes happen after |
| 904 # variable expansion, so the script has to do its own |
| 905 # exclude processing of the sources being passed. |
| 906 ['exclude', '\\.cc|h$'], |
| 907 ], |
| 908 'actions': [ |
| 909 { |
| 910 'action_name': 'generate_platform_patch_cc', |
| 911 'inputs': [ |
| 912 '../tools/gen_library_src_paths.py', |
| 913 '<(libgen_in_cc_file)', |
| 914 '<@(_sources)', |
| 915 ], |
| 916 'outputs': [ |
| 917 '<(platform_patch_cc_file)', |
| 918 ], |
| 919 'action': [ |
| 920 'python', |
| 921 'tools/gen_library_src_paths.py', |
| 922 '--output', '<(platform_patch_cc_file)', |
| 923 '--input_cc', '<(libgen_in_cc_file)', |
| 924 '--include', 'vm/bootstrap.h', |
| 925 '--var_name', 'dart::Bootstrap::platform_patch_paths_', |
| 926 '--library_name', 'dart:platform', |
| 927 '<@(_sources)', |
| 928 ], |
| 929 'message': 'Generating ''<(platform_patch_cc_file)'' file.' |
| 930 }, |
| 931 ] |
| 932 }, |
| 933 { |
848 'target_name': 'generate_typed_data_cc_file', | 934 'target_name': 'generate_typed_data_cc_file', |
849 'type': 'none', | 935 'type': 'none', |
850 'toolsets':['host'], | 936 'toolsets':['host'], |
851 'includes': [ | 937 'includes': [ |
852 # Load the shared library sources. | 938 # Load the shared library sources. |
853 '../../sdk/lib/typed_data/typed_data_sources.gypi', | 939 '../../sdk/lib/typed_data/typed_data_sources.gypi', |
854 ], | 940 ], |
855 'sources/': [ | 941 'sources/': [ |
856 # Exclude all .[cc|h] files. | 942 # Exclude all .[cc|h] files. |
857 # This is only here for reference. Excludes happen after | 943 # This is only here for reference. Excludes happen after |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 '--include', 'INTENTIONALLY_LEFT_BLANK', | 1066 '--include', 'INTENTIONALLY_LEFT_BLANK', |
981 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 1067 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
982 '<(snapshot_test_dart_file)', | 1068 '<(snapshot_test_dart_file)', |
983 ], | 1069 ], |
984 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 1070 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
985 }, | 1071 }, |
986 ] | 1072 ] |
987 }, | 1073 }, |
988 ] | 1074 ] |
989 } | 1075 } |
OLD | NEW |