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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 output = "$target_gen_dir/io_gen.cc" | 97 output = "$target_gen_dir/io_gen.cc" |
98 } | 98 } |
99 | 99 |
100 gen_library_src_path("generate_io_patch_cc_file") { | 100 gen_library_src_path("generate_io_patch_cc_file") { |
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") { | |
108 name = "html" | |
109 kind = "source" | |
110 sources = [ | |
111 "../../sdk/lib/html/dartium/html_dartium.dart", | |
112 ] | |
113 output = "$target_gen_dir/html_gen.cc" | |
114 } | |
115 | |
116 gen_library_src_path("generate_html_common_cc_file") { | 107 gen_library_src_path("generate_html_common_cc_file") { |
117 name = "html_common" | 108 name = "html_common" |
118 kind = "source" | 109 kind = "source" |
119 sources = [ | 110 sources = [ |
120 "../../sdk/lib/html/html_common/conversions.dart", | 111 "../../sdk/lib/html/html_common/conversions.dart", |
121 "../../sdk/lib/html/html_common/conversions_dartium.dart", | |
122 "../../sdk/lib/html/html_common/css_class_set.dart", | 112 "../../sdk/lib/html/html_common/css_class_set.dart", |
123 "../../sdk/lib/html/html_common/device.dart", | 113 "../../sdk/lib/html/html_common/device.dart", |
124 "../../sdk/lib/html/html_common/filtered_element_list.dart", | 114 "../../sdk/lib/html/html_common/filtered_element_list.dart", |
125 "../../sdk/lib/html/html_common/html_common.dart", | 115 "../../sdk/lib/html/html_common/html_common.dart", |
126 "../../sdk/lib/html/html_common/lists.dart", | 116 "../../sdk/lib/html/html_common/lists.dart", |
127 ] | 117 ] |
128 output = "$target_gen_dir/html_common_gen.cc" | 118 output = "$target_gen_dir/html_common_gen.cc" |
129 } | 119 } |
130 | 120 |
131 gen_library_src_path("generate_js_cc_file") { | |
132 name = "js" | |
133 kind = "source" | |
134 sources = [ | |
135 "../../sdk/lib/js/dartium/js_dartium.dart", | |
136 ] | |
137 output = "$target_gen_dir/js_gen.cc" | |
138 } | |
139 | |
140 gen_library_src_path("generate_js_util_cc_file") { | |
141 name = "js_util" | |
142 kind = "source" | |
143 sources = [ | |
144 "../../sdk/lib/js_util/dartium/js_util_dartium.dart", | |
145 ] | |
146 output = "$target_gen_dir/js_util_gen.cc" | |
147 } | |
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") { | |
159 name = "indexed_db" | |
160 kind = "source" | |
161 sources = [ | |
162 "../../sdk/lib/indexed_db/dartium/indexed_db_dartium.dart", | |
163 ] | |
164 output = "$target_gen_dir/indexed_db_gen.cc" | |
165 } | |
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 | |
177 gen_library_src_path("generate_web_gl_cc_file") { | |
178 name = "web_gl" | |
179 kind = "source" | |
180 sources = [ | |
181 "../../sdk/lib/web_gl/dartium/web_gl_dartium.dart", | |
182 ] | |
183 output = "$target_gen_dir/web_gl_gen.cc" | |
184 } | |
185 | |
siva
2017/08/30 22:45:24
I think you should check with jacobr@ and matanl@
terry
2017/08/31 14:29:30
I think I see your point we should be pointing to
| |
186 gen_library_src_path("generate_metadata_cc_file") { | 121 gen_library_src_path("generate_metadata_cc_file") { |
187 name = "metadata" | 122 name = "metadata" |
188 library_name = "metadata.dart" | 123 library_name = "metadata.dart" |
189 kind = "source" | 124 kind = "source" |
190 sources = [ | 125 sources = [ |
191 "../../sdk/lib/html/html_common/metadata.dart", | 126 "../../sdk/lib/html/html_common/metadata.dart", |
192 ] | 127 ] |
193 output = "$target_gen_dir/metadata_gen.cc" | 128 output = "$target_gen_dir/metadata_gen.cc" |
194 } | 129 } |
195 | 130 |
196 gen_library_src_path("generate_web_sql_cc_file") { | |
197 name = "web_sql" | |
198 kind = "source" | |
199 sources = [ | |
200 "../../sdk/lib/web_sql/dartium/web_sql_dartium.dart", | |
201 ] | |
202 output = "$target_gen_dir/web_sql_gen.cc" | |
203 } | |
204 | |
205 gen_library_src_path("generate_svg_cc_file") { | |
206 name = "svg" | |
207 kind = "source" | |
208 sources = [ | |
209 "../../sdk/lib/svg/dartium/svg_dartium.dart", | |
210 ] | |
211 output = "$target_gen_dir/svg_gen.cc" | |
212 } | |
213 | |
214 gen_library_src_path("generate_web_audio_cc_file") { | |
215 name = "web_audio" | |
216 kind = "source" | |
217 sources = [ | |
218 "../../sdk/lib/web_audio/dartium/web_audio_dartium.dart", | |
219 ] | |
220 output = "$target_gen_dir/web_audio_gen.cc" | |
221 } | |
222 | |
223 config("libdart_builtin_config") { | 131 config("libdart_builtin_config") { |
224 if (!is_win) { | 132 if (!is_win) { |
225 libs = [ "dl" ] | 133 libs = [ "dl" ] |
226 } | 134 } |
227 if (is_android) { | 135 if (is_android) { |
228 libs += [ | 136 libs += [ |
229 "android", | 137 "android", |
230 "log", | 138 "log", |
231 ] | 139 ] |
232 } | 140 } |
233 } | 141 } |
234 | 142 |
235 template("build_libdart_builtin") { | 143 template("build_libdart_builtin") { |
236 extra_configs = [] | 144 extra_configs = [] |
237 if (defined(invoker.extra_configs)) { | 145 if (defined(invoker.extra_configs)) { |
238 extra_configs += invoker.extra_configs | 146 extra_configs += invoker.extra_configs |
239 } | 147 } |
240 static_library(target_name) { | 148 static_library(target_name) { |
241 configs += [ "..:dart_config" ] + extra_configs | 149 configs += [ "..:dart_config" ] + extra_configs |
242 if (is_fuchsia) { | 150 if (is_fuchsia) { |
243 configs -= [ "//build/config:symbol_visibility_hidden" ] | 151 configs -= [ "//build/config:symbol_visibility_hidden" ] |
244 } | 152 } |
245 public_configs = [ ":libdart_builtin_config" ] | 153 public_configs = [ ":libdart_builtin_config" ] |
246 deps = [ | 154 deps = [ |
247 ":generate_blink_cc_file", | |
248 ":generate_builtin_cc_file", | 155 ":generate_builtin_cc_file", |
249 ":generate_cached_patches_cc_file", | |
250 ":generate_html_cc_file", | |
251 ":generate_html_common_cc_file", | 156 ":generate_html_common_cc_file", |
252 ":generate_indexed_db_cc_file", | |
253 ":generate_io_cc_file", | 157 ":generate_io_cc_file", |
254 ":generate_io_patch_cc_file", | 158 ":generate_io_patch_cc_file", |
255 ":generate_js_cc_file", | |
256 ":generate_js_util_cc_file", | |
257 ":generate_metadata_cc_file", | 159 ":generate_metadata_cc_file", |
258 ":generate_svg_cc_file", | |
259 ":generate_web_audio_cc_file", | |
260 ":generate_web_gl_cc_file", | |
261 ":generate_web_sql_cc_file", | |
262 ] | 160 ] |
263 include_dirs = [ ".." ] | 161 include_dirs = [ ".." ] |
264 set_sources_assignment_filter([ | 162 set_sources_assignment_filter([ |
265 "*_test.cc", | 163 "*_test.cc", |
266 "*_test.h", | 164 "*_test.h", |
267 ]) | 165 ]) |
268 sources = [ | 166 sources = [ |
269 "log_android.cc", | 167 "log_android.cc", |
270 "log_fuchsia.cc", | 168 "log_fuchsia.cc", |
271 "log_linux.cc", | 169 "log_linux.cc", |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
793 } | 691 } |
794 } | 692 } |
795 | 693 |
796 dart_executable("dart_bootstrap") { | 694 dart_executable("dart_bootstrap") { |
797 extra_configs = [ | 695 extra_configs = [ |
798 "..:dart_precompiler_config", | 696 "..:dart_precompiler_config", |
799 "..:dart_no_snapshot_config", | 697 "..:dart_no_snapshot_config", |
800 ] | 698 ] |
801 extra_deps = [ | 699 extra_deps = [ |
802 ":gen_resources_cc", | 700 ":gen_resources_cc", |
803 ":generate_blink_cc_file", | |
804 ":generate_builtin_cc_file", | 701 ":generate_builtin_cc_file", |
805 ":generate_cached_patches_cc_file", | |
806 ":generate_html_cc_file", | |
807 ":generate_html_common_cc_file", | 702 ":generate_html_common_cc_file", |
808 ":generate_indexed_db_cc_file", | |
809 ":generate_io_cc_file", | 703 ":generate_io_cc_file", |
810 ":generate_io_patch_cc_file", | 704 ":generate_io_patch_cc_file", |
811 ":generate_js_cc_file", | |
812 ":generate_js_util_cc_file", | |
813 ":generate_metadata_cc_file", | 705 ":generate_metadata_cc_file", |
814 ":generate_svg_cc_file", | |
815 ":generate_web_audio_cc_file", | |
816 ":generate_web_gl_cc_file", | |
817 ":generate_web_sql_cc_file", | |
818 "..:libdart_nosnapshot_with_precompiler", | 706 "..:libdart_nosnapshot_with_precompiler", |
819 ] | 707 ] |
820 extra_defines = [ "NO_OBSERVATORY" ] | 708 extra_defines = [ "NO_OBSERVATORY" ] |
821 extra_sources = [ | 709 extra_sources = [ |
822 "builtin.cc", | 710 "builtin.cc", |
823 "builtin.h", | 711 "builtin.h", |
824 "dfe.cc", | 712 "dfe.cc", |
825 "dfe.h", | 713 "dfe.h", |
826 "loader.cc", | 714 "loader.cc", |
827 "loader.h", | 715 "loader.h", |
828 "gzip.cc", | 716 "gzip.cc", |
829 "gzip.h", | 717 "gzip.h", |
830 "observatory_assets_empty.cc", | 718 "observatory_assets_empty.cc", |
831 "snapshot_empty.cc", | 719 "snapshot_empty.cc", |
832 | 720 |
833 # Include generated source files. | 721 # Include generated source files. |
834 "$target_gen_dir/blink_gen.cc", | |
835 "$target_gen_dir/builtin_gen.cc", | 722 "$target_gen_dir/builtin_gen.cc", |
836 "$target_gen_dir/cached_patches_gen.cc", | |
837 "$target_gen_dir/html_common_gen.cc", | 723 "$target_gen_dir/html_common_gen.cc", |
838 "$target_gen_dir/html_gen.cc", | |
839 "$target_gen_dir/indexed_db_gen.cc", | |
840 "$target_gen_dir/io_gen.cc", | 724 "$target_gen_dir/io_gen.cc", |
841 "$target_gen_dir/io_patch_gen.cc", | 725 "$target_gen_dir/io_patch_gen.cc", |
842 "$target_gen_dir/js_gen.cc", | |
843 "$target_gen_dir/js_util_gen.cc", | |
844 "$target_gen_dir/metadata_gen.cc", | 726 "$target_gen_dir/metadata_gen.cc", |
845 "$target_gen_dir/resources_gen.cc", | 727 "$target_gen_dir/resources_gen.cc", |
846 "$target_gen_dir/svg_gen.cc", | |
847 "$target_gen_dir/web_audio_gen.cc", | |
848 "$target_gen_dir/web_gl_gen.cc", | |
849 "$target_gen_dir/web_sql_gen.cc", | |
850 ] | 728 ] |
851 } | 729 } |
852 | 730 |
853 if (is_fuchsia) { | 731 if (is_fuchsia) { |
854 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") | 732 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
855 | 733 |
856 copy("hello_fuchsia") { | 734 copy("hello_fuchsia") { |
857 sources = [ | 735 sources = [ |
858 hello_fuchsia_source, | 736 hello_fuchsia_source, |
859 ] | 737 ] |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1047 ] | 925 ] |
1048 if (is_linux || is_android) { | 926 if (is_linux || is_android) { |
1049 cflags = [ "-fPIC" ] | 927 cflags = [ "-fPIC" ] |
1050 } | 928 } |
1051 if (is_win) { | 929 if (is_win) { |
1052 libs = [ "dart.lib" ] | 930 libs = [ "dart.lib" ] |
1053 abs_root_out_dir = rebase_path(root_out_dir) | 931 abs_root_out_dir = rebase_path(root_out_dir) |
1054 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 932 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
1055 } | 933 } |
1056 } | 934 } |
OLD | NEW |