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("browser") { | 5 component("browser") { |
6 output_name = "memory_coordinator_browser" | 6 output_name = "memory_coordinator_browser" |
7 | 7 |
8 sources = [ | 8 sources = [ |
9 "memory_coordinator.cc", | 9 "memory_coordinator.cc", |
10 "memory_coordinator.h", | 10 "memory_coordinator.h", |
11 "memory_monitor.cc", | 11 "memory_monitor.cc", |
12 "memory_monitor.h", | 12 "memory_monitor.h", |
13 "memory_monitor_linux.cc", | |
14 "memory_monitor_linux.h", | |
15 "memory_monitor_win.cc", | |
16 "memory_monitor_win.h", | |
17 ] | 13 ] |
18 | 14 |
15 if (is_chromeos) { | |
16 sources += [ | |
17 "memory_monitor_chromeos.cc", | |
chrisha
2016/09/14 09:53:34
The automagic source-file filtering doesn't work f
bcwhite
2016/09/14 13:19:27
It does... but it also includes the _linux files
| |
18 "memory_monitor_chromeos.h", | |
19 ] | |
20 } else if (is_linux) { | |
21 sources += [ | |
22 "memory_monitor_linux.cc", | |
23 "memory_monitor_linux.h", | |
24 ] | |
25 } else if (is_win) { | |
26 sources += [ | |
27 "memory_monitor_win.cc", | |
28 "memory_monitor_win.h", | |
29 ] | |
30 } | |
31 | |
19 defines = [ "MEMORY_COORDINATOR_IMPLEMENTATION" ] | 32 defines = [ "MEMORY_COORDINATOR_IMPLEMENTATION" ] |
20 | 33 |
21 deps = [ | 34 deps = [ |
22 "//base", | 35 "//base", |
23 "//components/memory_coordinator/public/interfaces", | 36 "//components/memory_coordinator/public/interfaces", |
24 ] | 37 ] |
25 | 38 |
26 public_deps = [ | 39 public_deps = [ |
27 "//components/memory_coordinator/common", | 40 "//components/memory_coordinator/common", |
28 ] | 41 ] |
29 } | 42 } |
30 | 43 |
31 source_set("unit_tests") { | 44 source_set("unit_tests") { |
32 testonly = true | 45 testonly = true |
33 | 46 |
34 sources = [ | 47 sources = [ |
35 "memory_coordinator_unittest.cc", | 48 "memory_coordinator_unittest.cc", |
36 "memory_monitor_linux_unittest.cc", | |
37 "memory_monitor_win_unittest.cc", | |
38 "test_memory_monitor.cc", | 49 "test_memory_monitor.cc", |
39 "test_memory_monitor.h", | 50 "test_memory_monitor.h", |
40 ] | 51 ] |
41 | 52 |
53 if (is_chromeos) { | |
54 sources += [ "memory_monitor_chromeos_unittest.cc" ] | |
55 } else if (is_linux) { | |
56 sources += [ "memory_monitor_linux_unittest.cc" ] | |
57 } else if (is_win) { | |
58 sources += [ "memory_monitor_win_unittest.cc" ] | |
59 } | |
60 | |
42 deps = [ | 61 deps = [ |
43 ":browser", | 62 ":browser", |
44 "//testing/gtest", | 63 "//testing/gtest", |
45 ] | 64 ] |
46 } | 65 } |
OLD | NEW |