summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_BUILD.gn
blob: 79bb41a329cc5047db63c3b06d1884f929dcf213 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- chrome/browser/BUILD.gn.orig	2016-08-03 22:02:11.000000000 +0300
+++ chrome/browser/BUILD.gn	2016-09-27 09:40:30.879973000 +0300
@@ -540,7 +540,7 @@
     deps += [ "//device/udev_linux" ]
   }
 
-  if (is_linux && !is_chromeos) {
+  if ((is_linux || is_bsd) && !is_chromeos) {
     deps += [ "//third_party/speech-dispatcher" ]
   }
 
@@ -730,6 +730,22 @@
     sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
                            ".",
                            "//chrome")
+    if (is_bsd) {
+      sources -= [
+        "media_galleries/linux/mtp_device_delegate_impl_linux.cc",
+        "media_galleries/linux/mtp_device_delegate_impl_linux.h",
+        "media_galleries/linux/mtp_device_object_enumerator.cc",
+        "media_galleries/linux/mtp_device_object_enumerator.h",
+        "media_galleries/linux/mtp_device_task_helper.cc",
+        "media_galleries/linux/mtp_device_task_helper.h",
+        "media_galleries/linux/mtp_device_task_helper_map_service.cc",
+        "media_galleries/linux/mtp_device_task_helper_map_service.h",
+        "media_galleries/linux/mtp_read_file_worker.cc",
+        "media_galleries/linux/mtp_read_file_worker.h",
+        "media_galleries/linux/snapshot_file_details.cc",
+        "media_galleries/linux/snapshot_file_details.h",
+      ]
+    }
   }
 
   if (!is_chrome_branded) {
@@ -857,7 +873,7 @@
     }
   }
 
-  if (is_linux) {
+  if (is_linux || is_bsd) {
     if (use_aura) {
       configs += [ "//build/config/linux/dbus" ]
       deps += [
@@ -871,7 +887,7 @@
     }
   }
 
-  if (is_linux || is_win) {
+  if (is_linux || is_bsd || is_win) {
     sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
                            ".",
                            "//chrome")