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 libs = [ | 6 libs = [ |
7 "pthread", | |
8 "rt", | |
9 "dl", | 7 "dl", |
10 ] | 8 ] |
| 9 |
| 10 if (!is_android) { |
| 11 libs += [ |
| 12 "pthread", |
| 13 "rt", |
| 14 ] |
| 15 } |
11 } | 16 } |
12 | 17 |
13 | 18 |
14 static_library("libdart_platform") { | 19 static_library("libdart_platform") { |
15 configs += ["..:dart_config"] | 20 configs += ["..:dart_config"] |
16 public_configs = [":libdart_vm_config"] | 21 public_configs = [":libdart_vm_config"] |
17 | 22 |
18 platform_headers_gypi = | 23 platform_headers_gypi = |
19 exec_script("../../tools/gypi_to_gn.py", | 24 exec_script("../../tools/gypi_to_gn.py", |
20 [rebase_path("../platform/platform_headers.gypi")], | 25 [rebase_path("../platform/platform_headers.gypi")], |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 output = "$target_gen_dir/service_gen.cc" | 197 output = "$target_gen_dir/service_gen.cc" |
193 outputs = [ output, ] | 198 outputs = [ output, ] |
194 | 199 |
195 args = [ | 200 args = [ |
196 "--output", rebase_path(output, root_build_dir), | 201 "--output", rebase_path(output, root_build_dir), |
197 "--outer_namespace", "dart", | 202 "--outer_namespace", "dart", |
198 "--table_name", "service", | 203 "--table_name", "service", |
199 "--root_prefix", rebase_path("service/", root_build_dir)] + | 204 "--root_prefix", rebase_path("service/", root_build_dir)] + |
200 rebase_path(sources, root_build_dir) | 205 rebase_path(sources, root_build_dir) |
201 } | 206 } |
OLD | NEW |