# GN build args for PDFium — static, standalone, monolithic, embed-friendly. # Copied to out/Release/args.gn by the build scripts. See README.md for rationale. is_debug = false # One self-contained static library, not a component (DLL) build. is_component_build = false # Bundle PDFium *and all its dependencies* into a single static lib # (out/Release/obj/pdfium.lib). Without this the `pdfium` target is just a # GN group — it builds the component libs but never archives them together, # leaving nothing for the engine to link against. pdf_is_complete_lib = true # Standalone embedder build (no full Chromium tree). pdf_is_standalone = true # v1 scope: no JavaScript engine, no XFA forms. pdf_enable_v8 = false pdf_enable_xfa = false # We integrate Skia ourselves at the engine layer — PDFium uses its built-in # AGG rasterizer here. pdf_use_skia = false # Critical for embedding: link the system C++ runtime instead of Chromium's # bundled libc++, so PDFium is ABI-compatible with the rest of the engine. use_custom_libcxx = false # Avoid Chromium's PartitionAlloc — keeps the embed surface simple. pdf_use_partition_alloc = false # Don't require the Chromium clang plugins for a standalone build. clang_use_chrome_plugins = false # Treat warnings as warnings — PDFium upstream, not our code. treat_warnings_as_errors = false