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 if (defined(is_fuchsia) && is_fuchsia) { |
7 # fuchsia toolchain definition are fixed. | |
8 if (!defined(is_fuchsia) || !is_fuchsia) { | |
9 libs = [ "dl" ] | |
10 | |
11 if (!is_android) { | |
12 libs += [ "pthread" ] | |
13 | |
14 if (is_linux) { | |
15 libs += [ "rt" ] | |
16 } | |
17 } | |
18 } else { | |
19 libs = [ | 7 libs = [ |
20 "magenta", | 8 "magenta", |
21 "runtime", | 9 "runtime", |
22 ] | 10 ] |
| 11 } else if (is_win) { |
| 12 libs = [ |
| 13 "advapi32.lib", |
| 14 "shell32.lib", |
| 15 "dbghelp.lib", |
| 16 ] |
| 17 } else { |
| 18 libs = [ "dl" ] |
| 19 if (!is_android) { |
| 20 libs += [ "pthread"] |
| 21 } |
| 22 if (is_linux) { |
| 23 libs += [ "rt" ] |
| 24 } |
23 } | 25 } |
24 } | 26 } |
25 | 27 |
26 | 28 |
27 static_library("libdart_platform") { | 29 static_library("libdart_platform") { |
28 configs += ["..:dart_config", | 30 configs += ["..:dart_config", |
29 "..:dart_maybe_product_config"] | 31 "..:dart_maybe_product_config"] |
30 public_configs = [":libdart_vm_config"] | 32 public_configs = [":libdart_vm_config"] |
31 | 33 |
32 platform_headers_gypi = | 34 platform_headers_gypi = |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], | 293 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], |
292 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], | 294 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], |
293 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], | 295 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], |
294 ["math", "math", true, "../../sdk/lib/math", "../lib"], | 296 ["math", "math", true, "../../sdk/lib/math", "../lib"], |
295 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], | 297 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], |
296 ["profiler", "profiler", false, "../../sdk/lib/profiler"], | 298 ["profiler", "profiler", false, "../../sdk/lib/profiler"], |
297 ["typed_data", "typed_data", false, "../lib"], | 299 ["typed_data", "typed_data", false, "../lib"], |
298 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], | 300 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], |
299 ] | 301 ] |
300 } | 302 } |
OLD | NEW |