OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 group("dart") { | 5 group("dart") { |
| 6 testonly = true |
6 deps = [ | 7 deps = [ |
| 8 ":core", |
7 ":bindings", | 9 ":bindings", |
8 ] | 10 ] |
9 } | 11 } |
10 | 12 |
11 | 13 |
| 14 group("core") { |
| 15 deps = [ |
| 16 ":mojo_dart_core", |
| 17 ":copy_core_library", |
| 18 ] |
| 19 } |
| 20 |
| 21 |
| 22 shared_library("mojo_dart_core") { |
| 23 defines = ["DART_SHARED_LIB"] |
| 24 sources = [ |
| 25 "src/mojo_dart_core.cc", |
| 26 ] |
| 27 deps = [ |
| 28 "//mojo/public/c/environment", |
| 29 "//mojo/public/c/system:for_shared_library", |
| 30 "//mojo/public/cpp/environment:standalone", |
| 31 "//mojo/public/cpp/system", |
| 32 "//mojo/public/cpp/utility", |
| 33 "//mojo/public/cpp/bindings:callback", |
| 34 ] |
| 35 } |
| 36 |
| 37 |
| 38 copy("copy_core_library") { |
| 39 sources = [ |
| 40 "$root_out_dir/libmojo_dart_core.so", |
| 41 ] |
| 42 outputs = [ |
| 43 "$root_out_dir/gen/mojo/public/dart/src/libmojo_dart_core.so" |
| 44 ] |
| 45 deps =[ |
| 46 ":mojo_dart_core" |
| 47 ] |
| 48 } |
| 49 |
| 50 |
12 copy("bindings") { | 51 copy("bindings") { |
13 sources = [ | 52 sources = [ |
14 "bindings.dart", | 53 "bindings.dart", |
| 54 "core.dart", |
| 55 "mojo_init.dart", |
| 56 "src/buffer.dart", |
15 "src/codec.dart", | 57 "src/codec.dart", |
| 58 "src/data_pipe.dart", |
| 59 "src/handle.dart", |
| 60 "src/handle_watcher.dart", |
| 61 "src/message_pipe.dart", |
| 62 "src/types.dart", |
16 ] | 63 ] |
17 outputs = [ | 64 outputs = [ |
18 "{{source_gen_dir}}/{{source_file_part}}" | 65 "{{source_gen_dir}}/{{source_file_part}}" |
19 ] | 66 ] |
20 } | 67 } |
OLD | NEW |