summaryrefslogtreecommitdiff
path: root/mupdf.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 06:24:42 -0300
committerGabriel Schneider <[email protected]>2026-11-06 11:19:32 -0300
commit76c55b5bce0f181b0b15b16596c900397dfef544 (patch)
treee99180a43bfaa7d8d7c3ff22ed28ee5c425c3e1a /mupdf.zig
parent0893d632e242553390d968751fff0e880627c34a (diff)
downloadpardes-76c55b5bce0f181b0b15b16596c900397dfef544.tar.gz
pardes-76c55b5bce0f181b0b15b16596c900397dfef544.zip
kinds #13, pdf.so: addons/pdf/pdf.c is the PDF kind against ABI 2.1 (its record the file's bytes, renders on jobs over two MuPDF lanes a cookie aborts, its strip laid out at `at` with crops and repainted rows for hover and selection, its text the body, search, links and PdfSections through look and text, P:F S places, PdfFit, PdfTint, PdfSections, its keys), pdf_bridge moves beside it, and the build makes it from position-independent MuPDF, FreeType and zlib exporting pardes_addon alone, installs <prefix>/lib/pardes/addons/pdf.so, -Dmupdf now builds it or not and mupdf-check runs its addon-test script
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'mupdf.zig')
-rw-r--r--mupdf.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/mupdf.zig b/mupdf.zig
index 761fef92..48dca46b 100644
--- a/mupdf.zig
+++ b/mupdf.zig
@@ -45,11 +45,14 @@ pub fn add(b: *std.Build, io: std.Io, dependency: *std.Build.Dependency, options
/// one it bundles (ZLIB_SRC): the two define the same symbols, as the
/// FreeTypes do.
zlib: *std.Build.Step.Compile,
+ /// Position-independent, for a shared library (the pdf addon).
+ pic: ?bool = null,
}) Result {
const module = b.createModule(.{
.target = options.target,
.optimize = options.optimize,
.link_libc = true,
+ .pic = options.pic,
});
configureModule(module, dependency, options.jpx);
// MuPDF's upstream release build defines NDEBUG independently of the