diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 |
commit | 26b4c8f71f91d22e081b27814782686edde0c90a (patch) | |
tree | 1c321c39372c25d8634e75b5c8e08edc676b296d /devel/electron4/files/patch-device_serial_BUILD.gn | |
parent | New port: math/py-optuna: A hyperparameter optimization framework (diff) |
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed
With hat: portmgr
Diffstat (limited to 'devel/electron4/files/patch-device_serial_BUILD.gn')
-rw-r--r-- | devel/electron4/files/patch-device_serial_BUILD.gn | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/electron4/files/patch-device_serial_BUILD.gn b/devel/electron4/files/patch-device_serial_BUILD.gn new file mode 100644 index 000000000000..954438b1132c --- /dev/null +++ b/devel/electron4/files/patch-device_serial_BUILD.gn @@ -0,0 +1,25 @@ +--- device/serial/BUILD.gn.orig 2019-03-15 06:37:23 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. +-if (is_win || is_linux || is_mac) { ++if (is_win || is_linux || is_mac || is_bsd) { + config("platform_support") { + visibility = [ ":serial" ] + if (is_win) { +@@ -55,6 +55,13 @@ if (is_win || is_linux || is_mac) { + "//net", + "//third_party/re2", + ] ++ ++ if (is_bsd) { ++ sources -= [ ++ "serial_device_enumerator_linux.cc", ++ "serial_device_enumerator_linux.h", ++ ] ++ } + + if (is_posix) { + sources += [ |