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# Variable that can be used to support multiple build scenarios, like having 6# Chromium specific targets in a client project's GN file etc. 7build_with_chromium = false 8 9# Variable that can be used to support multiple build scenarios, like when 10# V8 is embedded within a target. 11# PDFium is one such embedder of V8. 12build_with_v8_embedder = true 13 14# PDFium builds don't support building java targets. 15enable_java_templates = false 16 17# Enables assertions on safety checks in libc++. 18enable_safe_libcxx = true 19 20# Enable assertions on safety checks, also in libstdc++ 21# 22# In case the C++ standard library implementation used is libstdc++, then 23# enable its own hardening checks. 24enable_safe_libstdcxx = true 25 26# Whether to use the neon FPU instruction set or not. 27if (current_cpu == "arm") { 28 arm_use_neon = true 29} 30 31# PDFium just uses the Chromium suppression files for now. 32asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc" 33lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc" 34tsan_suppressions_file = "//build/sanitizers/tsan_suppressions.cc" 35 36declare_args() { 37 # Android 32-bit non-component, non-clang builds cannot have symbol_level=2 38 # due to 4GiB file size limit, see https://crbug.com/648948. 39 # Set this flag to true to skip the assertion. 40 ignore_elf32_limitations = false 41 42 # Use the system install of Xcode for tools like ibtool, libtool, etc. 43 # This does not affect the compiler. When this variable is false, targets will 44 # instead use a hermetic install of Xcode. [The hermetic install can be 45 # obtained with gclient sync after setting the environment variable 46 # FORCE_MAC_TOOLCHAIN]. 47 use_system_xcode = "" 48 49 # Allows googletest to pretty-print various absl types. 50 # Assumes //third_party/abseil-cpp is an available dependency for googletest. 51 gtest_enable_absl_printers = true 52} 53 54if (use_system_xcode == "") { 55 if (target_os == "mac") { 56 _result = exec_script("//build/mac/should_use_hermetic_xcode.py", 57 [ target_os ], 58 "value") 59 use_system_xcode = _result == 0 60 } 61 if (target_os == "ios") { 62 use_system_xcode = true 63 } 64} 65