| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 group("dart") { | |
| 6 testonly = true | |
| 7 deps = [ | |
| 8 ":core", | |
| 9 ":bindings", | |
| 10 ] | |
| 11 } | |
| 12 | |
| 13 group("core") { | |
| 14 deps = [ | |
| 15 ":mojo_dart_core", | |
| 16 ":copy_core_library", | |
| 17 ] | |
| 18 } | |
| 19 | |
| 20 shared_library("mojo_dart_core") { | |
| 21 defines = [ "DART_SHARED_LIB" ] | |
| 22 sources = [ | |
| 23 "src/mojo_dart_core.cc", | |
| 24 ] | |
| 25 deps = [ | |
| 26 "//mojo/public/c/environment", | |
| 27 "//mojo/public/c/system:for_shared_library", | |
| 28 "//mojo/public/cpp/environment:standalone", | |
| 29 "//mojo/public/cpp/system", | |
| 30 "//mojo/public/cpp/utility", | |
| 31 "//mojo/public/cpp/bindings:callback", | |
| 32 ] | |
| 33 } | |
| 34 | |
| 35 copy("copy_core_library") { | |
| 36 sources = [ | |
| 37 "$root_out_dir/libmojo_dart_core.so", | |
| 38 ] | |
| 39 outputs = [ | |
| 40 "$root_out_dir/gen/mojo/public/dart/src/libmojo_dart_core.so", | |
| 41 ] | |
| 42 deps = [ | |
| 43 ":mojo_dart_core", | |
| 44 ] | |
| 45 } | |
| 46 | |
| 47 copy("bindings") { | |
| 48 sources = [ | |
| 49 "bindings.dart", | |
| 50 "core.dart", | |
| 51 "mojo_init.dart", | |
| 52 "src/buffer.dart", | |
| 53 "src/client.dart", | |
| 54 "src/codec.dart", | |
| 55 "src/data_pipe.dart", | |
| 56 "src/handle.dart", | |
| 57 "src/handle_watcher.dart", | |
| 58 "src/interface.dart", | |
| 59 "src/message_pipe.dart", | |
| 60 "src/types.dart", | |
| 61 ] | |
| 62 outputs = [ | |
| 63 "{{source_gen_dir}}/{{source_file_part}}", | |
| 64 ] | |
| 65 } | |
| OLD | NEW |