add brotli

This commit is contained in:
wiaamm
2026-01-15 11:46:18 +02:00
parent bd576688a9
commit 61f5830da0

View File

@@ -19,6 +19,13 @@ dependencies = {
"lua >= 2.1" "lua >= 2.1"
} }
external_dependencies = {
BROTLI = {
header = "brotli/encode.h",
library = "brotlienc"
}
}
build = { build = {
type = "builtin", type = "builtin",
@@ -48,10 +55,12 @@ build = {
incdirs = { incdirs = {
"core/include/attachments/", "core/include/attachments/",
"attachments/nano_attachment/", "attachments/nano_attachment/",
"external/" "external/",
"$(BROTLI_INCDIR)"
}, },
defines = { "_GNU_SOURCE", "ZLIB_CONST" }, defines = { "_GNU_SOURCE", "ZLIB_CONST" },
libraries = { "pthread", "z", "rt", "stdc++", "brotlienc", "brotlidec", "brotlicommon" }, libraries = { "pthread", "z", "rt", "stdc++", "brotlienc", "brotlidec", "brotlicommon" },
libdirs = { "$(BROTLI_LIBDIR)" },
ldflags = { "-static-libstdc++", "-static-libgcc" } ldflags = { "-static-libstdc++", "-static-libgcc" }
} }
} }