summaryrefslogtreecommitdiffstats
path: root/www/chromium/files/patch-device_serial_BUILD.gn
blob: 5e66e46f4d314188ddda683baefafc25430cae96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- device/serial/BUILD.gn.orig	2017-04-19 19:06:34 UTC
+++ device/serial/BUILD.gn
@@ -6,7 +6,7 @@ import("//build/config/features.gni")
 import("//mojo/public/tools/bindings/mojom.gni")
 
 # Library works only on desktop platforms.
-assert(is_win || is_linux || is_mac)
+assert(is_win || is_linux || is_bsd || is_mac)
 
 config("platform_support") {
   visibility = [ ":serial" ]
@@ -55,6 +55,12 @@ static_library("serial") {
   if (use_udev) {
     deps += [ "//device/udev_linux" ]
   }
+  if (is_bsd) {
+    sources -= [
+      "serial_device_enumerator_linux.cc",
+      "serial_device_enumerator_linux.h"
+    ]
+  }
   if (is_chromeos) {
     deps += [
       "//chromeos",
OpenPOWER on IntegriCloud