| 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/module_args/mojo.gni") | 5 import("//build/module_args/mojo.gni") |
| 6 import("//mojo/public/mojo.gni") | 6 import("//mojo/public/mojo.gni") |
| 7 | 7 |
| 8 group("mojo") { | 8 group("mojo") { |
| 9 # Meta-target, don't link into production code. | 9 # Meta-target, don't link into production code. |
| 10 testonly = true | 10 testonly = true |
| 11 declare_args() { | 11 declare_args() { |
| 12 mojo_use_go = false | 12 mojo_use_go = false |
| 13 | 13 |
| 14 # TODO(ncbray): support ASAN once NaCl's GN build is unforked. | 14 # TODO(ncbray): support ASAN once NaCl's GN build is unforked. |
| 15 mojo_use_nacl = is_linux && !is_asan | 15 mojo_use_nacl = is_linux && !is_asan |
| 16 mojo_use_nacl_nonsfi = is_linux && !is_asan |
| 16 } | 17 } |
| 17 deps = [ | 18 deps = [ |
| 18 ":tests", | 19 ":tests", |
| 19 "//mojo/common", | 20 "//mojo/common", |
| 20 "//mojo/dart", | 21 "//mojo/dart", |
| 21 "//mojo/public", | 22 "//mojo/public", |
| 22 "//mojo/services", | 23 "//mojo/services", |
| 23 ] | 24 ] |
| 24 | 25 |
| 25 if (is_android) { | 26 if (is_android) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 if (is_linux && !is_fnl) { | 38 if (is_linux && !is_fnl) { |
| 38 deps += [ "//mojo/python" ] | 39 deps += [ "//mojo/python" ] |
| 39 } | 40 } |
| 40 | 41 |
| 41 if (mojo_use_nacl) { | 42 if (mojo_use_nacl) { |
| 42 deps += [ | 43 deps += [ |
| 43 "//mojo/nacl:mojo_nacl", | 44 "//mojo/nacl:mojo_nacl", |
| 44 "//mojo/nacl:mojo_nacl_tests", | 45 "//mojo/nacl:mojo_nacl_tests", |
| 45 ] | 46 ] |
| 46 } | 47 } |
| 48 |
| 49 if (mojo_use_nacl_nonsfi) { |
| 50 deps += [ |
| 51 "//mojo/nacl:mojo_nacl_nonsfi", |
| 52 "//mojo/nacl:mojo_nacl_tests_nonsfi", |
| 53 ] |
| 54 } |
| 47 } | 55 } |
| 48 | 56 |
| 49 group("tests") { | 57 group("tests") { |
| 50 testonly = true | 58 testonly = true |
| 51 deps = [ | 59 deps = [ |
| 52 "//mojo/common:mojo_common_unittests", | 60 "//mojo/common:mojo_common_unittests", |
| 53 "//mojo/edk/system:tests", | 61 "//mojo/edk/system:tests", |
| 54 "//mojo/edk/test:public_tests", | 62 "//mojo/edk/test:public_tests", |
| 55 "//mojo/dart/embedder/test:dart_unittests", | 63 "//mojo/dart/embedder/test:dart_unittests", |
| 56 "//mojo/public/cpp/bindings/tests:versioning_apptests", | 64 "//mojo/public/cpp/bindings/tests:versioning_apptests", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 70 # TODO(jamesr): We only support building V8 snapshot data on a linux host sinc
e it | 78 # TODO(jamesr): We only support building V8 snapshot data on a linux host sinc
e it |
| 71 # needs a 32 bit toolchain and we don't have one configured for mac hosts. | 79 # needs a 32 bit toolchain and we don't have one configured for mac hosts. |
| 72 if (host_os == "linux") { | 80 if (host_os == "linux") { |
| 73 deps += [ "//mojo/edk/js:tests" ] | 81 deps += [ "//mojo/edk/js:tests" ] |
| 74 } | 82 } |
| 75 | 83 |
| 76 if (mojo_use_prebuilt_network_service) { | 84 if (mojo_use_prebuilt_network_service) { |
| 77 deps += [ "//mojo/public/tools:copy_network_service_apptests" ] | 85 deps += [ "//mojo/public/tools:copy_network_service_apptests" ] |
| 78 } | 86 } |
| 79 } | 87 } |
| OLD | NEW |