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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//mojo/public/mojo.gni") | 6 import("//mojo/public/mojo.gni") |
7 | 7 |
8 # TODO(beng): this meta target should probably move to the root dir's BUILD.gn. | 8 # TODO(beng): this meta target should probably move to the root dir's BUILD.gn. |
9 group("mojo") { | 9 group("mojo") { |
10 # Meta-target, don't link into production code. | 10 # Meta-target, don't link into production code. |
11 testonly = true | 11 testonly = true |
12 declare_args() { | 12 declare_args() { |
13 mojo_use_go = false | 13 mojo_use_go = false |
| 14 mojo_use_nacl = false |
14 } | 15 } |
15 deps = [ | 16 deps = [ |
16 ":tests", | 17 ":tests", |
17 "//benchmarks", | 18 "//benchmarks", |
18 "//examples", | 19 "//examples", |
19 "//mojo/common", | 20 "//mojo/common", |
20 "//mojo/public", | 21 "//mojo/public", |
21 "//mojo/services", | 22 "//mojo/services", |
22 "//mojo/tools/package_manager", | 23 "//mojo/tools/package_manager", |
23 "//services", | 24 "//services", |
24 ] | 25 ] |
25 | 26 |
26 if (is_android) { | 27 if (is_android) { |
27 deps += [ "//mojo/android" ] | 28 deps += [ "//mojo/android" ] |
28 } | 29 } |
29 | 30 |
30 if (mojo_use_go) { | 31 if (mojo_use_go) { |
31 deps += [ "//mojo/go" ] | 32 deps += [ "//mojo/go" ] |
32 } | 33 } |
33 | 34 |
34 if (is_linux) { | 35 if (is_linux) { |
35 deps += [ "//mojo/python" ] | 36 deps += [ "//mojo/python" ] |
36 } | 37 } |
| 38 |
| 39 if (mojo_use_nacl) { |
| 40 deps += [ |
| 41 "//mojo/nacl:mojo_nacl", |
| 42 "//mojo/nacl:mojo_nacl_tests", |
| 43 ] |
| 44 } |
37 } | 45 } |
38 | 46 |
39 group("tests") { | 47 group("tests") { |
40 testonly = true | 48 testonly = true |
41 deps = [ | 49 deps = [ |
42 "//mojo/application_manager:mojo_application_manager_unittests", | 50 "//mojo/application_manager:mojo_application_manager_unittests", |
43 "//mojo/common:mojo_common_unittests", | 51 "//mojo/common:mojo_common_unittests", |
44 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests", | 52 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests", |
45 "//mojo/edk/js/test:js_unittests", | 53 "//mojo/edk/js/test:js_unittests", |
46 "//mojo/edk/js/test:js_integration_tests", | 54 "//mojo/edk/js/test:js_integration_tests", |
(...skipping 17 matching lines...) Expand all Loading... |
64 ] | 72 ] |
65 | 73 |
66 if (is_android) { | 74 if (is_android) { |
67 deps += [ "//mojo/edk/system:mojo_system_unittests_apk" ] | 75 deps += [ "//mojo/edk/system:mojo_system_unittests_apk" ] |
68 } | 76 } |
69 | 77 |
70 if (mojo_use_dart) { | 78 if (mojo_use_dart) { |
71 deps += [ "//mojo/dart/embedder/test:dart_unittests" ] | 79 deps += [ "//mojo/dart/embedder/test:dart_unittests" ] |
72 } | 80 } |
73 } | 81 } |
OLD | NEW |