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