$NetBSD$ * Part of patchset to build electron on NetBSD * Based on OpenBSD's chromium patches, and FreeBSD's electron patches --- ui/qt/BUILD.gn.orig 2025-02-24 19:59:26.000000000 +0000 +++ ui/qt/BUILD.gn @@ -20,7 +20,7 @@ config("qt_internal_config") { # It's OK to depend on the system libstdc++ since it's a dependency of QT, so # it will get loaded into the process anyway. - libs = [ "stdc++" ] + # libs = [ "stdc++" ] configs = [ "//build/config/linux:runtime_library", @@ -101,10 +101,12 @@ template("qt_shim") { } } } -qt_shim("qt5_shim") { - qt_version = "5" - if (!use_sysroot) { - moc_qt_path = "$moc_qt5_path" +if (use_qt5) { + qt_shim("qt5_shim") { + qt_version = "5" + if (!use_sysroot) { + moc_qt_path = "$moc_qt5_path" + } } } if (use_qt6) { @@ -122,7 +124,10 @@ component("qt") { defines = [ "IS_QT_IMPL" ] # qt_shim is in data_deps since we want to load it manually. - data_deps = [ ":qt5_shim" ] + data_deps = [] + if (use_qt5) { + data_deps += [ ":qt5_shim" ] + } if (use_qt6) { data_deps += [ ":qt6_shim" ] }