mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-02 05:04:39 +08:00
It's always true after https://chromium-review.googlesource.com/c/chromium/src/+/7262201 (Probably not rolled into pdfium yet, but should be fine landing this before //build is updated. The build_overrides/build.gni change even fixes one prerequisite for that.) Bug: 469092869 Change-Id: I0a2179a629a304d26e4308f1d2b2c816504fe05d Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/139950 Reviewed-by: Nico Weber <thakis@google.com> Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
# Copyright 2016 The PDFium Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/gclient_args.gni")
|
|
|
|
# Variable that can be used to support multiple build scenarios, like when
|
|
# V8 is embedded within a target.
|
|
# PDFium is one such embedder of V8.
|
|
build_with_v8_embedder = true
|
|
|
|
# PDFium builds don't support building java targets.
|
|
enable_java_templates = false
|
|
|
|
# Enables assertions on safety checks in libc++.
|
|
enable_safe_libcxx = true
|
|
|
|
# Enable assertions on safety checks, also in libstdc++
|
|
#
|
|
# In case the C++ standard library implementation used is libstdc++, then
|
|
# enable its own hardening checks.
|
|
enable_safe_libstdcxx = true
|
|
|
|
# PDFium just uses the Chromium suppression files for now.
|
|
asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc"
|
|
lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc"
|
|
tsan_suppressions_file = "//build/sanitizers/tsan_suppressions.cc"
|
|
|
|
declare_args() {
|
|
# Android 32-bit non-component, non-clang builds cannot have symbol_level=2
|
|
# due to 4GiB file size limit, see https://crbug.com/648948.
|
|
# Set this flag to true to skip the assertion.
|
|
ignore_elf32_limitations = false
|
|
|
|
# Use the system install of Xcode for tools like ibtool, libtool, etc.
|
|
# This does not affect the compiler. When this variable is false, targets will
|
|
# instead use a hermetic install of Xcode. [The hermetic install can be
|
|
# obtained with gclient sync after setting the environment variable
|
|
# FORCE_MAC_TOOLCHAIN].
|
|
use_system_xcode = ""
|
|
|
|
# Allows googletest to pretty-print various absl types.
|
|
# Assumes //third_party/abseil-cpp is an available dependency for googletest.
|
|
gtest_enable_absl_printers = true
|
|
}
|
|
|
|
if (use_system_xcode == "") {
|
|
if (target_os == "mac") {
|
|
_result = exec_script("//build/mac/should_use_hermetic_xcode.py",
|
|
[ target_os ],
|
|
"value")
|
|
use_system_xcode = _result == 0
|
|
}
|
|
if (target_os == "ios") {
|
|
use_system_xcode = true
|
|
}
|
|
}
|