diff --git a/BUILD.gn b/BUILD.gn index e02ce2ea7595..7c5d7fcf2333 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -248,6 +248,12 @@ static_library("electron_lib") { "*\bwin_*.cc", ] } + if (!is_posix) { + extra_source_filters += [ + "*_posix.cc", + "*_posix.h", + ] + } if (is_mac) { extra_source_filters += [ "*_views.cc",