| 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("../../../mojo/public/tools/bindings/mojom.gni") | 6 import("../../../mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 ] | 72 ] |
| 73 | 73 |
| 74 defines = [ | 74 defines = [ |
| 75 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | 75 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
| 76 "MOJO_SYSTEM_IMPLEMENTATION", | 76 "MOJO_SYSTEM_IMPLEMENTATION", |
| 77 ] | 77 ] |
| 78 | 78 |
| 79 all_dependent_configs = [ ":system_config" ] | 79 all_dependent_configs = [ ":system_config" ] |
| 80 | 80 |
| 81 public_deps = [ | 81 public_deps = [ |
| 82 "../../../mojo/public/c/system", |
| 83 "../../../mojo/public/cpp/system", |
| 82 "../embedder", | 84 "../embedder", |
| 83 "../embedder:delegates", | 85 "../embedder:delegates", |
| 84 "../embedder:platform", | 86 "../embedder:platform", |
| 85 "../../../mojo/public/c/system", | |
| 86 "../../../mojo/public/cpp/system", | |
| 87 ] | 87 ] |
| 88 | 88 |
| 89 deps = [ | 89 deps = [ |
| 90 "//base", | 90 "//base", |
| 91 "//base/third_party/dynamic_annotations", | 91 "//base/third_party/dynamic_annotations", |
| 92 ] | 92 ] |
| 93 | 93 |
| 94 if (is_win) { | 94 if (is_win) { |
| 95 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), | 95 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), |
| 96 # which is uninteresting. | 96 # which is uninteresting. |
| 97 } | 97 } |
| 98 | 98 |
| 99 allow_circular_includes_from = [ "../embedder" ] | 99 allow_circular_includes_from = [ "../embedder" ] |
| 100 } | 100 } |
| 101 | 101 |
| 102 group("tests") { | 102 group("tests") { |
| 103 testonly = true | 103 testonly = true |
| 104 deps = [ | 104 deps = [ |
| 105 # TODO(use_chrome_edk): remove "2" | 105 # TODO(use_chrome_edk): remove "2" |
| 106 ":mojo_message_pipe_perftests2", |
| 106 ":mojo_system_unittests2", | 107 ":mojo_system_unittests2", |
| 107 ":mojo_message_pipe_perftests2", | |
| 108 ] | 108 ] |
| 109 } | 109 } |
| 110 | 110 |
| 111 source_set("test_utils") { | 111 source_set("test_utils") { |
| 112 testonly = true | 112 testonly = true |
| 113 | 113 |
| 114 sources = [ | 114 sources = [ |
| 115 "test_utils.cc", | 115 "test_utils.cc", |
| 116 "test_utils.h", | 116 "test_utils.h", |
| 117 ] | 117 ] |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 "simple_dispatcher_unittest.cc", | 154 "simple_dispatcher_unittest.cc", |
| 155 "waiter_test_utils.cc", | 155 "waiter_test_utils.cc", |
| 156 "waiter_test_utils.h", | 156 "waiter_test_utils.h", |
| 157 "waiter_unittest.cc", | 157 "waiter_unittest.cc", |
| 158 ] | 158 ] |
| 159 | 159 |
| 160 deps = [ | 160 deps = [ |
| 161 ":test_utils", | 161 ":test_utils", |
| 162 | 162 |
| 163 # TODO(use_chrome_edk): remove "2" | 163 # TODO(use_chrome_edk): remove "2" |
| 164 "../../../mojo/public/cpp/environment:standalone", |
| 164 "../embedder:embedder_unittests2", | 165 "../embedder:embedder_unittests2", |
| 165 "../../../mojo/public/cpp/environment:standalone", | |
| 166 "../test:test_support", | 166 "../test:test_support", |
| 167 "//base", | 167 "//base", |
| 168 "//base/test:test_support", | 168 "//base/test:test_support", |
| 169 "//testing/gtest", | 169 "//testing/gtest", |
| 170 | 170 |
| 171 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 171 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 172 # declared in third party only for now. | 172 # declared in third party only for now. |
| 173 "//third_party/mojo/src/mojo/edk/system", | 173 "//third_party/mojo/src/mojo/edk/system", |
| 174 ] | 174 ] |
| 175 | 175 |
| 176 # TODO(use_chrome_edk): remove "2" | 176 # TODO(use_chrome_edk): remove "2" |
| 177 allow_circular_includes_from = [ "../embedder:embedder_unittests2" ] | 177 allow_circular_includes_from = [ "../embedder:embedder_unittests2" ] |
| 178 } | 178 } |
| 179 | 179 |
| 180 # TODO(use_chrome_edk): remove "2" | 180 # TODO(use_chrome_edk): remove "2" |
| 181 test("mojo_message_pipe_perftests2") { | 181 test("mojo_message_pipe_perftests2") { |
| 182 sources = [ | 182 sources = [ |
| 183 "message_pipe_perftest.cc", | 183 "message_pipe_perftest.cc", |
| 184 "message_pipe_test_utils.cc", | 184 "message_pipe_test_utils.cc", |
| 185 "message_pipe_test_utils.h", | 185 "message_pipe_test_utils.h", |
| 186 ] | 186 ] |
| 187 | 187 |
| 188 deps = [ | 188 deps = [ |
| 189 ":test_utils", | 189 ":test_utils", |
| 190 "../../../mojo/public/cpp/environment:standalone", |
| 191 "../test:run_all_perftests", |
| 190 "../test:test_support", | 192 "../test:test_support", |
| 191 "../test:run_all_perftests", | |
| 192 "../../../mojo/public/cpp/environment:standalone", | |
| 193 "//base", | 193 "//base", |
| 194 "//base/test:test_support", | 194 "//base/test:test_support", |
| 195 "//testing/gtest", | 195 "//testing/gtest", |
| 196 | 196 |
| 197 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 197 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 198 # declared in third party only for now. | 198 # declared in third party only for now. |
| 199 "//third_party/mojo/src/mojo/edk/system", | 199 "//third_party/mojo/src/mojo/edk/system", |
| 200 ] | 200 ] |
| 201 } | 201 } |
| OLD | NEW |