Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: components/memory_coordinator/browser/BUILD.gn

Issue 2332423002: Added memory-monitor for ChromeOS. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/memory_coordinator/browser/memory_monitor_chromeos.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | components/memory_coordinator/browser/memory_monitor_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698