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 | 5 |
6 declare_args() { | 6 declare_args() { |
7 dart_io_support = false | 7 dart_io_support = false |
8 } | 8 } |
9 | 9 |
10 | 10 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 | 113 |
114 | 114 |
115 builtin_impl_sources_gypi = | 115 builtin_impl_sources_gypi = |
116 exec_script("../../tools/gypi_to_gn.py", | 116 exec_script("../../tools/gypi_to_gn.py", |
117 [rebase_path("builtin_impl_sources.gypi")], | 117 [rebase_path("builtin_impl_sources.gypi")], |
118 "scope", | 118 "scope", |
119 ["builtin_impl_sources.gypi"]) | 119 ["builtin_impl_sources.gypi"]) |
120 | 120 |
121 static_library("libdart_builtin") { | 121 static_library("libdart_builtin") { |
122 configs += ["..:dart_config"] | 122 configs += ["..:dart_config", "..:dart_product_config"] |
123 public_configs = [":libdart_builtin_config"] | 123 public_configs = [":libdart_builtin_config"] |
124 deps = [ | 124 deps = [ |
125 ":generate_builtin_cc_file", | 125 ":generate_builtin_cc_file", |
126 ":generate_io_cc_file", | 126 ":generate_io_cc_file", |
127 ":generate_io_patch_cc_file", | 127 ":generate_io_patch_cc_file", |
128 ] | 128 ] |
129 include_dirs = [ | 129 include_dirs = [ |
130 "..", | 130 "..", |
131 ] | 131 ] |
132 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) | 132 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
133 sources = [ | 133 sources = [ |
134 "log_android.cc", | 134 "log_android.cc", |
135 "log_linux.cc", | 135 "log_linux.cc", |
136 "log_macos.cc", | 136 "log_macos.cc", |
137 "log_win.cc", | 137 "log_win.cc", |
138 ] + builtin_impl_sources_gypi.sources | 138 ] + builtin_impl_sources_gypi.sources |
139 } | 139 } |
140 | 140 |
141 | 141 |
142 static_library("libdart_nosnapshot") { | 142 static_library("libdart_nosnapshot") { |
143 configs += ["..:dart_config"] | 143 configs += ["..:dart_config", |
| 144 "..:dart_product_config", |
| 145 "..:dart_precompiled_runtime_config"] |
144 deps = [ | 146 deps = [ |
145 "../vm:libdart_lib_nosnapshot", | 147 "../vm:libdart_lib_nosnapshot", |
146 "../vm:libdart_vm_nosnapshot", | 148 "../vm:libdart_vm_nosnapshot", |
147 "../vm:libdart_platform", | 149 "../vm:libdart_platform", |
148 "../third_party/double-conversion/src:libdouble_conversion", | 150 "../third_party/double-conversion/src:libdouble_conversion", |
149 "..:generate_version_cc_file", | 151 "..:generate_version_cc_file", |
150 ] | 152 ] |
151 | 153 |
152 sources = [ | 154 sources = [ |
153 "../include/dart_api.h", | 155 "../include/dart_api.h", |
(...skipping 10 matching lines...) Expand all Loading... |
164 include_dirs = [ | 166 include_dirs = [ |
165 "..", | 167 "..", |
166 ] | 168 ] |
167 | 169 |
168 defines = [ | 170 defines = [ |
169 "DART_SHARED_LIB", | 171 "DART_SHARED_LIB", |
170 ] | 172 ] |
171 } | 173 } |
172 | 174 |
173 | 175 |
| 176 static_library("libdart_nosnapshot_with_precompiler") { |
| 177 configs += ["..:dart_config", |
| 178 "..:dart_product_config", |
| 179 "..:dart_precompiler_config"] |
| 180 deps = [ |
| 181 "../vm:libdart_lib_nosnapshot_with_precompiler", |
| 182 "../vm:libdart_vm_nosnapshot_with_precompiler", |
| 183 "../vm:libdart_platform", |
| 184 "../third_party/double-conversion/src:libdouble_conversion", |
| 185 "..:generate_version_cc_file", |
| 186 ] |
| 187 |
| 188 sources = [ |
| 189 "../include/dart_api.h", |
| 190 "../include/dart_mirrors_api.h", |
| 191 "../include/dart_native_api.h", |
| 192 "../include/dart_tools_api.h", |
| 193 "../vm/dart_api_impl.cc", |
| 194 "../vm/debugger_api_impl.cc", |
| 195 "../vm/mirrors_api_impl.cc", |
| 196 "../vm/native_api_impl.cc", |
| 197 "$target_gen_dir/../version.cc", |
| 198 ] |
| 199 |
| 200 include_dirs = [ |
| 201 "..", |
| 202 ] |
| 203 |
| 204 defines = [ |
| 205 "DART_SHARED_LIB", |
| 206 ] |
| 207 } |
| 208 |
| 209 |
174 executable("gen_snapshot") { | 210 executable("gen_snapshot") { |
175 configs += ["..:dart_config"] | 211 configs += ["..:dart_config", |
| 212 "..:dart_product_config", |
| 213 "..:dart_precompiler_config"] |
176 deps = [ | 214 deps = [ |
177 ":gen_resources_cc", | 215 ":gen_resources_cc", |
178 ":gen_snapshot_dart_io", | 216 ":gen_snapshot_dart_io", |
179 ":generate_builtin_cc_file", | 217 ":generate_builtin_cc_file", |
180 ":generate_io_cc_file", | 218 ":generate_io_cc_file", |
181 ":generate_io_patch_cc_file", | 219 ":generate_io_patch_cc_file", |
182 ":libdart_builtin", | 220 ":libdart_builtin", |
183 ":libdart_nosnapshot", | 221 ":libdart_nosnapshot_with_precompiler", |
184 ] | 222 ] |
185 | 223 |
186 sources = [ | 224 sources = [ |
187 "address_sanitizer.cc", | 225 "address_sanitizer.cc", |
188 "gen_snapshot.cc", | 226 "gen_snapshot.cc", |
189 # Very limited native resolver provided. | 227 # Very limited native resolver provided. |
190 "builtin_common.cc", | 228 "builtin_common.cc", |
191 "builtin_gen_snapshot.cc", | 229 "builtin_gen_snapshot.cc", |
192 "builtin.cc", | 230 "builtin.cc", |
193 "builtin.h", | 231 "builtin.h", |
194 "vmservice_impl.cc", | 232 "vmservice_impl.cc", |
195 "vmservice_impl.h", | 233 "vmservice_impl.h", |
196 # Include generated source files. | 234 # Include generated source files. |
197 "$target_gen_dir/builtin_gen.cc", | 235 "$target_gen_dir/builtin_gen.cc", |
198 "$target_gen_dir/io_gen.cc", | 236 "$target_gen_dir/io_gen.cc", |
199 "$target_gen_dir/io_patch_gen.cc", | 237 "$target_gen_dir/io_patch_gen.cc", |
200 "$target_gen_dir/resources_gen.cc", | 238 "$target_gen_dir/resources_gen.cc", |
201 ] | 239 ] |
202 | 240 |
203 include_dirs = [ | 241 include_dirs = [ |
204 "..", | 242 "..", |
205 ] | 243 ] |
206 } | 244 } |
207 | 245 |
208 | 246 |
209 source_set("libdart_embedder_noio") { | 247 source_set("libdart_embedder_noio") { |
210 configs += ["..:dart_config",] | 248 configs += ["..:dart_config", |
| 249 "..:dart_product_config", |
| 250 "..:dart_precompiled_runtime_config"] |
211 deps = [ | 251 deps = [ |
212 "..:libdart", | 252 "..:libdart", |
213 "../vm:libdart_platform", | 253 "../vm:libdart_platform", |
214 ] | 254 ] |
215 } | 255 } |
216 | 256 |
217 io_impl_sources_gypi = | 257 io_impl_sources_gypi = |
218 exec_script("../../tools/gypi_to_gn.py", | 258 exec_script("../../tools/gypi_to_gn.py", |
219 [ rebase_path("io_impl_sources.gypi") ], | 259 [ rebase_path("io_impl_sources.gypi") ], |
220 "scope", | 260 "scope", |
221 [ "io_impl_sources.gypi" ]) | 261 [ "io_impl_sources.gypi" ]) |
222 | 262 |
223 | 263 |
224 # A source set for the implementation of 'dart:io' library | 264 # A source set for the implementation of 'dart:io' library |
225 # (without secure sockets) suitable for linking with gen_snapshot. | 265 # (without secure sockets) suitable for linking with gen_snapshot. |
226 source_set("gen_snapshot_dart_io") { | 266 source_set("gen_snapshot_dart_io") { |
227 configs += ["..:dart_config",] | 267 configs += ["..:dart_config", |
| 268 "..:dart_product_config", |
| 269 "..:dart_precompiler_config"] |
228 | 270 |
229 deps = [ | 271 deps = [ |
230 "//third_party/zlib", | 272 "//third_party/zlib", |
231 ] | 273 ] |
232 | 274 |
233 custom_sources_filter = [ | 275 custom_sources_filter = [ |
234 "*_test.cc", | 276 "*_test.cc", |
235 "*_test.h", | 277 "*_test.h", |
236 "builtin.cc", | 278 "builtin.cc", |
237 "builtin_common.cc", | 279 "builtin_common.cc", |
(...skipping 18 matching lines...) Expand all Loading... |
256 | 298 |
257 include_dirs = [ | 299 include_dirs = [ |
258 "..", | 300 "..", |
259 "//third_party" | 301 "//third_party" |
260 ] | 302 ] |
261 } | 303 } |
262 | 304 |
263 # A source set for the implementation of 'dart:io' library | 305 # A source set for the implementation of 'dart:io' library |
264 # (without secure sockets). | 306 # (without secure sockets). |
265 source_set("embedded_dart_io") { | 307 source_set("embedded_dart_io") { |
266 configs += ["..:dart_config",] | 308 configs += ["..:dart_config", |
| 309 "..:dart_product_config", |
| 310 "..:dart_precompiled_runtime_config"] |
267 | 311 |
268 custom_sources_filter = [ | 312 custom_sources_filter = [ |
269 "*_test.cc", | 313 "*_test.cc", |
270 "*_test.h", | 314 "*_test.h", |
271 "builtin.cc", | 315 "builtin.cc", |
272 "builtin_gen_snapshot.cc", | 316 "builtin_gen_snapshot.cc", |
273 ] | 317 ] |
274 if (!is_mac && !is_ios) { | 318 if (!is_mac && !is_ios) { |
275 # Dart tree uses *_macos.* instead of *_mac.* | 319 # Dart tree uses *_macos.* instead of *_mac.* |
276 custom_sources_filter += [ | 320 custom_sources_filter += [ |
(...skipping 24 matching lines...) Expand all Loading... |
301 "log_macos.cc", | 345 "log_macos.cc", |
302 "log_win.cc", | 346 "log_win.cc", |
303 "log.h", | 347 "log.h", |
304 ] | 348 ] |
305 | 349 |
306 include_dirs = [ | 350 include_dirs = [ |
307 "..", | 351 "..", |
308 "//third_party" | 352 "//third_party" |
309 ] | 353 ] |
310 } | 354 } |
OLD | NEW |