summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-components_metrics_BUILD.gn
blob: 6a8add9bade2eb8f8e5e60d7e75ac66c76a75274 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- components/metrics/BUILD.gn.orig	2016-10-06 04:02:16.000000000 +0300
+++ components/metrics/BUILD.gn	2016-10-16 20:52:28.476935000 +0300
@@ -107,6 +107,13 @@
   if (is_win) {
     sources -= [ "machine_id_provider_stub.cc" ]
   }
+
+  if (is_bsd) {
+    sources -= [
+      "system_memory_stats_recorder_linux.cc"
+    ]
+  }
+
 }
 
 if (!is_ios) {
@@ -266,7 +273,7 @@
   ]
 }
 
-if (is_linux) {
+if (is_linux || is_bsd) {
   # GYP version: components/metrics.gypi:metrics_serialization
   static_library("serialization") {
     sources = [
@@ -321,7 +328,7 @@
     "//ui/gfx/geometry",
   ]
 
-  if (is_linux) {
+  if (is_linux || is_bsd) {
     sources += [ "serialization/serialization_utils_unittest.cc" ]
     deps += [ ":serialization" ]
   }