$NetBSD: patch-third__party_protobuf_proto__library.gni,v 1.3 2025/12/13 14:54:03 kikadf Exp $ * Part of patchset to build chromium on NetBSD * Based on OpenBSD's chromium patches, and pkgsrc's qt5-qtwebengine patches --- third_party/protobuf/proto_library.gni.orig 2025-11-19 21:40:05.000000000 +0000 +++ third_party/protobuf/proto_library.gni @@ -260,7 +260,19 @@ _protoc_gen_ts_runtime_deps = [ # When use_remoteexec=true, node actions may run on remote # Linux worker. So it should include linux node binary in inputs. -if (is_linux || is_chromeos || use_remoteexec) { +if (is_openbsd) { + _protoc_gen_ts_runtime_deps += + [ "//third_party/node/openbsd/node-openbsd/bin/node" ] +} +if (is_freebsd) { + _protoc_gen_ts_runtime_deps += + [ "//third_party/node/freebsd/node-freebsd/bin/node" ] +} +if (is_netbsd) { + _protoc_gen_ts_runtime_deps += + [ "//third_party/node/netbsd/node-netbsd/bin/node" ] +} +if (!is_bsd && (is_linux || is_chromeos || use_remoteexec)) { _protoc_gen_ts_runtime_deps += [ "//third_party/node/linux/node-linux-x64/bin/node" ] }