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", "..:dart_product_config", "..:dart_precompiled_r
untime_config"] |
144 deps = [ | 144 deps = [ |
145 "../vm:libdart_lib_nosnapshot", | 145 "../vm:libdart_lib_nosnapshot", |
146 "../vm:libdart_vm_nosnapshot", | 146 "../vm:libdart_vm_nosnapshot", |
147 "../vm:libdart_platform", | 147 "../vm:libdart_platform", |
148 "../third_party/double-conversion/src:libdouble_conversion", | 148 "../third_party/double-conversion/src:libdouble_conversion", |
149 "..:generate_version_cc_file", | 149 "..:generate_version_cc_file", |
150 ] | 150 ] |
151 | 151 |
152 sources = [ | 152 sources = [ |
153 "../include/dart_api.h", | 153 "../include/dart_api.h", |
(...skipping 10 matching lines...) Expand all Loading... |
164 include_dirs = [ | 164 include_dirs = [ |
165 "..", | 165 "..", |
166 ] | 166 ] |
167 | 167 |
168 defines = [ | 168 defines = [ |
169 "DART_SHARED_LIB", | 169 "DART_SHARED_LIB", |
170 ] | 170 ] |
171 } | 171 } |
172 | 172 |
173 | 173 |
| 174 static_library("libdart_nosnapshot_with_precompiler") { |
| 175 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiler_c
onfig"] |
| 176 deps = [ |
| 177 "../vm:libdart_lib_nosnapshot_with_precompiler", |
| 178 "../vm:libdart_vm_nosnapshot_with_precompiler", |
| 179 "../vm:libdart_platform", |
| 180 "../third_party/double-conversion/src:libdouble_conversion", |
| 181 "..:generate_version_cc_file", |
| 182 ] |
| 183 |
| 184 sources = [ |
| 185 "../include/dart_api.h", |
| 186 "../include/dart_mirrors_api.h", |
| 187 "../include/dart_native_api.h", |
| 188 "../include/dart_tools_api.h", |
| 189 "../vm/dart_api_impl.cc", |
| 190 "../vm/debugger_api_impl.cc", |
| 191 "../vm/mirrors_api_impl.cc", |
| 192 "../vm/native_api_impl.cc", |
| 193 "$target_gen_dir/../version.cc", |
| 194 ] |
| 195 |
| 196 include_dirs = [ |
| 197 "..", |
| 198 ] |
| 199 |
| 200 defines = [ |
| 201 "DART_SHARED_LIB", |
| 202 ] |
| 203 } |
| 204 |
| 205 |
174 executable("gen_snapshot") { | 206 executable("gen_snapshot") { |
175 configs += ["..:dart_config"] | 207 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiler_c
onfig"] |
176 deps = [ | 208 deps = [ |
177 ":gen_resources_cc", | 209 ":gen_resources_cc", |
178 ":gen_snapshot_dart_io", | 210 ":gen_snapshot_dart_io", |
179 ":generate_builtin_cc_file", | 211 ":generate_builtin_cc_file", |
180 ":generate_io_cc_file", | 212 ":generate_io_cc_file", |
181 ":generate_io_patch_cc_file", | 213 ":generate_io_patch_cc_file", |
182 ":libdart_builtin", | 214 ":libdart_builtin", |
183 ":libdart_nosnapshot", | 215 ":libdart_nosnapshot_with_precompiler", |
184 ] | 216 ] |
185 | 217 |
186 sources = [ | 218 sources = [ |
187 "address_sanitizer.cc", | 219 "address_sanitizer.cc", |
188 "gen_snapshot.cc", | 220 "gen_snapshot.cc", |
189 # Very limited native resolver provided. | 221 # Very limited native resolver provided. |
190 "builtin_common.cc", | 222 "builtin_common.cc", |
191 "builtin_gen_snapshot.cc", | 223 "builtin_gen_snapshot.cc", |
192 "builtin.cc", | 224 "builtin.cc", |
193 "builtin.h", | 225 "builtin.h", |
194 "vmservice_impl.cc", | 226 "vmservice_impl.cc", |
195 "vmservice_impl.h", | 227 "vmservice_impl.h", |
196 # Include generated source files. | 228 # Include generated source files. |
197 "$target_gen_dir/builtin_gen.cc", | 229 "$target_gen_dir/builtin_gen.cc", |
198 "$target_gen_dir/io_gen.cc", | 230 "$target_gen_dir/io_gen.cc", |
199 "$target_gen_dir/io_patch_gen.cc", | 231 "$target_gen_dir/io_patch_gen.cc", |
200 "$target_gen_dir/resources_gen.cc", | 232 "$target_gen_dir/resources_gen.cc", |
201 ] | 233 ] |
202 | 234 |
203 include_dirs = [ | 235 include_dirs = [ |
204 "..", | 236 "..", |
205 ] | 237 ] |
206 } | 238 } |
207 | 239 |
208 | 240 |
209 source_set("libdart_embedder_noio") { | 241 source_set("libdart_embedder_noio") { |
210 configs += ["..:dart_config",] | 242 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiled_r
untime_config"] |
211 deps = [ | 243 deps = [ |
212 "..:libdart", | 244 "..:libdart", |
213 "../vm:libdart_platform", | 245 "../vm:libdart_platform", |
214 ] | 246 ] |
215 } | 247 } |
216 | 248 |
217 io_impl_sources_gypi = | 249 io_impl_sources_gypi = |
218 exec_script("../../tools/gypi_to_gn.py", | 250 exec_script("../../tools/gypi_to_gn.py", |
219 [ rebase_path("io_impl_sources.gypi") ], | 251 [ rebase_path("io_impl_sources.gypi") ], |
220 "scope", | 252 "scope", |
221 [ "io_impl_sources.gypi" ]) | 253 [ "io_impl_sources.gypi" ]) |
222 | 254 |
223 | 255 |
224 # A source set for the implementation of 'dart:io' library | 256 # A source set for the implementation of 'dart:io' library |
225 # (without secure sockets) suitable for linking with gen_snapshot. | 257 # (without secure sockets) suitable for linking with gen_snapshot. |
226 source_set("gen_snapshot_dart_io") { | 258 source_set("gen_snapshot_dart_io") { |
227 configs += ["..:dart_config",] | 259 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiler_c
onfig"] |
228 | 260 |
229 deps = [ | 261 deps = [ |
230 "//third_party/zlib", | 262 "//third_party/zlib", |
231 ] | 263 ] |
232 | 264 |
233 custom_sources_filter = [ | 265 custom_sources_filter = [ |
234 "*_test.cc", | 266 "*_test.cc", |
235 "*_test.h", | 267 "*_test.h", |
236 "builtin.cc", | 268 "builtin.cc", |
237 "builtin_common.cc", | 269 "builtin_common.cc", |
(...skipping 18 matching lines...) Expand all Loading... |
256 | 288 |
257 include_dirs = [ | 289 include_dirs = [ |
258 "..", | 290 "..", |
259 "//third_party" | 291 "//third_party" |
260 ] | 292 ] |
261 } | 293 } |
262 | 294 |
263 # A source set for the implementation of 'dart:io' library | 295 # A source set for the implementation of 'dart:io' library |
264 # (without secure sockets). | 296 # (without secure sockets). |
265 source_set("embedded_dart_io") { | 297 source_set("embedded_dart_io") { |
266 configs += ["..:dart_config",] | 298 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiled_r
untime_config"] |
267 | 299 |
268 custom_sources_filter = [ | 300 custom_sources_filter = [ |
269 "*_test.cc", | 301 "*_test.cc", |
270 "*_test.h", | 302 "*_test.h", |
271 "builtin.cc", | 303 "builtin.cc", |
272 "builtin_gen_snapshot.cc", | 304 "builtin_gen_snapshot.cc", |
273 ] | 305 ] |
274 if (!is_mac && !is_ios) { | 306 if (!is_mac && !is_ios) { |
275 # Dart tree uses *_macos.* instead of *_mac.* | 307 # Dart tree uses *_macos.* instead of *_mac.* |
276 custom_sources_filter += [ | 308 custom_sources_filter += [ |
(...skipping 24 matching lines...) Expand all Loading... |
301 "log_macos.cc", | 333 "log_macos.cc", |
302 "log_win.cc", | 334 "log_win.cc", |
303 "log.h", | 335 "log.h", |
304 ] | 336 ] |
305 | 337 |
306 include_dirs = [ | 338 include_dirs = [ |
307 "..", | 339 "..", |
308 "//third_party" | 340 "//third_party" |
309 ] | 341 ] |
310 } | 342 } |
OLD | NEW |