blob: a0c73286fa1d98f7ccf2e37eefd3f748ca7197a2 (
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-06-05 19:03:07 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" ]
@@ -54,6 +54,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 += [
|