Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / mojo / public / dart / BUILD.gn
blob89af889199be266210930255d2c881d7814d9c69
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.
5 group("dart") {
6   testonly = true
7   deps = [
8     ":core",
9     ":bindings",
10   ]
14 group("core") {
15   deps = [
16     ":mojo_dart_core",
17     ":copy_core_library",
18   ]
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   ]
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   ]
51 copy("bindings") {
52   sources = [
53     "bindings.dart",
54     "core.dart",
55     "mojo_init.dart",
56     "src/buffer.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",
63   ]
64   outputs = [
65     "{{source_gen_dir}}/{{source_file_part}}"
66   ]