Plugin Power Saver: Record PPS UMAs only for users with PPS enabled.
[chromium-blink-merge.git] / base / process / BUILD.gn
blobe570647ebfd606f87703595cac66bbd6b99bdab9
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 source_set("process") {
6   sources = [
7     "internal_linux.cc",
8     "internal_linux.h",
9     "kill.cc",
10     "kill.h",
11     "kill_mac.cc",
12     "kill_posix.cc",
13     "kill_win.cc",
14     "launch.cc",
15     "launch.h",
16     "launch_ios.cc",
17     "launch_mac.cc",
18     "launch_posix.cc",
19     "launch_win.cc",
20     "memory.cc",
21     "memory.h",
22     "memory_linux.cc",
23     "memory_mac.mm",
24     "memory_win.cc",
25     "process.h",
26     "process_handle_freebsd.cc",
27     "process_handle_linux.cc",
28     "process_handle_mac.cc",
29     "process_handle_openbsd.cc",
30     "process_handle_posix.cc",
31     "process_handle_win.cc",
32     "process_info.h",
33     "process_info_linux.cc",
34     "process_info_mac.cc",
35     "process_info_win.cc",
36     "process_iterator.cc",
37     "process_iterator.h",
38     "process_iterator_freebsd.cc",
39     "process_iterator_linux.cc",
40     "process_iterator_mac.cc",
41     "process_iterator_openbsd.cc",
42     "process_iterator_win.cc",
43     "process_linux.cc",
44     "process_metrics.cc",
45     "process_metrics.h",
46     "process_metrics_freebsd.cc",
47     "process_metrics_ios.cc",
48     "process_metrics_linux.cc",
49     "process_metrics_mac.cc",
50     "process_metrics_openbsd.cc",
51     "process_metrics_posix.cc",
52     "process_metrics_win.cc",
53     "process_posix.cc",
54     "process_win.cc",
55   ]
57   sources -= [
58     "process_handle_freebsd.cc",
59     "process_handle_openbsd.cc",
60     "process_iterator_freebsd.cc",
61     "process_iterator_openbsd.cc",
62     "process_metrics_freebsd.cc",
63     "process_metrics_openbsd.cc",
64   ]
66   if (is_android) {
67     # Android uses some Linux sources, put those back.
68     set_sources_assignment_filter([])
69     sources += [
70       "internal_linux.cc",
71       "memory_linux.cc",
72       "process_handle_linux.cc",
73       "process_iterator_linux.cc",
74       "process_metrics_linux.cc",
75     ]
76     set_sources_assignment_filter(sources_assignment_filter)
77   }
79   if (is_nacl) {
80     sources -= [
81       "kill.cc",
82       "kill.h",
83       "kill_posix.cc",
84       "launch.cc",
85       "launch.h",
86       "launch_posix.cc",
87       "memory.cc",
88       "memory.h",
89       "process_iterator.cc",
90       "process_iterator.h",
91       "process_metrics.cc",
92       "process_metrics_posix.cc",
93       "process_posix.cc",
94     ]
95   }
97   configs += [ "//base:base_implementation" ]
99   deps = [
100     "//base/memory",
101     "//base/third_party/dynamic_annotations",
102   ]
104   allow_circular_includes_from = [ "//base/memory" ]
106   visibility = [ "//base/*" ]