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