OLD | NEW |
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, 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 import("../../build/compiled_action.gni") | 5 import("../../build/compiled_action.gni") |
6 import("../../sdk/lib/io/io_sources.gni") | 6 import("../../sdk/lib/io/io_sources.gni") |
7 import("../runtime_args.gni") | 7 import("../runtime_args.gni") |
8 import("../vm/vm_sources.gni") | 8 import("../vm/vm_sources.gni") |
9 import("builtin_impl_sources.gni") | 9 import("builtin_impl_sources.gni") |
10 import("builtin_sources.gni") | 10 import("builtin_sources.gni") |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 name = "io" | 101 name = "io" |
102 kind = "patch" | 102 kind = "patch" |
103 sources = io_runtime_sources | 103 sources = io_runtime_sources |
104 output = "$target_gen_dir/io_patch_gen.cc" | 104 output = "$target_gen_dir/io_patch_gen.cc" |
105 } | 105 } |
106 | 106 |
107 gen_library_src_path("generate_html_cc_file") { | 107 gen_library_src_path("generate_html_cc_file") { |
108 name = "html" | 108 name = "html" |
109 kind = "source" | 109 kind = "source" |
110 sources = [ | 110 sources = [ |
111 "../../sdk/lib/html/dartium/html_dartium.dart", | 111 "../../sdk/lib/html/dart2js/html_dart2js.dart", |
112 ] | 112 ] |
113 output = "$target_gen_dir/html_gen.cc" | 113 output = "$target_gen_dir/html_gen.cc" |
114 } | 114 } |
115 | 115 |
116 gen_library_src_path("generate_html_common_cc_file") { | 116 gen_library_src_path("generate_html_common_cc_file") { |
117 name = "html_common" | 117 name = "html_common" |
118 kind = "source" | 118 kind = "source" |
119 sources = [ | 119 sources = [ |
120 "../../sdk/lib/html/html_common/conversions.dart", | 120 "../../sdk/lib/html/html_common/conversions.dart", |
121 "../../sdk/lib/html/html_common/conversions_dartium.dart", | 121 "../../sdk/lib/html/html_common/conversions_dart2js.dart", |
122 "../../sdk/lib/html/html_common/css_class_set.dart", | 122 "../../sdk/lib/html/html_common/css_class_set.dart", |
123 "../../sdk/lib/html/html_common/device.dart", | 123 "../../sdk/lib/html/html_common/device.dart", |
124 "../../sdk/lib/html/html_common/filtered_element_list.dart", | 124 "../../sdk/lib/html/html_common/filtered_element_list.dart", |
125 "../../sdk/lib/html/html_common/html_common.dart", | 125 "../../sdk/lib/html/html_common/html_common.dart", |
126 "../../sdk/lib/html/html_common/lists.dart", | 126 "../../sdk/lib/html/html_common/lists.dart", |
127 ] | 127 ] |
128 output = "$target_gen_dir/html_common_gen.cc" | 128 output = "$target_gen_dir/html_common_gen.cc" |
129 } | 129 } |
130 | 130 |
131 gen_library_src_path("generate_js_cc_file") { | 131 gen_library_src_path("generate_js_cc_file") { |
132 name = "js" | 132 name = "js" |
133 kind = "source" | 133 kind = "source" |
134 sources = [ | 134 sources = [ |
135 "../../sdk/lib/js/dartium/js_dartium.dart", | 135 "../../sdk/lib/js/dart2js/js_dart2js.dart", |
136 ] | 136 ] |
137 output = "$target_gen_dir/js_gen.cc" | 137 output = "$target_gen_dir/js_gen.cc" |
138 } | 138 } |
139 | 139 |
140 gen_library_src_path("generate_js_util_cc_file") { | 140 gen_library_src_path("generate_js_util_cc_file") { |
141 name = "js_util" | 141 name = "js_util" |
142 kind = "source" | 142 kind = "source" |
143 sources = [ | 143 sources = [ |
144 "../../sdk/lib/js_util/dartium/js_util_dartium.dart", | 144 "../../sdk/lib/js_util/dart2js/js_util_dart2js.dart", |
145 ] | 145 ] |
146 output = "$target_gen_dir/js_util_gen.cc" | 146 output = "$target_gen_dir/js_util_gen.cc" |
147 } | 147 } |
148 | 148 |
149 gen_library_src_path("generate_blink_cc_file") { | |
150 name = "_blink" | |
151 kind = "source" | |
152 sources = [ | |
153 "../../sdk/lib/_blink/dartium/_blink_dartium.dart", | |
154 ] | |
155 output = "$target_gen_dir/blink_gen.cc" | |
156 } | |
157 | |
158 gen_library_src_path("generate_indexed_db_cc_file") { | 149 gen_library_src_path("generate_indexed_db_cc_file") { |
159 name = "indexed_db" | 150 name = "indexed_db" |
160 kind = "source" | 151 kind = "source" |
161 sources = [ | 152 sources = [ |
162 "../../sdk/lib/indexed_db/dartium/indexed_db_dartium.dart", | 153 "../../sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart", |
163 ] | 154 ] |
164 output = "$target_gen_dir/indexed_db_gen.cc" | 155 output = "$target_gen_dir/indexed_db_gen.cc" |
165 } | 156 } |
166 | 157 |
167 gen_library_src_path("generate_cached_patches_cc_file") { | |
168 name = "cached_patches" | |
169 library_name = "cached_patches.dart" | |
170 kind = "source" | |
171 sources = [ | |
172 "../../sdk/lib/js/dartium/cached_patches.dart", | |
173 ] | |
174 output = "$target_gen_dir/cached_patches_gen.cc" | |
175 } | |
176 | |
177 gen_library_src_path("generate_web_gl_cc_file") { | 158 gen_library_src_path("generate_web_gl_cc_file") { |
178 name = "web_gl" | 159 name = "web_gl" |
179 kind = "source" | 160 kind = "source" |
180 sources = [ | 161 sources = [ |
181 "../../sdk/lib/web_gl/dartium/web_gl_dartium.dart", | 162 "../../sdk/lib/web_gl/dart2js/web_gl_dart2js.dart", |
182 ] | 163 ] |
183 output = "$target_gen_dir/web_gl_gen.cc" | 164 output = "$target_gen_dir/web_gl_gen.cc" |
184 } | 165 } |
185 | 166 |
186 gen_library_src_path("generate_metadata_cc_file") { | 167 gen_library_src_path("generate_metadata_cc_file") { |
187 name = "metadata" | 168 name = "metadata" |
188 library_name = "metadata.dart" | 169 library_name = "metadata.dart" |
189 kind = "source" | 170 kind = "source" |
190 sources = [ | 171 sources = [ |
191 "../../sdk/lib/html/html_common/metadata.dart", | 172 "../../sdk/lib/html/html_common/metadata.dart", |
192 ] | 173 ] |
193 output = "$target_gen_dir/metadata_gen.cc" | 174 output = "$target_gen_dir/metadata_gen.cc" |
194 } | 175 } |
195 | 176 |
196 gen_library_src_path("generate_web_sql_cc_file") { | 177 gen_library_src_path("generate_web_sql_cc_file") { |
197 name = "web_sql" | 178 name = "web_sql" |
198 kind = "source" | 179 kind = "source" |
199 sources = [ | 180 sources = [ |
200 "../../sdk/lib/web_sql/dartium/web_sql_dartium.dart", | 181 "../../sdk/lib/web_sql/dart2js/web_sql_dart2js.dart", |
201 ] | 182 ] |
202 output = "$target_gen_dir/web_sql_gen.cc" | 183 output = "$target_gen_dir/web_sql_gen.cc" |
203 } | 184 } |
204 | 185 |
205 gen_library_src_path("generate_svg_cc_file") { | 186 gen_library_src_path("generate_svg_cc_file") { |
206 name = "svg" | 187 name = "svg" |
207 kind = "source" | 188 kind = "source" |
208 sources = [ | 189 sources = [ |
209 "../../sdk/lib/svg/dartium/svg_dartium.dart", | 190 "../../sdk/lib/svg/dart2js/svg_dart2js.dart", |
210 ] | 191 ] |
211 output = "$target_gen_dir/svg_gen.cc" | 192 output = "$target_gen_dir/svg_gen.cc" |
212 } | 193 } |
213 | 194 |
214 gen_library_src_path("generate_web_audio_cc_file") { | 195 gen_library_src_path("generate_web_audio_cc_file") { |
215 name = "web_audio" | 196 name = "web_audio" |
216 kind = "source" | 197 kind = "source" |
217 sources = [ | 198 sources = [ |
218 "../../sdk/lib/web_audio/dartium/web_audio_dartium.dart", | 199 "../../sdk/lib/web_audio/dart2js/web_audio_dart2js.dart", |
219 ] | 200 ] |
220 output = "$target_gen_dir/web_audio_gen.cc" | 201 output = "$target_gen_dir/web_audio_gen.cc" |
221 } | 202 } |
222 | 203 |
223 config("libdart_builtin_config") { | 204 config("libdart_builtin_config") { |
224 if (!is_win) { | 205 if (!is_win) { |
225 libs = [ "dl" ] | 206 libs = [ "dl" ] |
226 } | 207 } |
227 if (is_android) { | 208 if (is_android) { |
228 libs += [ | 209 libs += [ |
229 "android", | 210 "android", |
230 "log", | 211 "log", |
231 ] | 212 ] |
232 } | 213 } |
233 } | 214 } |
234 | 215 |
235 template("build_libdart_builtin") { | 216 template("build_libdart_builtin") { |
236 extra_configs = [] | 217 extra_configs = [] |
237 if (defined(invoker.extra_configs)) { | 218 if (defined(invoker.extra_configs)) { |
238 extra_configs += invoker.extra_configs | 219 extra_configs += invoker.extra_configs |
239 } | 220 } |
240 static_library(target_name) { | 221 static_library(target_name) { |
241 configs += [ "..:dart_config" ] + extra_configs | 222 configs += [ "..:dart_config" ] + extra_configs |
242 if (is_fuchsia) { | 223 if (is_fuchsia) { |
243 configs -= [ "//build/config:symbol_visibility_hidden" ] | 224 configs -= [ "//build/config:symbol_visibility_hidden" ] |
244 } | 225 } |
245 public_configs = [ ":libdart_builtin_config" ] | 226 public_configs = [ ":libdart_builtin_config" ] |
246 deps = [ | 227 deps = [ |
247 ":generate_blink_cc_file", | |
248 ":generate_builtin_cc_file", | 228 ":generate_builtin_cc_file", |
249 ":generate_cached_patches_cc_file", | |
250 ":generate_html_cc_file", | 229 ":generate_html_cc_file", |
251 ":generate_html_common_cc_file", | 230 ":generate_html_common_cc_file", |
252 ":generate_indexed_db_cc_file", | 231 ":generate_indexed_db_cc_file", |
253 ":generate_io_cc_file", | 232 ":generate_io_cc_file", |
254 ":generate_io_patch_cc_file", | 233 ":generate_io_patch_cc_file", |
255 ":generate_js_cc_file", | 234 ":generate_js_cc_file", |
256 ":generate_js_util_cc_file", | 235 ":generate_js_util_cc_file", |
257 ":generate_metadata_cc_file", | 236 ":generate_metadata_cc_file", |
258 ":generate_svg_cc_file", | 237 ":generate_svg_cc_file", |
259 ":generate_web_audio_cc_file", | 238 ":generate_web_audio_cc_file", |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 } | 772 } |
794 } | 773 } |
795 | 774 |
796 dart_executable("dart_bootstrap") { | 775 dart_executable("dart_bootstrap") { |
797 extra_configs = [ | 776 extra_configs = [ |
798 "..:dart_precompiler_config", | 777 "..:dart_precompiler_config", |
799 "..:dart_no_snapshot_config", | 778 "..:dart_no_snapshot_config", |
800 ] | 779 ] |
801 extra_deps = [ | 780 extra_deps = [ |
802 ":gen_resources_cc", | 781 ":gen_resources_cc", |
803 ":generate_blink_cc_file", | |
804 ":generate_builtin_cc_file", | 782 ":generate_builtin_cc_file", |
805 ":generate_cached_patches_cc_file", | |
806 ":generate_html_cc_file", | 783 ":generate_html_cc_file", |
807 ":generate_html_common_cc_file", | 784 ":generate_html_common_cc_file", |
808 ":generate_indexed_db_cc_file", | 785 ":generate_indexed_db_cc_file", |
809 ":generate_io_cc_file", | 786 ":generate_io_cc_file", |
810 ":generate_io_patch_cc_file", | 787 ":generate_io_patch_cc_file", |
811 ":generate_js_cc_file", | 788 ":generate_js_cc_file", |
812 ":generate_js_util_cc_file", | 789 ":generate_js_util_cc_file", |
813 ":generate_metadata_cc_file", | 790 ":generate_metadata_cc_file", |
814 ":generate_svg_cc_file", | 791 ":generate_svg_cc_file", |
815 ":generate_web_audio_cc_file", | 792 ":generate_web_audio_cc_file", |
816 ":generate_web_gl_cc_file", | 793 ":generate_web_gl_cc_file", |
817 ":generate_web_sql_cc_file", | 794 ":generate_web_sql_cc_file", |
818 "..:libdart_nosnapshot_with_precompiler", | 795 "..:libdart_nosnapshot_with_precompiler", |
819 ] | 796 ] |
820 extra_defines = [ "NO_OBSERVATORY" ] | 797 extra_defines = [ "NO_OBSERVATORY" ] |
821 extra_sources = [ | 798 extra_sources = [ |
822 "builtin.cc", | 799 "builtin.cc", |
823 "builtin.h", | 800 "builtin.h", |
824 "dfe.cc", | 801 "dfe.cc", |
825 "dfe.h", | 802 "dfe.h", |
826 "loader.cc", | 803 "loader.cc", |
827 "loader.h", | 804 "loader.h", |
828 "gzip.cc", | 805 "gzip.cc", |
829 "gzip.h", | 806 "gzip.h", |
830 "observatory_assets_empty.cc", | 807 "observatory_assets_empty.cc", |
831 "snapshot_empty.cc", | 808 "snapshot_empty.cc", |
832 | 809 |
833 # Include generated source files. | 810 # Include generated source files. |
834 "$target_gen_dir/blink_gen.cc", | |
835 "$target_gen_dir/builtin_gen.cc", | 811 "$target_gen_dir/builtin_gen.cc", |
836 "$target_gen_dir/cached_patches_gen.cc", | |
837 "$target_gen_dir/html_common_gen.cc", | 812 "$target_gen_dir/html_common_gen.cc", |
838 "$target_gen_dir/html_gen.cc", | 813 "$target_gen_dir/html_gen.cc", |
839 "$target_gen_dir/indexed_db_gen.cc", | 814 "$target_gen_dir/indexed_db_gen.cc", |
840 "$target_gen_dir/io_gen.cc", | 815 "$target_gen_dir/io_gen.cc", |
841 "$target_gen_dir/io_patch_gen.cc", | 816 "$target_gen_dir/io_patch_gen.cc", |
842 "$target_gen_dir/js_gen.cc", | 817 "$target_gen_dir/js_gen.cc", |
843 "$target_gen_dir/js_util_gen.cc", | 818 "$target_gen_dir/js_util_gen.cc", |
844 "$target_gen_dir/metadata_gen.cc", | 819 "$target_gen_dir/metadata_gen.cc", |
845 "$target_gen_dir/resources_gen.cc", | 820 "$target_gen_dir/resources_gen.cc", |
846 "$target_gen_dir/svg_gen.cc", | 821 "$target_gen_dir/svg_gen.cc", |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 ] | 1022 ] |
1048 if (is_linux || is_android) { | 1023 if (is_linux || is_android) { |
1049 cflags = [ "-fPIC" ] | 1024 cflags = [ "-fPIC" ] |
1050 } | 1025 } |
1051 if (is_win) { | 1026 if (is_win) { |
1052 libs = [ "dart.lib" ] | 1027 libs = [ "dart.lib" ] |
1053 abs_root_out_dir = rebase_path(root_out_dir) | 1028 abs_root_out_dir = rebase_path(root_out_dir) |
1054 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 1029 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
1055 } | 1030 } |
1056 } | 1031 } |
OLD | NEW |