| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 ] | 83 ] |
| 84 | 84 |
| 85 defines = [ | 85 defines = [ |
| 86 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | 86 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
| 87 "MOJO_SYSTEM_IMPLEMENTATION", | 87 "MOJO_SYSTEM_IMPLEMENTATION", |
| 88 ] | 88 ] |
| 89 | 89 |
| 90 all_dependent_configs = [ ":system_config" ] | 90 all_dependent_configs = [ ":system_config" ] |
| 91 | 91 |
| 92 public_deps = [ | 92 public_deps = [ |
| 93 "../../../mojo/public/c/system", |
| 94 "../../../mojo/public/cpp/system", |
| 93 "../embedder", | 95 "../embedder", |
| 94 "../embedder:delegates", | 96 "../embedder:delegates", |
| 95 "../embedder:platform", | 97 "../embedder:platform", |
| 96 "../../../mojo/public/c/system", | |
| 97 "../../../mojo/public/cpp/system", | |
| 98 ] | 98 ] |
| 99 | 99 |
| 100 deps = [ | 100 deps = [ |
| 101 "//base", | 101 "//base", |
| 102 "//base/third_party/dynamic_annotations", | 102 "//base/third_party/dynamic_annotations", |
| 103 | 103 |
| 104 #":master", | 104 #":master", |
| 105 ] | 105 ] |
| 106 | 106 |
| 107 if (is_win) { | 107 if (is_win) { |
| 108 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), | 108 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), |
| 109 # which is uninteresting. | 109 # which is uninteresting. |
| 110 } | 110 } |
| 111 | 111 |
| 112 allow_circular_includes_from = [ "../embedder" ] | 112 allow_circular_includes_from = [ "../embedder" ] |
| 113 } | 113 } |
| 114 | 114 |
| 115 group("tests") { | 115 group("tests") { |
| 116 testonly = true | 116 testonly = true |
| 117 deps = [ | 117 deps = [ |
| 118 # TODO(use_chrome_edk): remove "2" | 118 # TODO(use_chrome_edk): remove "2" |
| 119 ":mojo_message_pipe_perftests2", |
| 119 ":mojo_system_unittests2", | 120 ":mojo_system_unittests2", |
| 120 ":mojo_message_pipe_perftests2", | |
| 121 ] | 121 ] |
| 122 } | 122 } |
| 123 | 123 |
| 124 source_set("test_utils") { | 124 source_set("test_utils") { |
| 125 testonly = true | 125 testonly = true |
| 126 | 126 |
| 127 sources = [ | 127 sources = [ |
| 128 "test_utils.cc", | 128 "test_utils.cc", |
| 129 "test_utils.h", | 129 "test_utils.h", |
| 130 ] | 130 ] |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 "simple_dispatcher_unittest.cc", | 170 "simple_dispatcher_unittest.cc", |
| 171 "waiter_test_utils.cc", | 171 "waiter_test_utils.cc", |
| 172 "waiter_test_utils.h", | 172 "waiter_test_utils.h", |
| 173 "waiter_unittest.cc", | 173 "waiter_unittest.cc", |
| 174 ] | 174 ] |
| 175 | 175 |
| 176 deps = [ | 176 deps = [ |
| 177 ":test_utils", | 177 ":test_utils", |
| 178 | 178 |
| 179 # TODO(use_chrome_edk): remove "2" | 179 # TODO(use_chrome_edk): remove "2" |
| 180 "../../../mojo/public/cpp/environment:standalone", |
| 180 "../embedder:embedder_unittests2", | 181 "../embedder:embedder_unittests2", |
| 181 "../../../mojo/public/cpp/environment:standalone", | |
| 182 "../test:test_support", | 182 "../test:test_support", |
| 183 "//base", | 183 "//base", |
| 184 "//base/test:test_support", | 184 "//base/test:test_support", |
| 185 "//testing/gtest", | 185 "//testing/gtest", |
| 186 | 186 |
| 187 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 187 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 188 # declared in third party only for now. | 188 # declared in third party only for now. |
| 189 "//third_party/mojo/src/mojo/edk/system", | 189 "//third_party/mojo/src/mojo/edk/system", |
| 190 ] | 190 ] |
| 191 | 191 |
| 192 # TODO(use_chrome_edk): remove "2" | 192 # TODO(use_chrome_edk): remove "2" |
| 193 allow_circular_includes_from = [ "../embedder:embedder_unittests2" ] | 193 allow_circular_includes_from = [ "../embedder:embedder_unittests2" ] |
| 194 } | 194 } |
| 195 | 195 |
| 196 # TODO(use_chrome_edk): remove "2" | 196 # TODO(use_chrome_edk): remove "2" |
| 197 test("mojo_message_pipe_perftests2") { | 197 test("mojo_message_pipe_perftests2") { |
| 198 sources = [ | 198 sources = [ |
| 199 "message_pipe_perftest.cc", | 199 "message_pipe_perftest.cc", |
| 200 "message_pipe_test_utils.cc", | 200 "message_pipe_test_utils.cc", |
| 201 "message_pipe_test_utils.h", | 201 "message_pipe_test_utils.h", |
| 202 ] | 202 ] |
| 203 | 203 |
| 204 deps = [ | 204 deps = [ |
| 205 ":test_utils", | 205 ":test_utils", |
| 206 "../../../mojo/public/cpp/environment:standalone", |
| 207 "../test:run_all_perftests", |
| 206 "../test:test_support", | 208 "../test:test_support", |
| 207 "../test:run_all_perftests", | |
| 208 "../../../mojo/public/cpp/environment:standalone", | |
| 209 "//base", | 209 "//base", |
| 210 "//base/test:test_support", | 210 "//base/test:test_support", |
| 211 "//testing/gtest", | 211 "//testing/gtest", |
| 212 | 212 |
| 213 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 213 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 214 # declared in third party only for now. | 214 # declared in third party only for now. |
| 215 "//third_party/mojo/src/mojo/edk/system", | 215 "//third_party/mojo/src/mojo/edk/system", |
| 216 ] | 216 ] |
| 217 } | 217 } |
| OLD | NEW |