OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("../mojo_edk.gni") | 5 import("../mojo_edk.gni") |
6 | 6 |
7 mojo_edk_source_set("util") { | 7 mojo_edk_source_set("util") { |
8 sources = [ | 8 sources = [ |
| 9 "cond_var.cc", |
| 10 "cond_var.h", |
| 11 "logging_internal.cc", |
| 12 "logging_internal.h", |
9 "make_unique.h", | 13 "make_unique.h", |
| 14 "mutex.cc", |
| 15 "mutex.h", |
10 "ref_counted.h", | 16 "ref_counted.h", |
11 "ref_counted_internal.h", | 17 "ref_counted_internal.h", |
12 "ref_ptr.h", | 18 "ref_ptr.h", |
13 "ref_ptr_internal.h", | 19 "ref_ptr_internal.h", |
14 "scoped_file.h", | 20 "scoped_file.h", |
| 21 "thread_annotations.h", |
15 ] | 22 ] |
16 | 23 |
17 mojo_edk_configs = [ "mojo/edk/system:system_config" ] | 24 mojo_edk_configs = [ "mojo/edk/system:system_config" ] |
18 | 25 |
19 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | 26 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] |
20 } | 27 } |
21 | 28 |
22 mojo_edk_source_set("unittests") { | 29 mojo_edk_source_set("unittests") { |
23 testonly = true | 30 testonly = true |
24 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ] | 31 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ] |
25 | 32 |
26 sources = [ | 33 sources = [ |
| 34 "cond_var_unittest.cc", |
| 35 "mutex_unittest.cc", |
27 "ref_counted_unittest.cc", | 36 "ref_counted_unittest.cc", |
| 37 "thread_annotations_unittest.cc", |
28 ] | 38 ] |
29 | 39 |
30 mojo_sdk_deps = [ "mojo/public/cpp/system" ] | |
31 | |
32 deps = [ | 40 deps = [ |
33 ":util", | 41 ":util", |
34 "//testing/gtest", | 42 "//testing/gtest", |
35 ] | 43 ] |
| 44 |
| 45 mojo_sdk_deps = [ "mojo/public/cpp/system" ] |
| 46 |
| 47 mojo_edk_deps = [ "mojo/edk/system/test" ] |
36 } | 48 } |
37 | 49 |
38 mojo_edk_source_set("perftests") { | 50 mojo_edk_source_set("perftests") { |
39 testonly = true | 51 testonly = true |
40 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_perftests" ] | 52 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_perftests" ] |
41 | 53 |
42 sources = [ | 54 sources = [ |
43 "ref_counted_perftest.cc", | 55 "ref_counted_perftest.cc", |
44 ] | 56 ] |
45 | 57 |
46 deps = [ | 58 deps = [ |
47 ":util", | 59 ":util", |
48 "//testing/gtest", | 60 "//testing/gtest", |
49 ] | 61 ] |
50 | 62 |
51 mojo_edk_deps = [ | 63 mojo_edk_deps = [ |
52 "mojo/edk/system/test", | 64 "mojo/edk/system/test", |
53 "mojo/edk/system/test:perf", | 65 "mojo/edk/system/test:perf", |
54 ] | 66 ] |
55 } | 67 } |
OLD | NEW |