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