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 | |
7 deps = [ | 6 deps = [ |
8 ":core", | |
9 ":bindings", | 7 ":bindings", |
10 ] | 8 ] |
11 } | 9 } |
12 | 10 |
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 | 11 |
51 copy("bindings") { | 12 copy("bindings") { |
52 sources = [ | 13 sources = [ |
53 "bindings.dart", | 14 "bindings.dart", |
54 "core.dart", | |
55 "mojo_init.dart", | |
56 "src/buffer.dart", | |
57 "src/codec.dart", | 15 "src/codec.dart", |
58 "src/data_pipe.dart", | |
59 "src/handle.dart", | |
60 "src/message_pipe.dart", | |
61 "src/types.dart", | |
62 ] | 16 ] |
63 outputs = [ | 17 outputs = [ |
64 "{{source_gen_dir}}/{{source_file_part}}" | 18 "{{source_gen_dir}}/{{source_file_part}}" |
65 ] | 19 ] |
66 } | 20 } |
OLD | NEW |