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 config("libdart_vm_config") { | 5 config("libdart_vm_config") { |
6 # TODO(zra, jamesr): This check can go away after some problems with the | 6 # TODO(zra, jamesr): This check can go away after some problems with the |
7 # fuchsia toolchain definition are fixed. | 7 # fuchsia toolchain definition are fixed. |
8 if (!defined(is_fuchsia) || !is_fuchsia) { | 8 if (!defined(is_fuchsia) || !is_fuchsia) { |
9 libs = [ "dl" ] | 9 libs = [ "dl" ] |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 | 53 |
54 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", | 54 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", |
55 [rebase_path("vm_sources.gypi")], | 55 [rebase_path("vm_sources.gypi")], |
56 "scope", | 56 "scope", |
57 ["vm_sources.gypi"]) | 57 ["vm_sources.gypi"]) |
58 | 58 |
59 | 59 |
60 static_library("libdart_vm") { | 60 static_library("libdart_vm") { |
61 configs += ["..:dart_config", | 61 configs += ["..:dart_config", |
| 62 "..:dart_product_config"] |
| 63 public_configs = [":libdart_vm_config"] |
| 64 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
| 65 sources = vm_sources_list.sources |
| 66 include_dirs = [ |
| 67 "..", |
| 68 ] |
| 69 } |
| 70 |
| 71 |
| 72 static_library("libdart_vm_precompiled_runtime") { |
| 73 configs += ["..:dart_config", |
62 "..:dart_product_config", | 74 "..:dart_product_config", |
63 "..:dart_precompiled_runtime_config"] | 75 "..:dart_precompiled_runtime_config"] |
64 public_configs = [":libdart_vm_config"] | 76 public_configs = [":libdart_vm_config"] |
65 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) | 77 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
66 sources = vm_sources_list.sources | 78 sources = vm_sources_list.sources |
67 include_dirs = [ | 79 include_dirs = [ |
68 "..", | 80 "..", |
69 ] | 81 ] |
70 } | 82 } |
71 | 83 |
72 | 84 |
73 static_library("libdart_vm_nosnapshot") { | 85 static_library("libdart_vm_nosnapshot") { |
74 configs += ["..:dart_config", | 86 configs += ["..:dart_config", |
| 87 "..:dart_product_config"] |
| 88 public_configs = [":libdart_vm_config"] |
| 89 defines = [ "DART_NO_SNAPSHOT" ] |
| 90 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
| 91 sources = vm_sources_list.sources |
| 92 include_dirs = [ |
| 93 "..", |
| 94 ] |
| 95 } |
| 96 |
| 97 |
| 98 static_library("libdart_vm_nosnapshot_precompiled_runtime") { |
| 99 configs += ["..:dart_config", |
75 "..:dart_product_config", | 100 "..:dart_product_config", |
76 "..:dart_precompiled_runtime_config"] | 101 "..:dart_precompiled_runtime_config"] |
77 public_configs = [":libdart_vm_config"] | 102 public_configs = [":libdart_vm_config"] |
78 defines = [ "DART_NO_SNAPSHOT" ] | 103 defines = [ "DART_NO_SNAPSHOT" ] |
79 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) | 104 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
80 sources = vm_sources_list.sources | 105 sources = vm_sources_list.sources |
81 include_dirs = [ | 106 include_dirs = [ |
82 "..", | 107 "..", |
83 ] | 108 ] |
84 } | 109 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 "..:dart_product_config", | 228 "..:dart_product_config", |
204 "..:dart_precompiler_config" ] | 229 "..:dart_precompiler_config" ] |
205 deps = libdeps | 230 deps = libdeps |
206 sources = libsources + [ "bootstrap.cc"] + liboutputs | 231 sources = libsources + [ "bootstrap.cc"] + liboutputs |
207 include_dirs = [ | 232 include_dirs = [ |
208 "..", | 233 "..", |
209 ] | 234 ] |
210 } | 235 } |
211 static_library("libdart_lib") { | 236 static_library("libdart_lib") { |
212 configs += ["..:dart_config", | 237 configs += ["..:dart_config", |
| 238 "..:dart_product_config"] |
| 239 sources = libsources + [ "bootstrap_nocore.cc"] |
| 240 include_dirs = [ |
| 241 "..", |
| 242 ] |
| 243 } |
| 244 static_library("libdart_lib_precompiled_runtime") { |
| 245 configs += ["..:dart_config", |
213 "..:dart_product_config", | 246 "..:dart_product_config", |
214 "..:dart_precompiled_runtime_config"] | 247 "..:dart_precompiled_runtime_config"] |
215 sources = libsources + [ "bootstrap_nocore.cc"] | 248 sources = libsources + [ "bootstrap_nocore.cc"] |
216 include_dirs = [ | 249 include_dirs = [ |
217 "..", | 250 "..", |
218 ] | 251 ] |
219 } | 252 } |
220 } | 253 } |
221 | 254 |
222 | 255 |
223 generate_core_libraries("core_libraries") { | 256 generate_core_libraries("core_libraries") { |
224 sources = [ | 257 sources = [ |
225 ["async", "async", true, "../../sdk/lib/async", "../lib"], | 258 ["async", "async", true, "../../sdk/lib/async", "../lib"], |
226 ["core", "core", true, "../../sdk/lib/core", "../lib"], | 259 ["core", "core", true, "../../sdk/lib/core", "../lib"], |
227 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"], | 260 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"], |
228 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"], | 261 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"], |
229 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], | 262 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], |
230 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], | 263 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], |
231 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], | 264 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], |
232 ["math", "math", true, "../../sdk/lib/math", "../lib"], | 265 ["math", "math", true, "../../sdk/lib/math", "../lib"], |
233 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], | 266 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], |
234 ["profiler", "profiler", false, "../../sdk/lib/profiler"], | 267 ["profiler", "profiler", false, "../../sdk/lib/profiler"], |
235 ["typed_data", "typed_data", false, "../lib"], | 268 ["typed_data", "typed_data", false, "../lib"], |
236 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], | 269 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], |
237 ] | 270 ] |
238 } | 271 } |
OLD | NEW |