| 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/nacl/config.gni") |
| 5 import("//build/module_args/mojo.gni") | 6 import("//build/module_args/mojo.gni") |
| 6 import("//mojo/public/mojo.gni") | 7 import("//mojo/public/mojo.gni") |
| 7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 8 | 9 |
| 9 declare_args() { | 10 declare_args() { |
| 10 mojo_use_go = false | 11 mojo_use_go = false |
| 11 | |
| 12 # TODO(ncbray): support ASAN once NaCl's GN build is unforked. | |
| 13 # TODO(cstout): support fnl/musl build in nacl | |
| 14 mojo_use_nacl = is_linux && !is_asan && !is_fnl | |
| 15 mojo_use_nacl_nonsfi = (is_linux || is_android) && !is_asan && !is_fnl | |
| 16 } | 12 } |
| 17 | 13 |
| 18 group("mojo") { | 14 group("mojo") { |
| 19 # Meta-target, don't link into production code. | 15 # Meta-target, don't link into production code. |
| 20 testonly = true | 16 testonly = true |
| 21 deps = [ | 17 deps = [ |
| 22 ":system_thunks", | 18 ":system_thunks", |
| 23 ":tests", | 19 ":tests", |
| 24 "//mojo/common", | 20 "//mojo/common", |
| 25 "//mojo/dart", | 21 "//mojo/dart", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 | 33 |
| 38 if (is_linux && mojo_use_go) { | 34 if (is_linux && mojo_use_go) { |
| 39 deps += [ "//mojo/go" ] | 35 deps += [ "//mojo/go" ] |
| 40 } | 36 } |
| 41 | 37 |
| 42 if (is_linux && !is_fnl) { | 38 if (is_linux && !is_fnl) { |
| 43 deps += [ "//mojo/python" ] | 39 deps += [ "//mojo/python" ] |
| 44 } | 40 } |
| 45 | 41 |
| 46 if (mojo_use_nacl) { | 42 if (mojo_use_nacl) { |
| 47 deps += [ | 43 if (mojo_use_nacl_sfi) { |
| 48 "//mojo/nacl/sfi:mojo_nacl", | 44 deps += [ |
| 49 "//mojo/nacl/sfi:mojo_nacl_tests", | 45 "//mojo/nacl/sfi:mojo_nacl", |
| 50 ] | 46 "//mojo/nacl/sfi:mojo_nacl_tests", |
| 51 } | 47 ] |
| 48 } |
| 52 | 49 |
| 53 if (mojo_use_nacl_nonsfi) { | 50 if (mojo_use_nacl_nonsfi) { |
| 54 deps += [ | 51 deps += [ |
| 55 "//mojo/nacl/nonsfi:mojo_nacl_nonsfi", | 52 "//mojo/nacl/nonsfi:mojo_nacl_nonsfi", |
| 56 "//mojo/nacl/nonsfi:mojo_nacl_tests_nonsfi", | 53 "//mojo/nacl/nonsfi:mojo_nacl_tests_nonsfi", |
| 57 ] | 54 ] |
| 55 } |
| 58 } | 56 } |
| 59 } | 57 } |
| 60 | 58 |
| 61 group("tests") { | 59 group("tests") { |
| 62 testonly = true | 60 testonly = true |
| 63 deps = [ | 61 deps = [ |
| 64 ":public_tests", | 62 ":public_tests", |
| 65 "//mojo/common:mojo_common_unittests", | 63 "//mojo/common:mojo_common_unittests", |
| 66 "//mojo/converters:mojo_converters_unittests", | 64 "//mojo/converters:mojo_converters_unittests", |
| 67 "//mojo/dart/embedder/test:dart_unittests", | 65 "//mojo/dart/embedder/test:dart_unittests", |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 "//mojo/public/cpp/utility/tests", | 157 "//mojo/public/cpp/utility/tests", |
| 160 ] | 158 ] |
| 161 } | 159 } |
| 162 | 160 |
| 163 test("mojo_system_impl_private_unittests") { | 161 test("mojo_system_impl_private_unittests") { |
| 164 deps = [ | 162 deps = [ |
| 165 "//mojo/edk/test:run_all_unittests", | 163 "//mojo/edk/test:run_all_unittests", |
| 166 "//mojo/public/platform/native:system_impl_private_tests", | 164 "//mojo/public/platform/native:system_impl_private_tests", |
| 167 ] | 165 ] |
| 168 } | 166 } |
| OLD | NEW |