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