OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 component("child") { | 5 component("child") { |
6 output_name = "memory_coordinator_child" | 6 output_name = "memory_coordinator_child" |
7 | 7 |
8 sources = [ | 8 sources = [ |
9 "child_memory_coordinator_impl.cc", | 9 "child_memory_coordinator_impl.cc", |
10 "child_memory_coordinator_impl.h", | 10 "child_memory_coordinator_impl.h", |
11 "child_memory_coordinator_impl_android.cc", | 11 "child_memory_coordinator_impl_android.cc", |
12 "child_memory_coordinator_impl_android.h", | 12 "child_memory_coordinator_impl_android.h", |
13 ] | 13 ] |
14 | 14 |
15 defines = [ "MEMORY_COORDINATOR_IMPLEMENTATION" ] | 15 defines = [ "MEMORY_COORDINATOR_IMPLEMENTATION" ] |
16 | 16 |
17 deps = [ | 17 deps = [ |
18 "//base", | 18 "//base", |
19 "//components/memory_coordinator/public/interfaces", | 19 "//components/memory_coordinator/public/interfaces", |
20 ] | 20 ] |
21 | 21 |
22 public_deps = [ | 22 public_deps = [ |
23 "//components/memory_coordinator/common", | 23 "//components/memory_coordinator/common", |
24 ] | 24 ] |
| 25 |
| 26 if (is_android) { |
| 27 public_deps += [ "//components/memory_coordinator/android:android" ] |
| 28 } |
25 } | 29 } |
26 | 30 |
27 source_set("unit_tests") { | 31 source_set("unit_tests") { |
28 testonly = true | 32 testonly = true |
29 | 33 |
30 sources = [ | 34 sources = [ |
31 "child_memory_coordinator_impl_unittest.cc", | 35 "child_memory_coordinator_impl_unittest.cc", |
32 ] | 36 ] |
33 | 37 |
34 deps = [ | 38 deps = [ |
35 ":child", | 39 ":child", |
36 "//mojo/common", | 40 "//mojo/common", |
37 "//testing/gtest", | 41 "//testing/gtest", |
38 ] | 42 ] |
39 } | 43 } |
OLD | NEW |