$NetBSD$ * Part of patchset to build electron on NetBSD * Based on OpenBSD's chromium patches, and FreeBSD's electron patches --- third_party/electron_node/deps/llhttp/BUILD.gn.orig 2025-04-18 18:41:29.000000000 +0000 +++ third_party/electron_node/deps/llhttp/BUILD.gn @@ -1,14 +1,15 @@ -############################################################################## -# # -# DO NOT EDIT THIS FILE! # -# # -############################################################################## - -# This file is used by GN for building, which is NOT the build system used for -# building official binaries. -# Please modify the gyp files if you are making changes to build system. - -import("unofficial.gni") +config("llhttp_config") { + include_dirs = [ "include" ] + cflags = [ "-Wno-unreachable-code" ] +} -llhttp_gn_build("llhttp") { +static_library("llhttp") { + include_dirs = [ "include" ] + public_configs = [ ":llhttp_config" ] + cflags_c = [ "-Wno-implicit-fallthrough" ] + sources = [ + "src/api.c", + "src/http.c", + "src/llhttp.c", + ] }