xref: /aosp_15_r20/external/pdfium/build_overrides/pdfium.gni (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1# Copyright 2016 The PDFium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This file contains PDFium-related build overrides.
6
7# Build PDFium either using a bundled FreeType library, or using the FreeType
8# target defined in //build/config/freetype.
9# Default: Use a bundled FreeType.
10pdf_bundle_freetype_override = true
11
12# Build PDFium either with or without v8 support.
13# Default: With V8 support.
14pdf_enable_v8_override = true
15
16# Build PDFium either with or without XFA Forms support.
17# Default: Without XFA support.
18pdf_enable_xfa_override = false
19
20# Build PDFium with PartitionAlloc support, directing `fxcrt` to use
21# it as its memory allocator in lieu of `malloc()`.
22# Default: Use PartitionAlloc when building with Clang.
23pdf_use_partition_alloc_override = is_clang
24
25# Build PDFium to use Skia (experimental) for all PDFium graphics.
26# If enabled, coexists in build with AGG graphics and the default
27# renderer is selectable at runtime.
28# The default is to use AGG only when `pdf_use_skia_override` is false.
29pdf_use_skia_override = false
30