| 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 if (is_android) { |
| 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/rules.gni") |
| 8 } |
| 9 |
| 5 config("system_config") { | 10 config("system_config") { |
| 6 defines = [ | 11 defines = [ |
| 7 # Ensures that dependent projects import the core functions on Windows. | 12 # Ensures that dependent projects import the core functions on Windows. |
| 8 "MOJO_USE_SYSTEM_IMPL", | 13 "MOJO_USE_SYSTEM_IMPL", |
| 9 ] | 14 ] |
| 10 } | 15 } |
| 11 | 16 |
| 12 component("system") { | 17 component("system") { |
| 13 output_name = "mojo_system_impl" | 18 output_name = "mojo_system_impl" |
| 14 | 19 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 ] | 96 ] |
| 92 | 97 |
| 93 deps = [ | 98 deps = [ |
| 94 "//base", | 99 "//base", |
| 95 "//base/third_party/dynamic_annotations", | 100 "//base/third_party/dynamic_annotations", |
| 96 ] | 101 ] |
| 97 | 102 |
| 98 allow_circular_includes_from = [ "//mojo/edk/embedder" ] | 103 allow_circular_includes_from = [ "//mojo/edk/embedder" ] |
| 99 } | 104 } |
| 100 | 105 |
| 101 # GYP version: mojo/edk/mojo_edk.gyp:mojo_system_unittests | |
| 102 test("mojo_system_unittests") { | 106 test("mojo_system_unittests") { |
| 103 sources = [ | 107 sources = [ |
| 104 "../test/multiprocess_test_helper_unittest.cc", | 108 "../test/multiprocess_test_helper_unittest.cc", |
| 105 "channel_endpoint_id_unittest.cc", | 109 "channel_endpoint_id_unittest.cc", |
| 106 "channel_unittest.cc", | 110 "channel_unittest.cc", |
| 107 "core_test_base.cc", | 111 "core_test_base.cc", |
| 108 "core_test_base.h", | 112 "core_test_base.h", |
| 109 "core_unittest.cc", | 113 "core_unittest.cc", |
| 110 "data_pipe_unittest.cc", | 114 "data_pipe_unittest.cc", |
| 111 "dispatcher_unittest.cc", | 115 "dispatcher_unittest.cc", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 134 | 138 |
| 135 deps = [ | 139 deps = [ |
| 136 ":system", | 140 ":system", |
| 137 "//base", | 141 "//base", |
| 138 "//base/test:test_support", | 142 "//base/test:test_support", |
| 139 "//mojo/edk/embedder:embedder_unittests", | 143 "//mojo/edk/embedder:embedder_unittests", |
| 140 "//mojo/edk/test:test_support", | 144 "//mojo/edk/test:test_support", |
| 141 "//testing/gtest", | 145 "//testing/gtest", |
| 142 ] | 146 ] |
| 143 | 147 |
| 148 if (is_android) { |
| 149 deps += [ |
| 150 "//testing/android:native_test_native_code", |
| 151 ] |
| 152 } |
| 153 |
| 144 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] | 154 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] |
| 145 } | 155 } |
| 146 | 156 |
| 147 # GYP version: mojo/edk/mojo_edk.gyp:mojo_message_pipe_perftests | |
| 148 test("mojo_message_pipe_perftests") { | 157 test("mojo_message_pipe_perftests") { |
| 149 sources = [ | 158 sources = [ |
| 150 "message_pipe_perftest.cc", | 159 "message_pipe_perftest.cc", |
| 151 "message_pipe_test_utils.h", | 160 "message_pipe_test_utils.h", |
| 152 "message_pipe_test_utils.cc", | 161 "message_pipe_test_utils.cc", |
| 153 "test_utils.cc", | 162 "test_utils.cc", |
| 154 "test_utils.h", | 163 "test_utils.h", |
| 155 ] | 164 ] |
| 156 | 165 |
| 157 deps = [ | 166 deps = [ |
| 158 ":system", | 167 ":system", |
| 159 "//base", | 168 "//base", |
| 160 "//base/test:test_support", | 169 "//base/test:test_support", |
| 161 "//base/test:test_support_perf", | 170 "//base/test:test_support_perf", |
| 162 "//mojo/edk/test:test_support", | 171 "//mojo/edk/test:test_support", |
| 163 "//testing/gtest", | 172 "//testing/gtest", |
| 164 ] | 173 ] |
| 165 } | 174 } |
| 175 |
| 176 if (is_android) { |
| 177 unittest_apk("mojo_system_unittests_apk") { |
| 178 deps = [ |
| 179 ":mojo_system_unittests", |
| 180 ] |
| 181 unittests_dep = ":mojo_system_unittests" |
| 182 } |
| 183 } |
| OLD | NEW |